P.S : I edited the !resetscore

P.S2: I shows "The Command !resetscore doesnt exist..
Scripts
AMX2D Command Help
AMX2D Command Help
1


function act_resetscore(p, typ, cmd)
	parse("setscore "..id 0)
	parse("setdeath "..id 0)
	msg(sv.source_clr, player(p, "name") .. " use !resetscore")
end
msg(sv.source_clr, player(p, "name") .. " used !resetscore")
It doesnt work...
It says No command: !resetscore addhook("say", "sayfunction")
function sayfunction(id, txt)
if(txt=="!resetscore") then
parse("setscore "..id.." 0")
parse("setdeaths "..id.." 0")
msg("You have RESETED SCORE")
return 1
end
end
ill think it will work
function act_resetscore(id, typ, cmd)
	local fmt = "%s %s 0"
	parse(fmt:format("setscore",id))
	parse(fmt:format("setdeaths",id))
	msg(sv.source_clr, player(p, "name") .. " used !resetscore") -- assuming sv.source_clr is a valid color
end
function act_resetscore(id, typ, cmd)
	parse("setscore "..id.." 0")
	parse("setdeaths "..id.." 0")
	msg(sv.source_clr, player(p, "name") .. " used !resetscore")
end
function act_resetscore(id, typ, cmd)
	parse("setscore "..id.." 0")
	parse("setdeaths "..id.." 0")
	msg(sv.source_clr, player(id, "name") .. " used !resetscore")
end
1
