16.07.2013, 23:22
Hello, how can i make that when you type an wrong password you get kicked?
public OnDialogReponse(...)
{
if( dialogid == DIALOG_PASSWORD )
{
if( !response )
{
SendClientMessage(.. "Sorry." );
Kick(playerid);
}
YOUR CODE
}
if( strcmp(inputtext, players_actual_password) == 0) // it is correct
{
LOG HIM IN
}
else return Kick(playerid);