Forum

> > CS2D > Scripts > command !rs for HC admin script
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch command !rs for HC admin script

8 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: command !rs for HC admin script

BountyHunter
User Off Offline

Zitieren
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

alt Re: command !rs for HC admin script

BountyHunter
User Off Offline

Zitieren
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

alt Re: command !rs for HC admin script

Ajmin
User Off Offline

Zitieren
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

alt Re: command !rs for HC admin script

apex2d
User Off Offline

Zitieren
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
1× editiert, zuletzt 26.07.17 12:09:34
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht