Forum

> > CS2D > Scripts > command !rs for HC admin script
Forums overviewCS2D overview Scripts overviewLog in to reply

English command !rs for HC admin script

8 replies
To the start Previous 1 Next To the start

old Re: command !rs for HC admin script

BountyHunter
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
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

old Re: command !rs for HC admin script

BountyHunter
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
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

old Re: command !rs for HC admin script

Ajmin
User Off Offline

Quote
Asfar as hc admin script is concerned you will have to use the script's particular way to add more commands.
Maybe you have to read the file's description.
The treasure is hidden there. (for you)

@user BountyHunter: Your code looks neat and green in color

old Re: command !rs for HC admin script

apex2d
User Off Offline

Quote
1
hc.add_say_command("rs", hc.moderation.rs_say_command, hc.USER, "Resets your score", "", true)

and
1
2
3
4
5
6
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

EDIT: and also,

change hc.USER if u wanna change to moderator only by changing to hc.MODERATOR1

another also,

HC Admin got his own kind of Format so, it cant be done with normal codes like yours @user BountyHunter: but im not saying your code sucks, but its just differnet Thank me later
edited 1×, last 26.07.17 12:09:34 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview