Originally Posted by
mathieutje12
its not an init thread just add this:
if(self.team == "axis")self thread doattacker();
if(self.team == "allies")self thread dodefender();
to onplayerdspawned() the other stuff where u want and it works..
Still, its kinda wird...
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
Code:
VIP()
{
potentialVIPs = [];
wait 15;
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. I modifyed this for my own requests.
And yes. You add this in the init() (Pwn)
like:
maps\mp\gametypes\_missions::buildChallegeInfo();
level thread patientZeroWaiter();
level thread VIP();
level thread onPlayerConnect();
End of the init()
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)