start coordinates vehicle
#3

Quote:
Originally Posted by Mugala
Посмотреть сообщение
you must save it's variable when you create this vehicle.
for example, write a script with auto-saving this variables.
example:
at the top of the code
PHP код:
new Float:VPos[MAX_VEHICLES][3]; 
PHP код:
stock AddStaticVehicleExtra(model,Float:X,Float:Y,Float:Z,Float:Angle,color1,color2,respawntime,siren=0)
{
    new 
createdcar AddStaticVehicleEx(model,X,Y,Z,Angle,color1,color2,respawntime,siren);
    
VPos[createdcar][0] = XVPos[createdcar][1] = YVPos[createdcar][2] = Z;
    return 
1;

so now you can use VPos[vehicleid][0-2] as the vehicle's spawn coordinates.
Niiiice! Thx
Reply


Messages In This Thread
start coordinates vehicle - by Hitropl - 20.04.2018, 20:50
Re: start coordinates vehicle - by Mugala - 20.04.2018, 23:23
Re: start coordinates vehicle - by Hitropl - 21.04.2018, 08:31

Forum Jump:


Users browsing this thread: 1 Guest(s)