28.10.2010, 12:00
Hi guys,
can you help me with problem with DestroyVehicle ?
First:
I create my admin car.
All is right.
But if i create more cars (2, 3, 4, 5....), and i destroycars with
I destroy only last one car.
Can you help me with destroy all created cars ?
Thank you, good day
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; }
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; }
Can you help me with destroy all created cars ?
Thank you, good day