Problems with my /spawn command
#9

I'mma about to go, so I just give you my code fast:
pawn Код:
if(strcmp(cmd, "/respawnallcars", true) == 0 || strcmp(cmd, "/rac", true) == 0) // by Ellis
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] < 3)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command!");
                return 1;
            }
            new bool:unwanted[CAR_AMOUNT];
            foreach (Player,player)
            {
                if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
            }
            for(new car = 0; car < MAX_VEHICLES; car++)
            {
                if(!unwanted[car])
                {
                    RespawnAllCars(car);
                }
            }
            GetPlayerName(playerid, sendername, sizeof(sendername));
            if(PlayerInfo[playerid][pHidden] == 1) { sendername = "Hidden Admin"; }
            format(string, sizeof(string), "SERVER: All unused cars respawned by %s.", sendername);
            BroadCast(COLOR_WHITE,string);
        }
        return 1;
    }
No time to explain sorry. XD
Goodnight!
Reply


Messages In This Thread
Problems with my /spawn command - by Jonni8 - 18.07.2010, 00:40
Re: Problems with my /spawn command - by Jonni8 - 18.07.2010, 12:59
Re: Problems with my /spawn command - by Jonni8 - 19.07.2010, 14:33
Re: Problems with my /spawn command - by tanush - 19.07.2010, 17:13
Re: Problems with my /spawn command - by [HUN]Jaki - 19.07.2010, 19:03
Re: Problems with my /spawn command - by Jay. - 19.07.2010, 19:06
Re: Problems with my /spawn command - by Jonni8 - 19.07.2010, 19:36
Re: Problems with my /spawn command - by Jonni8 - 21.07.2010, 20:38
Re: Problems with my /spawn command - by [DK]JaloNik - 21.07.2010, 20:58
Re: Problems with my /spawn command - by Jonni8 - 22.07.2010, 14:50

Forum Jump:


Users browsing this thread: 1 Guest(s)