26.04.2010, 20:21
well you need to try something like
thats an example and wont work 100% just trying to help you understand
Код:
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); } }