Help.. Requries Dini scripter(SMART )
#1

pawn Код:
if(strcmp(cmd, "/fstats", true) == 0)
    {
      if(IsPlayerConnected(playerid))
      {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /fstats [Faction ID] [Variable] [Name/ID]");
                return 1;
            }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /fstats [Faction ID] [Variable] [Name/ID]");
                return 1;
            }
            new file[258];
            new name[258];
            new faction = strval(tmp);
            new variable = strval(tmp);
            new ammount = strtok(tmp);
            if (PlayerInfo[playerid][pAdmin] >= 2)
            {
                if(faction == 1)
                {
                  format(file,"f1.ini");
                }
                if(faction == 2)
                {
                  format(file,"f2.ini");
                }
                if(faction == 3)
                {
                  format(file,"f3.ini");
                }
                if(faction == 4)
                {
                  format(file,"f4.ini");
                }
                if(faction == 5)
                {
                  format(file,"f5.ini");
                }
                if(faction == 6)
                {
                  format(file,"f6.ini");
                }
                if(faction == 7)
                {
                  format(file,"f7.ini");
                }
                if(faction == 8)
                {
                  format(file,"f8.ini");
                }
                if(faction == 9)
                {
                  format(file,"f9.ini");
                }
                if(faction == 10)
                {
                  format(file,"f10.ini");
                }
                dini_Set(file,variable,ammount);

            }
        }
        return 1;
    }
I need that to do this
/fstats [Faction ID] [Variable] [Name/ID]
Reply
#2

Please explain this further:

pawn Код:
/fstats [Faction ID] [Variable] [Name/ID]
I can make you a script using DCMD after.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)