26.09.2013, 00:27
/fix command
Код:
CMD:fix(playerid, params[]) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "You are not in a vehicle!"); if(GetPlayerState(playerid) != 2) return SendClientMessage(playerid, -1, "You are not in the driver seat!"); RepairVehicle(GetPlayerVehicleID(playerid)); SendClientMessage(playerid, -1, "Your vehicle has been sucessfully repaired!"); PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0); return 1; }