random from loop
#2

Here you go:

PHP код:
new player[MAX_PLAYERS-1],tmp;
for(new 
i=GetPlayerPoolSize(); i!=-1i--)
{
    if(
IsPlayerConnected(i) && i!=playerid && IsPlayerInAnyVehicle(i)) player[tmp++] = i;
}
PlayerSpectateVehicle(playeridGetPlayerVehicleID(player[random(tmp)])); 
Greekz
Reply


Messages In This Thread
random from loop - by TwinkiDaBoss - 27.05.2016, 02:27
Re: random from loop - by Kaliber - 27.05.2016, 03:11
Re: random from loop - by Vince - 27.05.2016, 08:36
Re: random from loop - by TwinkiDaBoss - 27.05.2016, 14:37

Forum Jump:


Users browsing this thread: 1 Guest(s)