11.09.2013, 18:22
This is the code
If I spec example id 2, when example id 5 exit a vehicle I will start to spec id 5.. How will I fix this?
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(Spectate[i] == vehicleid)
{
PlayerSpectatePlayer(i,playerid);
}
}
}