28.10.2012, 21:38
pawn Код:
CMD:fix(playerid, params[]) {
new
vehicleid = GetPlayerVehicleID(playerid);
if(gTeam[playerid] == ASSISTANCE) {
if(IsPlayerInVehicle(playerid, vehicleid)) {
RepairVehicle(vehicleid);
SendClientMessage(playerid, COLOR_WHITE, "You have successfully repaired the vehicle.");
}
else SendClientMessage(playerid, RED, "ERROR: You are not in a vehicle!");
}
return 1;
}