Ban cmd not banning offline player
#2

This CMD works for banning who is Online I suppose
Also :
PHP код:
else if(!sscanf(params,"s[50]",reason))
        {
            new 
PlayerFile[50];
            if(
AdminLevel[playerid]<3)return 0;
            
format(PlayerFile,sizeof(PlayerFile),"Accounts/%s.ini",reason);
            if(!
fexist(PlayerFile)) return SendClientMessage(playerid,GREY,"No such player found in the database");
            if(
fexist(PlayerFile))
            {
                if(
INI_Int(PlayerFile,"Banned")==1)return SendClientMessage(playerid,GREY,"That player is already banned");
                
INI_IntSet(PlayerFile,"Banned",1);
                
SendClientMessage(playerid,-1,"Account Banned");
                
INI_Set(PlayerFile,"Banner",PlayerName(playerid));
            }
        } 
It doesn't work. Cause you're not banning anyone! you're just giving a reason without banning someone.
Reply


Messages In This Thread
Ban cmd not banning offline player - by Marven - 09.04.2015, 16:51
Re: Ban cmd not banning offline player - by Alpay0098 - 09.04.2015, 17:03
Re: Ban cmd not banning offline player - by Marven - 09.04.2015, 17:06
Re: Ban cmd not banning offline player - by CalvinC - 09.04.2015, 17:44
Re: Ban cmd not banning offline player - by Marven - 09.04.2015, 20:30

Forum Jump:


Users browsing this thread: 1 Guest(s)