SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 25/07/2009, 08:37 PM   #1
stud4125
Big Clucker
 
Join Date: Apr 2009
Posts: 118
Reputation: 0
Default Help with character spawn

ok so i have the interior for a house but how do i get character to spawn in house?
stud4125 is offline  
Old 25/07/2009, 08:48 PM   #2
StrickenKid
Gangsta
 
Join Date: Feb 2009
Posts: 778
Reputation: 39
Default Re: Help with character spawn

SetPlayerPos( x, y, z);
SetPlayerInterior(int id);
__________________
StrickenKid is offline  
Old 25/07/2009, 08:49 PM   #3
stud4125
Big Clucker
 
Join Date: Apr 2009
Posts: 118
Reputation: 0
Default Re: Help with character spawn

Quote:
Originally Posted by <__Ǝthan__>
SetPlayerPos( x, y, z);
SetPlayerInterior(int id);
Thanks but i am using this form

Code:
 AddPlayerClass(100,2513.1167,-1670.8700,13.5096,84.3190,24,99999,4,1,30,99999); // TBK Spawn
stud4125 is offline  
Old 25/07/2009, 09:30 PM   #4
stud4125
Big Clucker
 
Join Date: Apr 2009
Posts: 118
Reputation: 0
Default Re: Help with character spawn

yeah how do i add it to it?
stud4125 is offline  
Old 25/07/2009, 09:55 PM   #5
(.Aztec);
Huge Clucker
 
Join Date: Mar 2009
Posts: 456
Reputation: 0
Default Re: Help with character spawn

Keep your primary coordinates on the AddPlayerClass, and do the following:

Under 'public OnPlayerSpawn' add the following:

SetPlayerInterior(playerid, ChangeThisToYourInteriorID);

Example:

Code:
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid, 346.870025,309.259033,1000.0);
SetPlayerInterior(playerid, 6);
return 1;
}
That would make the user spawn in a jail cell.
__________________
Account Inactive

(.Aztec); will no longer be used by me. I am changing my username to an old forum account i've had registered for a while, but never used.

My username has been changed to Sky4D
(.Aztec); is offline  
 

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
What GTA character are you? Guedes747 Everything and Nothing 65 22/05/2010 08:29 AM
Where does this character come from!? ÄitisOnHuora Help Archive 13 25/02/2010 03:42 PM
New players spawn character change tonsai Help Archive 3 22/09/2009 04:13 PM
can`t see character laser50 Help Archive 1 10/04/2009 10:23 PM
My first 3D character Moustafa Everything and Nothing 0 23/03/2009 07:01 PM


All times are GMT. The time now is 04:24 PM.


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