Script help need fast look |^^|
#1

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
Reply
#2

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

this didn't delete the cars spawned by vip users
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)