Quote:
Originally Posted by Wesley221
Im not getting kicked now, but now my register/login dialog wont show neither. Ive already tried to remove the 'return 1;', but still didnt show the dialog.
pawn Код:
public OnPlayerConnect(playerid) { for( new i = 0; i < MAX_FORBIDDEN_NAMES; i ++ ) { if( strfind( ForbiddenNames[i], GetName(playerid), true ) != -1 ) { SendClientMessage(playerid, COLOR_ORANGE, " ** We found a forbidden word in your name! Please remove it and re-connect. "); Kick(playerid); } } if(!fexist(UserPath(playerid))) { Register return 1; } else if (fexist(UserPath(playerid))) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); if( PlayerInfo[playerid][pBanned] == 1 ) return Kick(playerid), SendClientMessage(playerid, COLOR_RED, " ** You are banned and cannot log in! "); printf("|| TotalKills: %i || TotalDeaths: %i || TotalKD: %0.2f || Useown: %i ||", PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], Float:floatdiv(PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths]), WeaponInfo[playerid][pUseOwn]); Login return 1; }
|
A don't see anywhere in your code that show dialog.