Need help with zcmd /ban command.
#4

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    new INI:File = INI_Open(UserPath(playerid));
    INI_SetTag(File,"data");
    INI_WriteInt(File,"Level",GetPlayerScore(playerid));
    INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
    INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
    INI_WriteInt(File,"Banned",PlayerInfo[playerid][pBanned]);
    INI_Close(File);
    return 1;
}
You need to close the file once you are done with it.
Reply


Messages In This Thread
Need help with zcmd /ban command. - by danielpalade - 24.11.2014, 21:53
Re: Need help with zcmd /ban command. - by DobbysGamertag - 24.11.2014, 21:58
Re: Need help with zcmd /ban command. - by danielpalade - 24.11.2014, 22:05
Re: Need help with zcmd /ban command. - by Banana_Ghost - 25.11.2014, 03:23

Forum Jump:


Users browsing this thread: 1 Guest(s)