Help with character spawn
#1

ok so i have the interior for a house but how do i get character to spawn in house?
Reply
#2

SetPlayerPos( x, y, z);
SetPlayerInterior(int id);
Reply
#3

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

Код:
 AddPlayerClass(100,2513.1167,-1670.8700,13.5096,84.3190,24,99999,4,1,30,99999); // TBK Spawn
Reply
#4

yeah how do i add it to it?
Reply
#5

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

Under 'public OnPlayerSpawn' add the following:

SetPlayerInterior(playerid, ChangeThisToYourInteriorID);

Example:

Код:
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)