07.05.2011, 16:27
Код:
public OnPlayerExitVehicle(playerid, vehicleid) { // new currentveh; // currentveh = GetPlayerVehicleID(playerid); if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER) { DestroyVehicle(vehicleid);//thats supposed to be in the timer. no slapping out } // TextDrawShowForPlayer(playerid,Cardestroyed); // SetTimerEx("cardestroyedhide", 5000, 0, "i", playerid); SetTimerEx("cardestroyedhide", 5000, 0, "i", vehicleid); }
in my suggestion for the timer, i presume that its going to destroy the vehicleid. its the better solution to use the time, not my "cheap" version, coz it looks ugly to get slapped out of the car hehe