02.10.2012, 16:36
Hey guys! I found this piece of code on the forums
This makes it so that when a player exits his car, the car disappears. That's nice, but I want to disappear after a minute, how do I implement that?
Thanks in advance!
-Nick
Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
DestroyVehicle(currentveh);
SetTimerEx("cardestroyedhide", 5000, 0, "i", playerid);
}
return 1;
}
Thanks in advance!
-Nick


