[Tutorial] Admin Script (y_ini,sscanf,zcmd)
#6

Quote:
Originally Posted by HDFord
Посмотреть сообщение
pawn Код:
public OnPlayerConnect(playerid)
{//you will need to put the fexist to check if the player have registered before this
    new INI:File = INI_Open(UserPath(playerid));//and put the shit below when the dialog shows instead checking a something that does not exist
    if(PlayerInfo[playerid][pBanned] == 1) return Ban(playerid); //now he's REALLY banned!
    else
    {
        //show your login dialog
    }
    return 1;
}
I noticed now that this part does not really explain so well so i'll add this change if someone did not understand it.
pawn Код:
public OnPlayerConnect(playerid)
{
    new INI:File = INI_Open(UserPath(playerid));
    if(fexist(UserPath(playerid))
    {
        //show login dialog and make a ban if he's banned
        if(PlayerInfo[playerid][pBanned] == 1) return Ban(playerid); //now he's REALLY banned!
        else
        {
            //show your login dialog
        }
    }
    else return //register dialog
   
    return 1;
}
Reply


Messages In This Thread
Admin Script (y_ini,sscanf,zcmd) - by HDFord - 04.06.2012, 13:45
Re: Admin Script (y_ini,sscanf,zcmd) - by Spookie98 - 04.06.2012, 14:47
Re: Admin Script (y_ini,sscanf,zcmd) - by mickos - 04.06.2012, 14:53
Re: Admin Script (y_ini,sscanf,zcmd) - by Firo - 04.06.2012, 15:13
Re: Admin Script (y_ini,sscanf,zcmd) - by InfinityCOD - 04.06.2012, 15:17
Re: Admin Script (y_ini,sscanf,zcmd) - by HDFord - 04.06.2012, 16:15
Re: Admin Script (y_ini,sscanf,zcmd) - by [DX]Aru12345 - 17.03.2013, 06:15
Re: Admin Script (y_ini,sscanf,zcmd) - by Ryan_Bowe - 17.03.2013, 14:58
Re: Admin Script (y_ini,sscanf,zcmd) - by lean1337 - 18.03.2013, 15:52
Re: Admin Script (y_ini,sscanf,zcmd) - by Scrillex - 18.03.2013, 16:16
Re: Admin Script (y_ini,sscanf,zcmd) - by Strummer - 16.07.2014, 22:47
Re: Admin Script (y_ini,sscanf,zcmd) - by Jack_Leslie - 16.07.2014, 23:58
Re: Admin Script (y_ini,sscanf,zcmd) - by Strummer - 17.07.2014, 00:01
Re: Admin Script (y_ini,sscanf,zcmd) - by Jack_Leslie - 17.07.2014, 00:11
Re: Admin Script (y_ini,sscanf,zcmd) - by Strummer - 17.07.2014, 00:15
Re: Admin Script (y_ini,sscanf,zcmd) - by canadianclass - 23.09.2014, 16:29
Re: Admin Script (y_ini,sscanf,zcmd) - by Sibuscus - 13.03.2017, 20:50

Forum Jump:


Users browsing this thread: 3 Guest(s)