Forum

> > CS2D > Scripts > Only Admin can join CT
Forums overviewCS2D overview Scripts overviewLog in to reply

English Only Admin can join CT

6 replies
To the start Previous 1 Next To the start

old Only Admin can join CT

SilentDash
User Off Offline

Quote
Hello Guys i want a Script that only Admins (me) can join CT i have searched but i find only some scripts with "wallhack" and others...

Or say me whats at my Script is wrong...
1
2
3
4
5
6
7
8
9
10
11
12
admin={16434}

addhook("team","ct")
function ct(id,team)
     for _, usgn in ipairs(admin) do
          if player(id,"favteam")==2 then
               if player(id,"usgn")~=usgn then
                    parse("maket "..id)
               end
          end
     end
end

old Re: Only Admin can join CT

if
User Off Offline

Quote
addhook("team","ct")
function ct(id,team)
if player(id,"usgn")==16434 then
parse("maket "..id)
end
end

untested, try it

old Re: Only Admin can join CT

Yates
Reviewer Off Offline

Quote
What the fuck are those 4 ends for? (Should be 3)
And what's?;
1
if player(id,"favteam")==2 then

@If, then only his USID can join CT. You would need a table to add more.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview