[HELP]Ban System
#4

Quote:
Originally Posted by Lorenc_
Посмотреть сообщение
pawn Код:
if(udb_Exists(banfile))
shouldn't it be:
pawn Код:
if(udb_Exists(userfile))
Located at the bottom of the call back
I've started using Double-O-Files so it's a little different from dudb. I also changed the code a bit and it still doesn't work.
pawn Код:
if(udb_Exists(PlayerName(playerid)))
    {
        if(dUserINT(PlayerName(playerid)).("Banned") == 1)
        {
            SendClientMessage(playerid, COLOR_YELLOW, "This player name has been banned from [Sarcr]");
            SendClientMessage(playerid, COLOR_YELLOW, "Date of Ban: N/A");
            SendClientMessage(playerid, COLOR_YELLOW, "Time of Ban: N/A");
            SendClientMessage(playerid, COLOR_YELLOW, "Banned By: N/A");
            SendClientMessage(playerid, COLOR_YELLOW, "Banned For: N/A");
            SendClientMessage(playerid, COLOR_YELLOW, "If you feel that this is a mistake, please write an appeal at www.sa-rcr.com");
            Kick(playerid);
        }          
        SendClientMessage(playerid,COLOR_ERROR,"This player name has already been registered. Please login before you spawn.");
        ShowLoginScreen(playerid);
    }
    else if(!udb_Exists(PlayerName(playerid)))
    {
        SendClientMessage(playerid,COLOR_ERROR,"This player name has not been registered. You must register before playing on [Sarcr].");
        ShowRegisterScreen(playerid);
    }
Reply


Messages In This Thread
[HELP]Ban System - by PCheriyan007 - 14.07.2011, 17:32
Re: [HELP]Ban System - by PCheriyan007 - 17.07.2011, 02:36
Re: [HELP]Ban System - by Lorenc_ - 17.07.2011, 02:41
Re: [HELP]Ban System - by PCheriyan007 - 17.07.2011, 03:22

Forum Jump:


Users browsing this thread: 3 Guest(s)