05.05.2013, 07:31
PHP код:
CMD:fix(playerid, params[])
{
new string[160];
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "ERROR: You are not in a vehicle!");
RepairVehicle(GetPlayerVehicleID(playerid));
GameTextForPlayer(playerid, "~g~Fixed!",3000,3);
format(string, sizeof(string), "[INFO]: %s Has Fixed His Vehicle.", GetName(playerid));
SendClientMessageToAll(COLOR_YELLOW, string);
return 1;
}