Spawn inside a vehicle
#4

Quote:
Originally Posted by Madsen
Посмотреть сообщение
thx it worked with a little editing

another question i want to ask about:
When the cars explode they respawn the place i wrote /infernus. how can i get them removed when they explode ?
You can do like that .


pawn Код:
//Put In The Top of your GameMode:

new CreatedVehicleVar[MAX_PLAYERS];



//In your command, change this line:

CreateVehicle(411, x+1, y+1, z+1, 0, 0, 0, 600);

//for:

CreatedVehicleVar[playerid] = CreateVehicle(411, x+1, y+1, z+1, 0, 0, 0, 600);



//And at least, put it in OnVehicleDeath callback:


for(new x = 0; x < MAX_PLAYERS; x++)
    {
        if(CreatedVehicleVar[x] == vehicleid)
        {
            DestroyVehicle(vehicleid);
        }
    }
I hope that i have helped
Reply


Messages In This Thread
Spawn inside a vehicle - by Madsen - 19.02.2011, 22:28
Re: Spawn inside a vehicle - by rjjj - 19.02.2011, 22:46
Re: Spawn inside a vehicle - by Madsen - 19.02.2011, 23:46
Re: Spawn inside a vehicle - by rjjj - 19.02.2011, 23:58
Re: Spawn inside a vehicle - by Madsen - 28.02.2011, 14:39
Re: Spawn inside a vehicle - by Madsen - 28.02.2011, 14:46
Re: Spawn inside a vehicle - by Max_Coldheart - 28.02.2011, 15:03
Re: Spawn inside a vehicle - by Madsen - 28.02.2011, 15:49
Re: Spawn inside a vehicle - by MrDeath537 - 28.02.2011, 16:00
Re: Spawn inside a vehicle - by Madsen - 28.02.2011, 16:06

Forum Jump:


Users browsing this thread: 1 Guest(s)