SA-MP Forums Archive
Im not sure if there is a problem here. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Im not sure if there is a problem here. (/showthread.php?tid=349906)



Im not sure if there is a problem here. - Oscii - 10.06.2012

pawn Код:
SendClientMessage(playerid, COLOR_NICERED,"=======================================YOU ARE BANNED==========================");
            SendClientMessage(playerid, COLOR_LIGHTRED,"This IP is banned from this Server");
            SendClientMessage(playerid, COLOR_LIGHTRED,"If you wish to be unbanned please visit our website at www.uk-rp.tk");
            SendClientMessage(playerid, COLOR_NICERED,"=======================================BAN INFORMATION=========================");
            format(msg2,sizeof(msg2),"Name of the account Banned on the ip %s: %s",playersip, dini_Get(bancheck,"BanName"));
            SendClientMessage(playerid, COLOR_WHITE,msg2);
            format(msg2,sizeof(msg2),"Ban issued by administrator: %s",dini_Get(bancheck,"BannedBy"));
            SendClientMessage(playerid, COLOR_WHITE,msg2);
            format(msg2,sizeof(msg2),"Ban issued on date: %s",dini_Get(bancheck,"BanDate"));
            SendClientMessage(playerid, COLOR_WHITE,msg2);
            format(msg2,sizeof(msg2),"Ban Reason: %s",dini_Get(bancheck,"BanReason"));
            SendClientMessage(playerid, COLOR_WHITE,msg2);
            SendClientMessage(playerid, COLOR_NICERED,"===============================================================================");

            format(msg2,sizeof(msg2),"[ADMIN]: %s (%d), Has been kicked for Possible Ban Evading",plname,playerid);
            SendAdminMessage(COLOR_LIGHTRED,msg2);

            format(msg2,sizeof(msg2),"(%d/%d/%d) [%d:%d:%d] %s Has been kicked by the anticheat for Possible Ban Evading",d,m,y,h,mi,s,plname);
            KickLog(msg2);

            format(msg2,sizeof(msg2),"Users/%s.ini",plname);
            if(dini_Exists(msg2))
            {
                dini_IntSet(msg2,"Banned",1);
            }

            OnPlayerUpdateEx(playerid);
            SetTimerEx("ScriptBan",500,false,"iis",playerid,999,"Ban Evading");
            return 1;
        }
    }
It sometimes bans players when their IP isnt there and sets their Banned to 'Banned : 1'

Is there a problem in this?


Re: Im not sure if there is a problem here. - Oscii - 10.06.2012

i think theres a loose indentication also?


Re: Im not sure if there is a problem here. - mickos - 10.06.2012

Yes maybe u miss brackets or u have lose indentications


Re: Im not sure if there is a problem here. - Oscii - 10.06.2012

Well, could anyone try check that code i put in the main topic bit,

Thanks.