Quote:
Originally Posted by gtakillerIV
Use:
PHP код:
public OnRconCommand(cmd[])
{
if(!strcmp(cmd, "gmx", true))
{
for (new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new INI:File = INI_Open(UserPath(i));
INI_SetTag(File,"data");
INI_WriteInt(File,"Cash",GetPlayerMoney(i));
INI_WriteInt(File,"Admin",PlayerInfo[i][pAdmin]);
INI_WriteInt(File,"Vip",PlayerInfo[i][pVip]);
INI_WriteInt(File,"Kills",PlayerInfo[i][pKills]);
INI_WriteInt(File,"Score", PlayerInfo[i][pScore]);
INI_WriteInt(File, "Ip", PlayerInfo[i][pIp]);
INI_WriteInt(File,"Deaths",PlayerInfo[i][pDeaths]);
INI_Close(File);
}
}
}
return 1;
}
Change the saving part to suite your GM.
|
Where in the gamemode need i put this ?