English command !rs for HC admin script

8 replies
Goto Page
To the start Previous 1 Next To the start
Up
cELL
User
Offline Off
Hi all, what's up?

I came to ask for a help, because I need someone's help to help me create the command
!rs
for the script file cs2d HC Admin Script 1.9.3 (224) the one that can help me i would really apreciate it, thanks to all
Cell
26.07.17 10:12:59 am
Up
BountyHunter
User
Offline Off
Code:
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
26.07.17 10:15:49 am
Up
cELL
User
Offline Off
@user BountyHunter: I need to add it in file cs2d HC Admin Script 1.9.3 (224) And that can be used with " ! "
Cell
26.07.17 10:22:35 am
Up
BountyHunter
User
Offline Off
Code:
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
26.07.17 10:28:49 am
Up
Yates
Reviewer
Offline Off
@user BountyHunter: Please indent your code. It currently looks like shit and is harder to read.
26.07.17 11:22:18 am
Up
JeeewNazi
User
Offline Off
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
26.07.17 11:53:52 am
Up
apex2d
User
Offline Off
Code:
1
hc.add_say_command("rs", hc.moderation.rs_say_command, hc.USER, "Resets your score", "", true)


and
Code:
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
Eat Sleep Conquer Repeat. www.Radeon2D.forumid.net
26.07.17 02:18:30 pm
Up
Fraizeraust
Moderator
Offline Off
@user apex2d: In the name of Jesus Christ, stop using © (this also applies to user BountyHunter). CS2D will see it as two characters hence the famous "A" encoding character problem. Use backslashes
\169
like every normal scripter.
26.07.17 04:07:52 pm
Up
apex2d
User
Offline Off
@user Fraizeraust:

b-but im not normal

i like to use c more because idk it looks cool
Eat Sleep Conquer Repeat. www.Radeon2D.forumid.net
To the start Previous 1 Next To the start