08.03.2014, 06:32
Quote:
Код:
if(strcmp(cmdtext, "/repair", true)==0) { if(IsPlayerInCheckpoint(playerid)) { if(IsPlayerInAnyVehicle(playerid)) { RepairVehicle(GetPlayerVehicleID(playerid)); } else { SendClientMessage(playerid, red, "Error: You need to be in a vehicle to repair it!"); } } else { SendClientMessage(playerid, red, "Error: You are not in the checkpoint!"); } return 1; } |
Let say I landed on the checkpoint and a message will appear "Press Alt Key to Repair your vehicle" and which is better textdraw or gametextforplay?
EDIT: also the repair will take 5 seconds