Still, its kinda wird...
Originally Posted by mathieutje12
First. You thread a singel player the start thread.
Then you go into an server(level) thread.
(But, I guess I am wrong now. I am still reading for teams )
Now I gone Pwn your code
And yes. I modifyed this for my own requests.
potentialVIPs = ;
foreach ( player in level.players )
if ( player.team == game["defenders"] )
potentialVIPs[ potentialVIPs.size ] = player;
selectedVIPNum = RandomInt(potentialVIPs.size );
selectedPlayer = potentialVIPs[ selectedVIPNum ];
GiveVIP( selectedPlayer );
GiveVIP ( vipPlayer )
vipPlayer giveWeapon( "deserteagle_fmj_mp" );
vipPlayer sayall("^1I am the god dam VIP!");
And yes. You add this in the init() (Pwn)
End of the init()
level thread patientZeroWaiter();
level thread VIP();
level thread onPlayerConnect();
This code is taken out of the VIP gametype itself and re-made for this action.
(Just simpler made. So I could understand what I did)