/repairall
#1

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;
        }
    }
Reply


Messages In This Thread
/repairall - by TheLastShadow - 07.03.2014, 18:36
Re: /repairall - by Jochemd - 07.03.2014, 19:16
Re: /repairall - by AustinWeerdGuy - 07.03.2014, 21:22
Re: /repairall - by Abagail - 07.03.2014, 21:23
Re: /repairall - by Dipto - 07.03.2014, 22:20

Forum Jump:


Users browsing this thread: 1 Guest(s)