30.12.2011, 12:35
pawn Код:
stock VehicleCheck(vehicleid)
{
for(new i = 0; i < MAX_PLAYERS; i++) //All players
{
if(GetPlayerState(i) == PLAYER_STATE_DRIVER || GetPlayerState(i) == PLAYER_STATE_PASSENGER)
{
if(GetPlayerVehicleID(i) == vehicleid)
{
return 1;
}
}
}
return 0;
}
Inlcude the Destroy Function also. Its not included