Save problem
#3

Quote:
Originally Posted by gtakillerIV
Посмотреть сообщение
Use:

PHP код:
public OnRconCommand(cmd[])
{
    if(!
strcmp(cmd"gmx"true))
    {
         for (new 
i=0i<MAX_PLAYERSi++)
           {
             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 ?
Reply


Messages In This Thread
Save problem - by raamiix - 24.10.2012, 15:43
Re: Save problem - by gtakillerIV - 24.10.2012, 15:51
Re: Save problem - by raamiix - 26.10.2012, 13:14
Re: Save problem - by CoaPsyFactor - 26.10.2012, 13:16
Re: Save problem - by raamiix - 26.10.2012, 13:33
Re: Save problem - by Faisal_khan - 26.10.2012, 13:42
Re: Save problem - by raamiix - 26.10.2012, 13:51
Re: Save problem - by gtakillerIV - 26.10.2012, 13:54
Re: Save problem - by raamiix - 26.10.2012, 13:55
Re: Save problem - by Faisal_khan - 26.10.2012, 13:59

Forum Jump:


Users browsing this thread: 2 Guest(s)