How to show SpawnInfo, as PlayerInfo?
#1

I want this:
SetSpawnInfo( playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0 );
To spawn on pX, pY, etc. How can I do that?
Reply
#2

Quote:
Originally Posted by Mey6155
Посмотреть сообщение
I want this:
SetSpawnInfo( playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0 );
To spawn on pX, pY, etc. How can I do that?
Set it under Public OnPlayerSpawn
Reply
#3

pawn Код:
new Float: X = PlayerInfo[playerid][pPosX], Float Y = PlayerInfo[playerid][pPosY], PlayerInfo[playerid][pPosZ];
new Float: Angle = PlayerInfo[playerid][pFacingAngle];
SetSpawnInfo(playerid, 0, PlayerInfo[playerid[pSkinID], X, Y, Z, Angle, 0, 0, 0, 0, 0, 0);
Reply
#4

How could I save the X Y Z, Angel, Interior, World? In the PlayerInfo? I'll +REP
Reply
#5

Quote:
Originally Posted by Mey6155
Посмотреть сообщение
How could I save the X Y Z, Angel, Interior, World? In the PlayerInfo? I'll +REP
/rs or /save anywhere you want to get coordinates.

You find it in My documents > Gta san Andreas user files
Reply
#6

Not that how can i add the floats that i said in my enum. Register and stuff.
Reply
#7

Код:
enum pInfo
{
pX,
pY,
pZ,
pA,
int,
vw

};
new PlayerInfo[MAX_PLAYERS][pInfo];
Код:
stock SaveSpawnFloats(playerid,Float:x,Float:y,Float:z,Float:a,int,vw)
{
	PlayerInfo[playerid][pX] = x;
	PlayerInfo[playerid][py] = y;
	PlayerInfo[playerid][pZ] = z;
	PlayerInfo[playerid][pA] = a;
	PlayerInfo[playerid][int] = int;
	PlayerInfo[playerid][vw] = vw;
}
You meant like this?

Add it under spawn info.
SaveSpawnFloats(playerid,1958.33,1343.12,15.36,269 .15,26,36);
Reply
#8

Your going the good way,also interior world and angel.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)