A problem in OnPlayerDisconnect
#8

pawn Code:
public OnPlayerDisconnect(playerid, reason)
{
    if(pLogged[playerid] == 1)
    {
        new INI:iFile = INI_Open(PlayerPath(playerid));
        INI_SetTag(iFile,"data");
        INI_WriteInt(iFile,"Cash",GetPlayerMoney(playerid));
        INI_WriteInt(iFile,"Score",GetPlayerScore(playerid));
        INI_Close(iFile);
    }

    pLogged[playerid] = 0;
    TextDrawHideForPlayer(playerid, TextdrawConnect0);
    TextDrawHideForPlayer(playerid, TextdrawConnect1);
    TextDrawHideForPlayer(playerid, TextdrawConnect2);
    TextDrawHideForPlayer(playerid, TextdrawConnect3);
    TextDrawHideForPlayer(playerid, TextdrawConnect4);
    TextDrawHideForPlayer(playerid, TextdrawConnect5);
    TextDrawHideForPlayer(playerid, TextdrawConnect6);
    TextDrawHideForPlayer(playerid, TextdrawConnect7);
    TextDrawHideForPlayer(playerid, TextdrawConnect8);
    TextDrawHideForPlayer(playerid, TextdrawConnect9);
    TextDrawHideForPlayer(playerid, TextdrawConnect10);
    TextDrawHideForPlayer(playerid, TextdrawConnect11);
    TextDrawHideForPlayer(playerid, TextdrawConnect12);
    TextDrawHideForPlayer(playerid, TextdrawConnect13);
    TextDrawHideForPlayer(playerid, TextdrawConnect14);
    TextDrawHideForPlayer(playerid, TextdrawConnect15);
    TextDrawHideForPlayer(playerid, TextdrawConnect16);
    TextDrawHideForPlayer(playerid, TextdrawConnect17);
    TextDrawHideForPlayer(playerid, TextdrawConnect18);
    TextDrawHideForPlayer(playerid, TextdrawConnect19);
    TextDrawHideForPlayer(playerid, Time1);
    TextDrawHideForPlayer(playerid, Date);        // DATE AND TIME
    TextDrawHideForPlayer(playerid, Credit);      // Credits
    StopAudioStreamForPlayer(playerid); // I find this pointless
    Radio[playerid] = false;
    return 1;
}
Reply


Messages In This Thread
A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 07:39
Re: A problem in OnPlayerDisconnect - by iRage - 17.05.2012, 07:49
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 08:14
Re: A problem in OnPlayerDisconnect - by $$Killer$$ - 17.05.2012, 08:18
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 08:21
Re: A problem in OnPlayerDisconnect - by $$Killer$$ - 17.05.2012, 08:35
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 08:43
Re: A problem in OnPlayerDisconnect - by Kitten - 17.05.2012, 08:46
Re: A problem in OnPlayerDisconnect - by $$inSane - 17.05.2012, 08:48
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 08:48
Re: A problem in OnPlayerDisconnect - by Kitten - 17.05.2012, 08:52
Re: A problem in OnPlayerDisconnect - by $$inSane - 17.05.2012, 09:06
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 09:42
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 09:56
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 10:58
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 11:05
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 11:21
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 11:39
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 12:08
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 13:43
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 17:29

Forum Jump:


Users browsing this thread: 7 Guest(s)