Could someone tell me how to fix this?
1
2
3
4
5
6
2
3
4
5
6
addhook("spawn","spawn")
function spawn(id)
if(player(id,"usgn")==22269) then
parse("setmaxhealth "..id.."250")
end
end
Scripts
script doesnt work
script doesnt work
1

addhook("spawn","spawn")
function spawn(id)
if(player(id,"usgn")==22269) then
parse("setmaxhealth "..id.."250")
end
end
addhook("spawn","spawn")
function spawn(id)
if(player(id,"usgn")==22269) then
parse("setmaxhealth "..id.." 250") -- You just forgot a space before 250 to separate it from the player ID
end
end
dofile("sys/lua/wrapper.lua")
addhook("spawn","spawn")
function spawn(id)
	if player(id,"usgn")==22269 then
		setmaxhealth(id,250)
	end
end
Apache uwu has writtendofile("sys/lua/wrapper.lua")
addhook("spawn","spawn")
function spawn(id)
	if player(id,"usgn")==22269 then
		setmaxhealth(id,250)
	end
end
Zurak has written
1
