07.03.2014, 18:36
Here is command for repair all cars from server. And work perfectly. Sorry for my english i'm romanian.
pawn Код:
if (strcmp("/repairall", cmdtext, true, 9) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 3)
{
SendClientMessage(playerid, COLOR_GREY, "Nu esti autorizat sa folosesti aceasta comanda!. ");
return 1;
}
for(new i=0; i<MAX_VEHICLES; i++)
RepairVehicle(i);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{FFFFFF}[{00FFFF}REPAIR{FFFFFF}]: {FFFFFF}Toate masinile au fost reparate de adminul{008000} %s",sendername);
SendClientMessageToAll(COLOR_LIGHTRED, string);
return 1;
}
}