24.05.2016, 19:54
Код:
new gAttempts[MAX_PLAYERS]; // A global array to store how many attempts the player has had // When the player enters his password // CHECK IF IT WAS INCORRECT { gAttempts[playerid]++; // Adds 1 to the attempts count If (gAttempts[playerid] == 3) return Kick(playerid); // If the attempts equal 3, it kicks ShowPlayerDialog(Your incorrect dialog here) }