PlayerSpawn When joining..
#1

Hi im doing my Server which is set in BaySide, and i trying to change the Spawn Pos... But i don't know how.. this is what i think it is.
Код:
stock firstPlayerSpawn(playerid) {
	playerVariables[playerid][pTutorial] = 0;
	playerVariables[playerid][pFirstLogin] = 0;

	playerVariables[playerid][pPos][0] = -2467.5938;
	playerVariables[playerid][pPos][1] = 2229.4067;
	playerVariables[playerid][pPos][2] = 4.8438;

	playerVariables[playerid][pInterior] = 0;
	playerVariables[playerid][pVirtualWorld] = 0;

	SetSpawnInfo(playerid, 0, playerVariables[playerid][pSkin], playerVariables[playerid][pPos][0], playerVariables[playerid][pPos][1], playerVariables[playerid][pPos][2], 0, 0, 0, 0, 0, 0, 0);
	SpawnPlayer(playerid);

	TextDrawHideForPlayer(playerid, textdrawVariables[3]);
At PlayerVariables[playerid][pPos] is where i changed the OnFoot Position, is anything wrong with this?
Or if it is incorrect completely please tell me what to do..]
thanks
Reply
#2

as you can see the
Код:
playerVariables[playerid][pPos][0] = -2467.5938; //X
playerVariables[playerid][pPos][1] = 2229.4067; //Y
playerVariables[playerid][pPos][2] = 4.8438;//Z
that is the X,Y,Z cordinates you need
Reply
#3

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
as you can see the
Код:
playerVariables[playerid][pPos][0] = -2467.5938; //X
playerVariables[playerid][pPos][1] = 2229.4067; //Y
playerVariables[playerid][pPos][2] = 4.8438;//Z
that is the X,Y,Z cordinates you need
So i got to add //X //Y //Z At the end?
Reply
#4

no lol you change those values to where you want the player to spawn

X = 2457
Y = 2229
Z = 4.8
Reply
#5

Quote:
Originally Posted by English-Conceptz
Посмотреть сообщение
no lol you change those values to where you want the player to spawn

X = 2457
Y = 2229
Z = 4.8
Can you redo the PlayerSpawn[pPos] Thingy to show me, Please?
Reply
#6

Quote:
Originally Posted by HarrySidwell
Посмотреть сообщение
Can you redo the PlayerSpawn[pPos] Thingy to show me, Please?
just post here the cordinates you want to spawn with and i will show you how
Reply
#7

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
just post here the cordinates you want to spawn with and i will show you how
X -2467.5938 Y 2229.4067 Z 4.8438

Think that's it
Reply
#8

ohh these are the same cordinates
dont see anything wronge with the code
should change the spawn info
but what exactly r u trying to do ?
Reply
#9

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
ohh these are the same cordinates
dont see anything wronge with the code
should change the spawn info
but what exactly r u trying to do ?
Im Trying to make it so If a new person joins the server, They spawn in Bayside, at the newbie spawn
Reply
#10

Quote:
Originally Posted by HarrySidwell
Посмотреть сообщение
Im Trying to make it so If a new person joins the server, They spawn in Bayside, at the newbie spawn
why dont u just use SetPlayerPos(playerid,X,Y,Z);
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)