[HELP] Spawn Point Save
#2

well you need to try something like

Код:
Public OnPlayerDissconect
{
new float:LogX,float:LogY,float:LogZ;
GetPlayerPos(playerid, LogX,LogY,LogZ);
and use a varibale to save this cords for example
PlayerInfo[playerid][logpositionX] = LogX;
PlayerInfo[playerid][logpositionX] = Log,Y;
PlayerInfo[playerid][logpositionX] = LogZ;
}
and then on player spawn you make a call back 

public onplayerspawn
{
if(!PlayerInfo[playerid][logposition]= 0)
{
  new LogX = PlayerInfo[playerid][logpositionX];
  new LogY = PlayerInfo[playerid][logpositionY];
  new LogZ = PlayerInfo[playerid][logpositionZ];
  SetPlayerPost(playerid,LogX,LogY,LogZ);
}
}
thats an example and wont work 100% just trying to help you understand
Reply


Messages In This Thread
[HELP] Spawn Point Save - by andershh - 26.04.2010, 20:12
Re: [HELP] Spawn Point Save - by Onyx09 - 26.04.2010, 20:21

Forum Jump:


Users browsing this thread: 1 Guest(s)