Help with respawn vehicles
#4

pawn Code:
if(strcmp(cmdtext, "/respawncars", true) == 0)
    {
        if (IsPlayerAdmin(playerid))
        {
            new inVeh = 0;
            for(new i = 0; i < MAX_VEHICLES; i++)
            {
                for (new j = 0; j < MAX_PLAYERS; j++)
                {
                    if (IsPlayerInVehicle(j, i))
                    {
                        inVeh = 1;
                        break;
                    }
                }
                if (inVeh != 1)
                {
                    SetVehicleToRespawn(i);
                }
                inVeh = 0;
            }
            SendClientMessageToAll(COLOR_RED, "All vehicles has been respawned!");
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "You are not RCON Admin");
        }
        return 1;
    }
Reply


Messages In This Thread
Help with respawn vehicles - by sniperwars - 24.02.2012, 18:33
Re: Help with respawn vehicles - by dice7 - 24.02.2012, 18:42
Re: Help with respawn vehicles - by sniperwars - 24.02.2012, 19:11
Re: Help with respawn vehicles - by dice7 - 24.02.2012, 19:17
Re: Help with respawn vehicles - by sniperwars - 24.02.2012, 20:50
Re: Help with respawn vehicles - by sniperwars - 24.02.2012, 20:53
Re: Help with respawn vehicles - by sniperwars - 24.02.2012, 21:26
Re: Help with respawn vehicles - by Marco_Valentine - 24.02.2012, 23:51

Forum Jump:


Users browsing this thread: 3 Guest(s)