31.03.2014, 16:59
I do not know how I could save the logout position, weapons, everything but life and vest, can someone make me a script to save life and vest when entering and exiting the game?
public OnPlayerDisconnect(playerid, reason)
new Float:a;
GetPlayerArmour(playerid, a);
new Float:h;
GetPlayerHealth(playerid, h);
PlayerInfo[playerid][pHealthS] = h;
PlayerInfo[playerid][pArmourS] = a;
public OnPlayerSpawn(playerid)
if(PlayerInfo[playerid][pLevel] >= 1){
SetPlayerHealth(playerid, PlayerInfo[playerid][pHealthS]);
SetPlayerArmour(playerid, PlayerInfo[playerid][pArmourS]);
}