25.09.2017, 14:02
I have something like this:
As you can see,
This will spawn me a vehicle.
If it has no driver/passager for 2 minutes it will respawn.
The problem is that it's respawning in the place you can request the vehicle, and not dissapearing from the map.
How can I make it DISSAPEAR and not RESPAWN ?
Код HTML:
if(response) { switch(listitem) { case 0: { GetPlayerFacingAngle(playerid, angle); GetPlayerPos(playerid, x, y, z); national_veh1 = CreateVehicle(481, x, y, z, angle, 144, 145, 120, 0); PutPlayerInVehicle(playerid,national_veh1,0); i[playerid] = 1; reset1(playerid); return 1; }
Код HTML:
national_veh1 = CreateVehicle(481, x, y, z, angle, 144, 145, 120, 0);
If it has no driver/passager for 2 minutes it will respawn.
The problem is that it's respawning in the place you can request the vehicle, and not dissapearing from the map.
How can I make it DISSAPEAR and not RESPAWN ?