Destroy car on player exit
#2

pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
     if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
     {
          new currentveh;
          currentveh = GetPlayerVehicleID(playerid);
          DestroyVehicle(currentveh);
          TextDrawShowForPlayer(playerid,Cardestroyed);
          SetTimerEx("cardestroyedhide", 5000, 0, "i", playerid);
     }
     return 1;
}
Make sure you fix the indentations.
Reply


Messages In This Thread
Destroy car on player exit - by gamerhead - 07.05.2011, 16:19
Re: Destroy car on player exit - by austin070 - 07.05.2011, 16:23
Re: Destroy car on player exit - by BizzyD - 07.05.2011, 16:23
Re: Destroy car on player exit - by marrcko - 07.05.2011, 16:26
Re: Destroy car on player exit - by Babul - 07.05.2011, 16:27
Re: Destroy car on player exit - by gamerhead - 07.05.2011, 16:44

Forum Jump:


Users browsing this thread: 1 Guest(s)