Forum

> > CS2D > Scripts > i want to make a join check
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch i want to make a join check

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: i want to make a join check

Rainoth
Moderator Off Offline

Zitieren
cs2d lua hook team
for loop (specialIDlist)
if player usgn is same as specialID
return 1

Naturally, this is a pseudo code but it's the gist of how you'd do it. The reason it's on team hook and not join hook is because people are always spectators when they join the server so it achieves no effect if you try to move them to the same team that they're on.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht