I came to ask for a help, because I need someone's help to help me create the command
!rsfor the script
Scripts
command !rs for HC admin script
command !rs for HC admin script
1

!rsfor the script
addhook("say","reset")
function reset(id,txt)
if(txt=="@rs") then
parse ("setscore "..id.." 0")
parse ("setdeaths "..id.." 0")
parse ("sv_msg2 "..id.." ©255255255Scores Reset")
parse ("sv_msg2 "..id.." ©020255000Scores Reset")
msg("©000000255"..player(id,"name").." reset his scores!")
end
end
BountyHunter: I need to add it in
addhook("say","reset")
function reset(id,txt)
if(txt=="!rs") then
parse ("setscore "..id.." 0")
parse ("setdeaths "..id.." 0")
parse ("sv_msg2 "..id.." ©255255255Scores Reset")
parse ("sv_msg2 "..id.." ©020255000Scores Reset")
msg("©000000255"..player(id,"name").." reset his scores!")
end
end
BountyHunter: Please indent your code. It currently looks like shit and is harder to read.
BountyHunter: Your code looks neat and green in color
hc.add_say_command("rs", hc.moderation.rs_say_command, hc.USER, "Resets your score", "", true)
function hc.moderation.rs_say_command(id,txt)
parse ("setscore "..id.." 0")
parse ("setdeaths "..id.." 0")
parse ("sv_msg2 "..id.." ©255255255[PM]From Server > ©000255255You used Resetscore ©255000000[!rs]")
		 parse ("msg ©255255255ID "..id.." ©255000000Reseted His/Her Score, Type !rs to do so")
end
BountyHunter: but im not saying your code sucks, but its just differnet
Thank me later
apex2d: In the name of Jesus Christ, stop using © (this also applies to
BountyHunter). CS2D will see it as two characters hence the famous "A" encoding character problem. Use backslashes \169like every normal scripter.
GeoB99:
1
