SA-MP Forums Archive
City Hall Question! PLEASE HELP ME! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: City Hall Question! PLEASE HELP ME! (/showthread.php?tid=329510)



City Hall Question! PLEASE HELP ME! - TheMightyEddy - 29.03.2012

Okay so I want to make a city hall right check point entry mark right where the red arrow is:



And when I exit city hall, I want to come out and spawn back at the same place i entered but facing the other way. Can someone please help me? Thanks


Re: City Hall Question! PLEASE HELP ME! - Lynn - 29.03.2012

SetPlayerFacingAngle(playerid, Angle);
To get this angle face the way you want, and then do /save.
Goto your SavePositions file, and it should be like
AddPlayerClass(ClassID, X, Y, Z, A, blahhhhhh);
Copy + Paste the A(ngle) into the SetPlayerFacingAngle.


Re: City Hall Question! PLEASE HELP ME! - TheMightyEddy - 29.03.2012

Wait I don't get it. How do I add an "enter" icon or something like that so people know to go there to enter and then it will take me to city hall and inside city hall there will be another icon so when people go to it, they will enter and spawn back outside.


Re: City Hall Question! PLEASE HELP ME! - Lynn - 29.03.2012

AddStaticPickup


Re: City Hall Question! PLEASE HELP ME! - TheMightyEddy - 29.03.2012

Do you think you can do it for me please? I don't understand at all.


Re: City Hall Question! PLEASE HELP ME! - Lynn - 29.03.2012

What are you wanting exactly?


Re: City Hall Question! PLEASE HELP ME! - ReneG - 29.03.2012

Is it like really that hard to ****** "How to make teleport pickups in SAMP"? ****** is one of the best tools on the internet, use it to your advantage, especially for something so simple to do. Consult ******, or the search button before posting here.

Go in game and type "/save" in the chatbox.
Now go to GTA San Andreas User Files and click on SAMP. There is a file called savedpositions.txt.
Open it and look at it.
It should look like
pawn Код:
AddPlayeClass
with a bunch of integers and commas. The first number is the skinid you had when you typed the command, then the next three set of integers that separated by commas are the x, y, and z coordinates of where ever you were when you typed the command. Now look at the next number, that is the angle float. Copy that float and use it with SetPlayerFacing angle in your OnPlayerPickUpPickup. If you are still confused, read the damn wiki.sa-mp webpage. It explains it perfectly.