SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 29/03/2012, 12:25 AM   #1
TheMightyEddy
Banned
 
Join Date: Mar 2011
Posts: 304
Reputation: 7
Default City Hall Question! PLEASE HELP ME!

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
TheMightyEddy is offline   Reply With Quote
Old 29/03/2012, 12:30 AM   #2
Lynn
Gangsta
 
Lynn's Avatar
 
Join Date: Jan 2010
Location: Detroit, Michigan USA
Posts: 805
Reputation: 75
Default Re: City Hall Question! PLEASE HELP ME!

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.
__________________
Former NG:RP Developer.
Lynn is offline   Reply With Quote
Old 29/03/2012, 12:33 AM   #3
TheMightyEddy
Banned
 
Join Date: Mar 2011
Posts: 304
Reputation: 7
Default Re: City Hall Question! PLEASE HELP ME!

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.
TheMightyEddy is offline   Reply With Quote
Old 29/03/2012, 12:40 AM   #4
Lynn
Gangsta
 
Lynn's Avatar
 
Join Date: Jan 2010
Location: Detroit, Michigan USA
Posts: 805
Reputation: 75
Default Re: City Hall Question! PLEASE HELP ME!

AddStaticPickup
__________________
Former NG:RP Developer.
Lynn is offline   Reply With Quote
Old 29/03/2012, 12:53 AM   #5
TheMightyEddy
Banned
 
Join Date: Mar 2011
Posts: 304
Reputation: 7
Default Re: City Hall Question! PLEASE HELP ME!

Do you think you can do it for me please? I don't understand at all.
TheMightyEddy is offline   Reply With Quote
Old 29/03/2012, 01:06 AM   #6
Lynn
Gangsta
 
Lynn's Avatar
 
Join Date: Jan 2010
Location: Detroit, Michigan USA
Posts: 805
Reputation: 75
Default Re: City Hall Question! PLEASE HELP ME!

What are you wanting exactly?
__________________
Former NG:RP Developer.
Lynn is offline   Reply With Quote
Old 29/03/2012, 01:15 AM   #7
ReneG
High-roller
 
Join Date: Oct 2011
Location: Sublime Text 2
Posts: 2,006
Reputation: 333
Default Re: City Hall Question! PLEASE HELP ME!

Is it like really that hard to google "How to make teleport pickups in SAMP"? Google is one of the best tools on the internet, use it to your advantage, especially for something so simple to do. Consult google, 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 Code:
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.
ReneG is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[NPC] City Hall Pawno_Master Filterscripts 51 06/04/2013 03:00 PM
[Map] [Map]City Hall RP NekErM@N Maps 9 25/04/2012 01:39 PM
[Map] City Hall niyaz Maps 10 28/02/2012 08:33 PM
[Map] City Hall Fences Jarred Miller Maps 6 05/02/2011 05:54 PM


All times are GMT. The time now is 11:55 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.