Destroy all empty vehicles?
#2

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;
}
Use this.

Inlcude the Destroy Function also. Its not included
Reply


Messages In This Thread
Destroy all empty vehicles? - by XxCozzaxX - 30.12.2011, 12:30
Re: Destroy all empty vehicles? - by Spooky - 30.12.2011, 12:35

Forum Jump:


Users browsing this thread: 1 Guest(s)