[HELP]DestroyVehicle
#1

Hi guys,
can you help me with problem with DestroyVehicle ?

First:
I create my admin car.
Код:
new AdminVozidlo;
dcmd_ac(playerid, params[])
#pragma unused params
{
    if(IsPlayerAdmin(playerid))
    {
   	new Float:X,Float:Y,Float:Z,Float:angle;
	GetPlayerPos(playerid,X,Y,Z);
	AdminVozidlo = CreateVehicle(411,X,Y,Z,angle,0,0,-1);
	PutPlayerInVehicle(playerid, AdminVozidlo, 0);
	}else{ // you are not administrator... etc etc....
	return 1;
}
All is right.
But if i create more cars (2, 3, 4, 5....), and i destroycars with
Код:
dcmd_acd(playerid, params[])
#pragma unused params
{
    if(IsPlayerAdmin(playerid))
    {
    DestroyVehicle(AdminVozidlo);
    }else{ // you are not admin etc, etc....
    }
	return 1;
}
I destroy only last one car.
Can you help me with destroy all created cars ?
Thank you, good day
Reply


Messages In This Thread
[HELP]DestroyVehicle - by nemesis93 - 28.10.2010, 12:00
Re: [HELP]DestroyVehicle - by Kyle - 28.10.2010, 12:16
Re: [HELP]DestroyVehicle - by nemesis93 - 28.10.2010, 22:30
Re: [HELP]DestroyVehicle - by Kyle - 28.10.2010, 22:32
Re: [HELP]DestroyVehicle - by nemesis93 - 29.10.2010, 14:14
Re: [HELP]DestroyVehicle - by nemesis93 - 31.10.2010, 06:23

Forum Jump:


Users browsing this thread: 3 Guest(s)