Ban Check
#14

Quote:
Originally Posted by nickdodd25
View Post
Well i have had that problem when it hangs on connect while checking the players bantime and it had to do with Kick(playerid); bug. Comment it off once. I aint saying that is the problem but its worth a try.
Just tried that, commented out all of the 'Kicks' and it was still hanging there forever. I'm pretty sure that it has more to do with these lines:
pawn Code:
else if(udb_Exists(PlayerName(playerid)))
    {
        if(dUserINT(PlayerName(playerid)).("Banned") == 1)
        {
            SendClientMessage(playerid, COLOR_YELLOW, "===================================[BANNED]====================================");
            SendClientMessage(playerid, COLOR_YELLOW, "This player name has been banned from [Sarcr]");
            SendClientMessage(playerid, COLOR_YELLOW, "The data regarding this ban is unavailable.");
            SendClientMessage(playerid, COLOR_YELLOW, "If you feel that this is a mistake, please write an appeal at www.sa-rcr.com");
            SendClientMessage(playerid, COLOR_YELLOW, "===============================================================================");
            Kick(playerid);
        }
        ShowLoginScreen(playerid);
        return 1;
    }
    else if(!udb_Exists(PlayerName(playerid)))
    {
        ShowRegisterScreen(playerid);
        return 1;
    }
If I comment out those lines, then I'm able to spawn but any other command aside from SA-MPs native commands, don't work.
Reply


Messages In This Thread
[HELP] Ban Check - by PCheriyan007 - 06.05.2012, 01:55
Re: Ban Check - by ViniBorn - 06.05.2012, 02:54
Re: Ban Check - by [HiC]TheKiller - 06.05.2012, 02:57
Re: Ban Check - by PCheriyan007 - 06.05.2012, 03:14
Re: Ban Check - by [HiC]TheKiller - 06.05.2012, 03:48
Re: Ban Check - by PCheriyan007 - 06.05.2012, 22:06
Re: Ban Check - by Vince - 06.05.2012, 23:06
Re: Ban Check - by PCheriyan007 - 11.05.2012, 00:07
Re: Ban Check - by PCheriyan007 - 11.05.2012, 22:52
Re: Ban Check - by Oscii - 11.05.2012, 23:18
Re: Ban Check - by PCheriyan007 - 11.05.2012, 23:41
Re: Ban Check - by PCheriyan007 - 26.05.2012, 00:18
Re: Ban Check - by nickdodd25 - 26.05.2012, 03:08
Re: Ban Check - by PCheriyan007 - 26.05.2012, 05:13
Re: Ban Check - by nickdodd25 - 26.05.2012, 17:51
Re: Ban Check - by PCheriyan007 - 03.06.2012, 19:22
Re: Ban Check - by PCheriyan007 - 08.06.2012, 02:02

Forum Jump:


Users browsing this thread: 3 Guest(s)