DIALOG BUG - Help
#5

Код:
public OnRconLoginAttempt(ip[], password[], success) 
{ 
    if(!success) 
    { 
      for(new i = 0; i < MAX_PLAYERS; i++) 
      { 
       if(strcmp(ip, PlayerIp(i), true) == 0) 
       { 
           SendClientMessage(i,COLOR_DEAD,"You Have Been Kicked Due To Attempting Wrong Rcon Password."); 
        KickEx(i); 
        return 0; // instead of break;
       } 
      } 
    } 
    else 
    { 
      for(new i = 0; i < MAX_PLAYERS; i++) 
      { 
       if(strcmp(ip, PlayerIp(i), true) == 0) 
       { 
       SendClientMessage(i, COLOR_ADMIN, "Please Enter Second Rcon Password."); 
       new str1[120]; 
       format(str1,sizeof(str1),"%s(%d) Has Been Logged In As First Rcon Admin.", PlayerInfo[i][pName], i); 
       ShowPlayerDialog(i ,SECOND_RCON_DIALOG ,DIALOG_STYLE_PASSWORD,"{FFFFFF}Second Rcon Password","Admin MAXIMUM Security.\nPlease Enter Second Rcon Password To Become Complete Rcon Admin\nOtherwise Get Kicked","login","kick"); 
       break; 
       } 
      } 
    } 
    return 1; 
}
Not sure if this works though.
Reply


Messages In This Thread
DIALOG BUG - Help - by danish007 - 26.12.2014, 20:08
Re: DIALOG BUG - Help - by danish007 - 27.12.2014, 09:14
Re: DIALOG BUG - Help - by Luicy. - 27.12.2014, 09:51
Re: DIALOG BUG - Help - by danish007 - 27.12.2014, 11:25
Re: DIALOG BUG - Help - by JaydenJason - 27.12.2014, 12:29
Re: DIALOG BUG - Help - by danish007 - 27.12.2014, 21:10
Re: DIALOG BUG - Help - by Ahmad45123 - 27.12.2014, 22:13
Re: DIALOG BUG - Help - by danish007 - 30.12.2014, 05:56

Forum Jump:


Users browsing this thread: 1 Guest(s)