Help [How] get x,z,y -
morocco - 20.03.2013
Hi guys
please , how to get x,z,y at car
Re: Help [How] get x,z,y -
Djean - 20.03.2013
Are you trying to find out the X,Y,Z of a car or just your position?
Re: Help [How] get x,z,y -
XStormiest - 20.03.2013
ok this is simillars to the player get pos function
just look
Код:
for(new i = 0;i > MAX_VEHICLE;i++)
{
new Float:X,Float:Y,Float:Z;
GetVehiclePos(i,X,Y,Z);
new string[256];
format(string,sizeof(string),"Car id %i on the pos %f, %f , %f",i,X,Y,Z);
print(string);
}
this get the poss for all the cars from the server and print the cordonates into the console
Re: Help [How] get x,z,y -
teomakedonija - 20.03.2013
/save
Re: Help [How] get x,z,y -
Gamer_007 - 20.03.2013
pawn Код:
new Float:X,Float:Y,Float:Z;
GetVehiclePos(vehicleid,X,Y,Z);
Try the upper code ^^
Re: Help [How] get x,z,y -
XStormiest - 20.03.2013
ok Gamer, but you know the vehicleid isn't define in all the callbacks, so he will get errors.
Re: Help [How] get x,z,y -
DiGiTaL_AnGeL - 20.03.2013
pawn Код:
new Float:x, Float:y, Float:z;
GetVehiclePos(id, x, y, z);
But next time search before asking :
https://sampwiki.blast.hk/wiki/GetVehiclePos
Re: Help [How] get x,z,y -
Hade1234 - 20.03.2013
Quote:
Originally Posted by Gamer_007
pawn Код:
new Float:X,Float:Y,Float:Z; GetVehiclePos(vehicleid,X,Y,Z);
Try the upper code ^^
|
How i use this pawn
Re: Help [How] get x,z,y -
Gamer_007 - 20.03.2013
Quote:
Originally Posted by Hade1234
How i use this pawn
|
First of all you tell, what you want? I mean where you want to use it?
Re : Help [How] get x,z,y -
morocco - 20.03.2013
lol , thanks all
==> But i mean Get x,z,y ( like : if Player in this x,z,y using /get or any cmd .... )