Wrong Password = Kick?
#1

Hello, how can i make that when you type an wrong password you get kicked?
Reply
#2

On password check dialog on the else put Kick(playerid);
Reply
#3

pawn Код:
public OnDialogReponse(...)
{
   if( dialogid == DIALOG_PASSWORD )
   {
        if( !response )
        {
               SendClientMessage(.. "Sorry." );
               Kick(playerid);
        }
        YOUR CODE
    }
This is the way to kick on clicking the 2nd button on the dialog. Similarly, where you actually login the player - something like this should work.
pawn Код:
if( strcmp(inputtext, players_actual_password) == 0) // it is correct
{
      LOG HIM IN
}
else return Kick(playerid);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)