04.04.2011, 14:43
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (!strcmp("/repair", cmdtext)) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle!"); RepairVehicle(GetPlayerVehicleID(playerid)); SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been successfully repaired!"); return 1; } }
Help please.