Quote:
Originally Posted by Jefff
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; }
|
Now it detects the activation code and lets people spawn, but it fails to change the PlayerInfo[playerid][pActivated] to 1.