Warning help
#5

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    GetPlayerPos(playerid, PlayerInfo[playerid][pSpawnX], PlayerInfo[playerid][pSpawnY], PlayerInfo[playerid][pSpawnZ]);
    GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pSpawnA]);
    new INI:File = INI_Open(UserPath(playerid));
    INI_SetTag(File,"data");
    INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
    INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
    INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
    INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
    INI_WriteInt(File,"Skin",GetPlayerSkin(playerid));
    INI_WriteInt(File,"Banned",PlayerInfo[playerid][pBanned]);
    INI_WriteFloat(File,"SpawnX",PlayerInfo[playerid][pSpawnX]);
    INI_WriteFloat(File,"SpawnY",PlayerInfo[playerid][pSpawnY]);
    INI_WriteFloat(File,"SpawnZ",PlayerInfo[playerid][pSpawnZ]);
    INI_WriteFloat(File,"SpawnA",PlayerInfo[playerid][pSpawnA]);
    INI_Close(File);
    return 1;
}
Reply


Messages In This Thread
Warning help - by Tom1412 - 28.04.2012, 16:27
Re: Warning help - by ViniBorn - 28.04.2012, 16:28
Re: Warning help - by admantis - 28.04.2012, 16:44
Re: Warning help - by Tom1412 - 28.04.2012, 17:54
Re: Warning help - by ViniBorn - 28.04.2012, 18:10
Re: Warning help - by Tom1412 - 28.04.2012, 23:14
Re: Warning help - by Jonny5 - 29.04.2012, 00:58
Re: Warning help - by JaKe Elite - 29.04.2012, 01:00

Forum Jump:


Users browsing this thread: 1 Guest(s)