Help me position
#3

use this

pawn Код:
//Lets say that this is ur playerinfo system
enum pinfo
{
//Here is ur other defines
Float:pPos_x, //for the x coord
Float:pPos_y, //for the y coord
Float:pPos_z, //for the z coord
Float:pPos_A, //for the facing angle
};
new PlayerInfo[MAX_PLAYERS][pInfo];

Now to the OnPlayerDisconnect and add this

pawn Код:
GetPlayerPos(playerid, PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPos_A]);
//Done all coordinates are saved
Now to spawn at this pos, u need to add this lines to OnPlayerSpawn.If u already use other spawn coords u need to delete them.

pawn Код:
SetPlayerPos(playerid, PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPos_A]);
Reply


Messages In This Thread
Help me position - by GeonMake - 04.02.2011, 17:58
Re: Help me position - by Steven Paul - 04.02.2011, 18:00
Re: Help me position - by Steven Paul - 04.02.2011, 18:03
Re: Help me position - by GeonMake - 04.02.2011, 18:13
Re: Help me position - by newarvuti - 05.02.2011, 13:45

Forum Jump:


Users browsing this thread: 2 Guest(s)