30.05.2014, 07:46
Inside your player enum (Put this in the middle, if you put this in the last, remove the "," at the last variable)
under OnPlayerDisconnect (Where you save player's stats while disconnecting)
and on "LoadUser_data" function or whatever.
Under OnPlayerSpawn
pawn Код:
Float:SX,
Float:SY,
Float:SZ,
Skin,
pawn Код:
GetPlayerPos(playerid, pInfo[playerid][SX], pInfo[playerid][SY], pInfo[playerid][SZ]);
INI_WriteFloat(File, "XPos", pInfo[playerid][SX]);
INI_WriteFloat(File, "YPos", pInfo[playerid][SY]);
INI_WriteFloat(File, "ZPos", pInfo[playerid][SZ]);
INI_WriteInt(File, "Skin", GetPlayerSkin(playerid));
pawn Код:
INI_Float("XPos", pInfo[playerid][XPos]);
INI_Float("YPos", pInfo[playerid][YPos]);
INI_Float("ZPos", pInfo[playerid][ZPos]);
INI_Int("Skin", pInfo[playerid][Skin]);
pawn Код:
SetPlayerPos(playerid, pInfo[playerid][XPos], pInfo[playerid][YPos], pInfo[playerid][ZPos]);
SetPlayerSkin(playerid, pInfo[playerid][Skin]);

