Co-ords Scripting help -
Ritchie999 - 26.09.2009
i am making my first script for sa-mp, i think i got the hang of scripting from previous editing, but the only thing i dont understand is how to get the vehicle co-ords and how to add different vehicles?
Re: Co-ords Scripting help -
XCultz - 26.09.2009
go in debug mode and go in vehicle and do /save inside the vehicle it can also work if ur ingame.. on ur server
Re: Co-ords Scripting help -
Ritchie999 - 26.09.2009
Quote:
|
Originally Posted by XCultz
go in debug mode and go in vehicle and do /save inside the vehicle it can also work if ur ingame.. on ur server
|
how do i do it if im ingame on my server?
Re: Co-ords Scripting help -
Desert - 26.09.2009
Same as on debug mode
/save
This might help too:
https://sampwiki.blast.hk/wiki/Debug_Guide
Re: Co-ords Scripting help -
Ritchie999 - 26.09.2009
Quote:
|
Originally Posted by Desert
|
Thank you
Re: Co-ords Scripting help -
Ritchie999 - 27.09.2009
also one more thing, how do i get house co-ords? i have all the car co-ords
Re: Co-ords Scripting help -
Desert - 27.09.2009
House cords?
Do you mean as a pickup and when you enter it you get ported to a int?
Re: Co-ords Scripting help -
Mike Garber - 27.09.2009
Same thing, /save.
If you do save while on foot, you'll get, for example
pawn Код:
AddPlayerClass(250,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0);
Explination:
AddPlayerClass(skin,
Float
, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
The ones you're interested in, is the
Float
, Float:y, Float:z.
That's coordinates only.
Let's say you get this when you do /save
Код:
AddPlayerClass(250,-2720.1086,-318.3121,7.8438,43.699,0,0,0,0,0,0);
The coordinates only is then;
Код:
-2720.1086,-318.3121,7.8438
Re: Co-ords Scripting help -
Ritchie999 - 27.09.2009
so AddPlayerClass(-2720.1086,-318.3121,7.843

is my house to enter?
Re: Co-ords Scripting help -
Mike Garber - 27.09.2009
No....
Код:
-2720.1086,-318.3121,7.8438
Is the Coordinates. You can use these coordinates to create, for example a Pickup, to make a House-icon!
https://sampwiki.blast.hk/wiki/CreatePickup
https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup