Co-ords Scripting help
#1

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?
Reply
#2

go in debug mode and go in vehicle and do /save inside the vehicle it can also work if ur ingame.. on ur server
Reply
#3

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?
Reply
#4

Same as on debug mode

/save


This might help too: https://sampwiki.blast.hk/wiki/Debug_Guide
Reply
#5

Quote:
Originally Posted by Desert
Same as on debug mode

/save


This might help too: https://sampwiki.blast.hk/wiki/Debug_Guide
Thank you
Reply
#6

also one more thing, how do i get house co-ords? i have all the car co-ords
Reply
#7

House cords?

Do you mean as a pickup and when you enter it you get ported to a int?
Reply
#8

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
Reply
#9

so AddPlayerClass(-2720.1086,-318.3121,7.843 is my house to enter?
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)