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;
}