Login registration (spawn when Logged == 0)
#9

pawn Код:
public gmx(playerid)
{
    //resetVars(playerid);
    new INI:File = INI_Open(UserPath(playerid));
    INI_SetTag(File,"data");
    INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
    INI_WriteInt(File,"Kills",PlayerInfo[playerid][Kills]);
    INI_WriteInt(File,"Deaths",PlayerInfo[playerid][Deaths]);
    INI_WriteInt(File,"Adminlevel",PlayerInfo[playerid][Adminlevel]);
    INI_WriteInt(File,"Donator",PlayerInfo[playerid][Donator]);
    INI_WriteInt(File,"Score",GetPlayerScore(playerid));
    INI_WriteInt(File,"Banned",PlayerInfo[playerid][Banned]);
    INI_WriteInt(File,"MaskOn",PlayerInfo[playerid][MaskOn]);
    INI_WriteInt(File,"Muted",PlayerInfo[playerid][Muted]);
    INI_WriteInt(File,"MuteTime",PlayerInfo[playerid][MuteTime]);
    INI_Close(File);
    SendRconCommand("gmx");

}

CMD:gmx(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,WARNINGCOLOR,""#WARNINGMESSAGE"");
    SendClientMessage(playerid, COLOR_RED,"");
    SendClientMessage(playerid, COLOR_RED," ");
    SendClientMessage(playerid, COLOR_RED," ");
    SendClientMessage(playerid, COLOR_RED," ");
    SendClientMessage(playerid, COLOR_RED," ");
    SendClientMessage(playerid, COLOR_RED,"========================================================================");
    SendClientMessage(playerid, COLOR_GREEN,"THE SERVER IS ABOUT TO RESTART FOR A FEW SECONDS - DO NOT DISCONNECT!");
    SendClientMessage(playerid, COLOR_RED,"========================================================================");
    SendClientMessage(playerid, COLOR_RED," ");
    SendClientMessage(playerid, COLOR_RED," ");
    SendClientMessage(playerid, COLOR_RED," ");
    SendClientMessage(playerid, COLOR_RED," ");
    SendClientMessage(playerid, COLOR_RED," ");
    SetTimer("gmx", 5000, false);
    return 1;
}
TRY THAT
Reply


Messages In This Thread
Login registration (spawn when Logged == 0) - by zaider - 11.08.2013, 19:57
Re: Login registration (spawn when Logged == 0) - by Emmet_ - 11.08.2013, 19:59
Re: Login registration (spawn when Logged == 0) - by RedJohn - 11.08.2013, 20:02
AW: Login registration (spawn when Logged == 0) - by zaider - 11.08.2013, 20:10
Re: Login registration (spawn when Logged == 0) - by RedJohn - 11.08.2013, 20:33
AW: Login registration (spawn when Logged == 0) - by zaider - 11.08.2013, 20:52
Re: Login registration (spawn when Logged == 0) - by RedJohn - 11.08.2013, 21:04
AW: Login registration (spawn when Logged == 0) - by zaider - 11.08.2013, 22:25
Re: AW: Login registration (spawn when Logged == 0) - by San1 - 11.08.2013, 22:28
Re: Login registration (spawn when Logged == 0) - by RedJohn - 11.08.2013, 22:47

Forum Jump:


Users browsing this thread: 1 Guest(s)