[Help]/despawnsystemveh
#1

Well, Basically i'm struggling to make this command, This is what i have so far but it despawns ALL the vehicles in the server, And Heres the hard part, Making it despawn all the vehicles that the FS has currently spawned.


If anyone can help, I'll be hugely great-full

Heres the Code
CODE


pawn Код:
COMMAND:despawnallveh(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
    {
        for(new i = 0; i < MAX_VEHICLES; i++)
        {
            new string[64], pName[MAX_PLAYER_NAME];
            GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
            format(string, sizeof string, "~b~Admin: ~g~%s ~r~has despawned all vehicles", pName);
            GameTextForAll(string, 5000, 5);
            DestroyVehicle(i);
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED,"You do not have access to this command");
    }
    return 1;
}
Reply


Messages In This Thread
[Help]/despawnsystemveh - by Swizzzy - 04.10.2011, 14:56
Re: [Help]/despawnsystemveh - by Raimis_R - 04.10.2011, 15:00
Re: [Help]/despawnsystemveh - by Swizzzy - 04.10.2011, 15:11
Re: [Help]/despawnsystemveh - by aRoach - 04.10.2011, 15:14
Re: [Help]/despawnsystemveh - by Libra_PL - 04.10.2011, 15:14
Re: [Help]/despawnsystemveh - by aRoach - 04.10.2011, 15:16
Re: [Help]/despawnsystemveh - by Libra_PL - 04.10.2011, 15:18
Re: [Help]/despawnsystemveh - by Swizzzy - 04.10.2011, 15:29
Re: [Help]/despawnsystemveh - by Libra_PL - 04.10.2011, 15:36
Re: [Help]/despawnsystemveh - by Swizzzy - 04.10.2011, 15:41

Forum Jump:


Users browsing this thread: 3 Guest(s)