03.05.2009, 13:58
Код:
public OnPlayerExitVehicle(playerid) { SendClientMessage(playerid,0xFF0000AA,"YOU EXITED A VEHICLE:"); GameTextForPlayer(playerid," ~w~ Vehicle Is Being ~h~ Destroyed./carmenu for new car", 2000, 6); { print("Starting timer..."); SetTimer("message",5000,false); } print("5 seconds had passed."); SendClientMessage(playerid,0xFF0000AA,"YOU EXITED A VEHICLE::::it will be destroyed now use /carmenu "); DestroyVehicle(vd); return 1; }
As soon as i exits the car it gets destroyed but i want to be destroyed it after 5 secs please help and it should also tell after each sec 1 sec has passed
2 secs had passed
3----
4-----
5---------
After 5 secs
your vehicle had been destroyed now