Posts: 98
Threads: 30
Joined: Aug 2009
Reputation:
0
now it doesn't destroy any vehicle.. i think it might have something to do with new CarID = GetVehicleModel(GetPlayerVehicleID(i));
because isn't a vehicles id specific to that vehicle? not that vehicle type?
Posts: 995
Threads: 71
Joined: Jul 2008
Reputation:
0
Use DestroyVehicle(playerid,GetPlayerVehicleID(playeri d)); instead of SetVehicleHealth..
Posts: 98
Threads: 30
Joined: Aug 2009
Reputation:
0
Thanks coole for the help, but I would rather use SetVehicleHealth because instead of just deleting the vehicle, it blows it up, which is the effect I'm looking for
Posts: 995
Threads: 71
Joined: Jul 2008
Reputation:
0
If it blows up, then it will respawn at hackers ( or some1 elses ) spawn point.
Posts: 1,501
Threads: 19
Joined: Nov 2007
Reputation:
0
This isn't to prevent hackers from spawning these. It is so that when someone leaves a deathmatch area I presume in one of these vehicles, it blows them up. It may be easier just to set world boundaries though.
Posts: 899
Threads: 54
Joined: May 2009
Reputation:
0
Why not use SetVehicleToRespawn instead of destroying the vehicle?
Posts: 98
Threads: 30
Joined: Aug 2009
Reputation:
0
does anyone know why it's not working? i just dont understand why it isn't, it looks like it should. they just dont disappear when i leave the area.