• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Server] INI_Int..?
#1
Music 
Hi, I translated one timeban from DOF2 to y_ini just for the sake of pride, a few lines won't complicate the mod.

Code: 
PHP Code:
new Qip INI_Int(way,"IP");
new 
dovod INI_Int(way,"Dovod");
new 
QQQQ INI_Int(way,"Admin");
new 
edy INI_Int(way,"Kedy");
new 
oKedy INI_Int(way,"Dokedy"); 



Full Timeban
I use it at Login when the player logs in whether he has a ban or not.

PHP Code:
if(fexist(way))
{
                new Qip INI_Int(way,"IP");
                new dovod INI_Int(way,"Dovod");
                new QQQQ INI_Int(way,"Admin");
                new edy INI_Int(way,"Kedy");
                new oKedy INI_Int(way,"Dokedy");

                if(gettime() > DoKedy)
                {
                      SendClientMessage(playerid,0x0000FFFF,"[ Server ] {FF0000}Ban ti vypršal, dúfam že si sa poučil");
                      fremove(way);
                }
                else
               {
                      new bigstring[500];
                      format(bigstring,500,"Tvoj ešte stále nevypršal !\nNick:\t\t\t%s\nIP:\t\t\t%s\nDôvod:\t\t\t%s\nAdmin:\t\t\t%s\nKedy:\t\t\t%s\nPlatnosť:\t\t%s",PlayerName(playerid),Qip,dovod,QQQQ,date(edy),date(oKedy));
                      ShowPlayerDialog(playerid,Dialog_NoEffect,DIALOG_STYLE_MSGBOX,"{0000FF}TimeBan",bigstring,"Ok","");
                      SetTimerEx("KickPublic"15000"d"playerid);
               }



How do I fix it?
  Reply


Messages In This Thread
INI_Int..? - by Mivco - 2023-12-25, 03:45 PM
RE: INI_Int..? - by Radical - 2023-12-25, 08:51 PM
RE: INI_Int..? - by Mivco - 2023-12-26, 01:42 PM

Forum Jump: