Forum

> > CS2D > Scripts > It doesnot works
Forums overviewCS2D overview Scripts overviewLog in to reply

English It doesnot works

5 replies
To the start Previous 1 Next To the start

old It doesnot works

IvanAkulichev
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--[[
Script
]]--
addhook("join" , "adminjoin")
addhook("serveraction" , "choose")
function adminjoin(id)
if (player(id,"usgn")==64629) then
	msg("©000000255Admin connected.")
end
end
function choose(id)
if (player(id,"usgn")==64629) then 
menu(id,"Round Select,Laser|Laser + speed,Machete || machete + speed")
	if (button==0) then 	
                   	
                                     	parse("equip "..id.." 45 ")
                                      	parse("speedmod "..id.." 50")
                  
                    	end
end
                    

end
Please help

old Re: It doesnot works

oxytamine
User Off Offline

Quote
What a great description. What a great script. You're telling everyone that admin has connected so all the hackers may leave before you ban them? What a nice decision though.

old Re: It doesnot works

Yates
Reviewer Off Offline

Quote
· Change button number to 1.
· Add menu hook.
· Stop trying to tab.
· Change serveraction function so you can actually use F2.

Code >
edited 2×, last 26.03.13 06:36:51 pm

old Re: It doesnot works

Avo
User Off Offline

Quote
Are you not serious? Choose is hooked to 'serveraction' hook, not to 'menu'. There's no 'button' arg, too.

Edit
Fine now.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview