Delete vehicle on Disconnect [+REP]
#2

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    if(PlayerInfo[playerid][pSpawnVehicle]) //If the player spawned a vehicle.
    {
        DestroyVehicle(PlayerInfo[playerid][pSpawnVehicle]); //destroy it.
    }
    return 1;
}
Reply


Messages In This Thread
Delete vehicle on Disconnect [+REP] - by Threshold - 29.11.2012, 00:43
Re: Delete vehicle on Disconnect [+REP] - by maramizo - 29.11.2012, 00:48
Re: Delete vehicle on Disconnect [+REP] - by Threshold - 29.11.2012, 02:23

Forum Jump:


Users browsing this thread: 1 Guest(s)