public OnPlayerDisconnect(playerid, reason){new file[128], pname[MAX_PLAYER_NAME];new Float:x, Float:y, Float:z;GetPlayerName(playerid, pname, sizeof(pname));format(file, sizeof(file), \"ROOCKmunka/Pos/%s.pos\", pname);if(!dini_Exists(file))dini_Create(file);GetPlayerPos(playerid, x, y, z);dini_FloatSet(file, \"posX\", x);dini_FloatSet(file, \"posY\", y);dini_FloatSet(file, \"posZ\", z);return 1;}public OnPlayerSpawn(playerid){new file[128], pname[MAX_PLAYER_NAME];new Float:x, Float:y, Float:z;GetPlayerName(playerid, pname, sizeof(pname));format(file, sizeof(file), \"ROOCKmunka/Pos/%s.pos\", pname);x = dini_Float(file, \"posX\");y = dini_Float(file, \"posY\");z = dini_Float(file, \"posZ\");SetPlayerPos(playerid, x, y, z);return 1;}
public OnPlayerDisconnect(playerid, reason){ new file[128], pname[MAX_PLAYER_NAME]; new Float:x, Float:y, Float:z; GetPlayerName(playerid, pname, sizeof(pname)); format(file, sizeof(file), \"ROOCKmunka/Pos/%s.pos\", pname);if(!dini_Exists(file)) dini_Create(file); GetPlayerPos(playerid, x, y, z); dini_FloatSet(file, \"posX\", x); dini_FloatSet(file, \"posY\", y); dini_FloatSet(file, \"posZ\", z); return 1;}public OnPlayerSpawn(playerid){ new file[128], pname[MAX_PLAYER_NAME]; new Float:x, Float:y, Float:z; GetPlayerName(playerid, pname, sizeof(pname)); format(file, sizeof(file), \"ROOCKmunka/Pos/%s.pos\", pname);if(!dini_Exists(file)) { SendClientMessage(playerid, -1, \"Elsõ belépésed ezért LV-ben raktunk le. Lecsatlakozáskor mentõdik az adatod és ott leszel ahol kiléptél\");SetPlayerPos(playerid, 2204.9468, 1986.2877, 16.7380);}else{ x = dini_Float(file, \"posX\"); y = dini_Float(file, \"posY\"); z = dini_Float(file, \"posZ\"); SetPlayerPos(playerid, x, y, z); } return 1;}