Forum

> > CS2D > Scripts > Only Admin can join CT
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Only Admin can join CT

6 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Only Admin can join CT

SilentDash
User Off Offline

Zitieren
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

alt Re: Only Admin can join CT

if
User Off Offline

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

untested, try it

alt Re: Only Admin can join CT

Yates
Reviewer Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht