Give all players a car?
#2

Hello there
You are either not skilled enough or lazy enough for such easy transform?
Well.. Not my problem, though.

pawn Код:
dcmd_givecar(playerid,params[])
{
    if(AccInfo[playerid][Level] >= 3 || IsPlayerAdmin(playerid))
    {
        for(new iPlayer = 0; iPlayer != MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(iPlayer))
            {
                // Major code goes here.
                SendCommandToAdmins(playerid,"GiveCar");
                new
                    Float:x,
                    Float:y,
                    Float:z,
                    tmpVehId
                ;
                GetPlayerPos(player1,x,y,z);
               
                if(IsPlayerInAnyVehicle(iPlayer))
                {
                    tmpVehId = GetPlayerVehicleID(iPlayer);
                    RemovePlayerFromVehicle(iPlayer);
                    SetVehicleToRespawn(tmpVehId);
                }
                CarSpawner(player1,415);
            }
        }
    }
}
This code gives all player vehicle via CarSpawner(id, vehid) (perhaps??)
Making it look more cooler or add some more stuff - its all on your hands now.

Greetz,
LetsOWN
Reply


Messages In This Thread
Give all players a car? - by Eminem 2ka9 - 05.03.2013, 18:03
Re: Give all players a car? - by LetsOWN[PL] - 05.03.2013, 18:12
Re: Give all players a car? - by Eminem 2ka9 - 05.03.2013, 18:20
Re: Give all players a car? - by LetsOWN[PL] - 05.03.2013, 18:28
Re: Give all players a car? - by Eminem 2ka9 - 05.03.2013, 18:30
Re: Give all players a car? - by tyler12 - 05.03.2013, 18:53

Forum Jump:


Users browsing this thread: 1 Guest(s)