Wrong Password = Kick?
#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


Messages In This Thread
Wrong Password = Kick? - by Blackazur - 16.07.2013, 23:22
Re: Wrong Password = Kick? - by feartonyb - 16.07.2013, 23:27
Re: Wrong Password = Kick? - by RajatPawar - 17.07.2013, 06:12

Forum Jump:


Users browsing this thread: 3 Guest(s)