SA-MP Forums Archive
Script help need fast look |^^| - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Script help need fast look |^^| (/showthread.php?tid=252149)



Script help need fast look |^^| - boyan96 - 30.04.2011

Hello. i my server i have this command
PHP код:
if(strcmp(cmd"/destroycars"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if(
PlayerInfo[playerid][pAdmin] < 4)
            {
                
SendClientMessage(playeridCOLOR_GRAD1"   you are not authorized to use that command!");
                return 
1;
            }
            for(new 
0CreatedCari++)
            {
                
DestroyVehicle(CreatedCars[i]);
            }
            
CreatedCar 0;
            
SendClientMessage(playeridCOLOR_GREY"   Created Vehicles destroyed!");
        }
        return 
1;
    } 
its delete all cars spawned with /veh
but can someone make like this command but to delete all cars which are spawned by VIP users


Re: Script help need fast look |^^| - StreetGT - 30.04.2011

try
pawn Код:
if(strcmp(cmd, "/destroycars", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] < 4)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command!");
                return 1;
            }
            for(new i = 0; i < CreatedCar; i++)
            {
                DestroyVehicle(i);
            }
            CreatedCar = 0;
            SendClientMessage(playerid, COLOR_GREY, "   Created Vehicles destroyed!");
        }
        return 1;
    }



Re: Script help need fast look |^^| - boyan96 - 30.04.2011

this didn't delete the cars spawned by vip users