11.04.2011, 08:51
(
Последний раз редактировалось Mean; 14.04.2011 в 09:15.
)
Well
Checking if it's connected.
pawn Код:
r:new randomplayer = random(MAX_PLAYERS); // Instead of 30, put MAX_PLAYERS
if( IsPlayerConnected( randomplayer ) && randomplayer != playerid )
{
TogglePlayerSpectating(playerid, 1);
PlayerSpectateVehicle(playerid, GetPlayerVehicleID( randomplayer ) );
}
else goto r;