18.01.2012, 21:43
Okay, it worked. But now it won't kick a player if he types in a wrong password :/
pawn Код:
if(dialogid == ADMINPIN_INPUT){
if(!response) return Kick(playerid);
if(!strlen(inputtext)) return ShowPlayerDialog(playerid,ADMINPIN_DIALOG,DIALOG_STYLE_INPUT,"Enter administrator PIN","Please enter your administration PIN number:","Confirm","");
if(strlen(inputtext) > 32) return ShowPlayerDialog(playerid,ADMINPIN_DIALOG,DIALOG_STYLE_INPUT,"Enter administrator PIN","Please enter your administration PIN number:","Confirm","");
if(strcmp(inputtext, pInfo[playerid][pAdminPIN], false)) return Kick(playerid);
return 1;
}