20.08.2015, 22:22
pawn Код:
#define ACTIVATION_CODE "1234567891"
if(dialogid == DIALOG_ACTIVATION)
{
if(!response) Kick(playerid);
else
{
if(inputtext[0] && !strcmp(inputtext, ACTIVATION_CODE))
{
PlayerInfo[playerid][pActivated] = 1;
return 1;
}
ShowPlayerDialog(playerid, DIALOG_ACTIVATION, DIALOG_STYLE_INPUT, "Oops! Something went wrong.", "You have entered an incorrect activation code. Please Try again.", "Activate", "Quit");
}
return 1;
}