11.08.2013, 22:28
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;
}