02.12.2009, 05:39
In the loop which searches the closest vehicle
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(GetPlayerVehicleID(playerid) == vehicleid) //the variable used in your loop which goes through vehicles
{
continue; //skips the current loop
}
}