CreateVehicle
#5

Quote:
Originally Posted by adsy
Посмотреть сообщение
ok well i had this issue

REALLY REALLY EASY!

CreateVehicle(vehid,xpos,ypos,zpos,angle+90,-1,-1,-1);

look at the last bit:

-1

thats all you need to do!
I think you misunderstood my question.

Anyways, I figured it out. Everytime the player spawns his bought vehicle, it's ID starts from 191. I added

Код:
if(vehicleid > 190) DestroyVehicle(vehicleid);
in the OnVehicleDeath function. So that means if the player creates vehicles themeselves, and if that vehicle explodes, it will never again respawn in the same area.
Reply


Messages In This Thread
CreateVehicle - by Brandlax - 02.11.2012, 18:44
Re: CreateVehicle - by Private200 - 02.11.2012, 18:50
Re: CreateVehicle - by Lorrden - 02.11.2012, 18:51
Re: CreateVehicle - by adsy - 02.11.2012, 19:11
Re: CreateVehicle - by Brandlax - 02.11.2012, 19:39
Re: CreateVehicle - by adsy - 02.11.2012, 20:28

Forum Jump:


Users browsing this thread: 6 Guest(s)