PlayerSpawn When joining.. -
HarrySidwell - 01.12.2011
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
Re: PlayerSpawn When joining.. -
park4bmx - 01.12.2011
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
Re: PlayerSpawn When joining.. -
HarrySidwell - 01.12.2011
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?
Re: PlayerSpawn When joining.. -
English-Conceptz - 01.12.2011
no lol you change those values to where you want the player to spawn
X = 2457
Y = 2229
Z = 4.8
Re: PlayerSpawn When joining.. -
HarrySidwell - 01.12.2011
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?
Re: PlayerSpawn When joining.. -
park4bmx - 01.12.2011
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
Re: PlayerSpawn When joining.. -
HarrySidwell - 01.12.2011
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
Re: PlayerSpawn When joining.. -
park4bmx - 01.12.2011
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 ?
Re: PlayerSpawn When joining.. -
HarrySidwell - 01.12.2011
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
Re: PlayerSpawn When joining.. -
park4bmx - 01.12.2011
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);