SA-MP Forums Archive
/repairall - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /repairall (/showthread.php?tid=499330)



/repairall - TheLastShadow - 07.03.2014

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



Re: /repairall - Jochemd - 07.03.2014

Okay, why did you share? I think 9/10 people can script this


Re: /repairall - AustinWeerdGuy - 07.03.2014

Quote:
Originally Posted by Jochemd
Посмотреть сообщение
Okay, why did you share? I think 9/10 people can script this
^^..


Re: /repairall - Abagail - 07.03.2014

Wrong section....


Re: /repairall - Dipto - 07.03.2014

LOl, its to easy, anyway u should put it on Filterscript
Not here