kick after 3 attempts
#3

This should work:

PHP код:
#define COLOR_RED 0xAA3333AA // At the top of your gamemode.
new PassAttempt[MAX_PLAYERS];
Pass Attempt[playerid] ++;
if(
PassAttempt[playerid] == 3)
{
SendClientMessage(playeridCOLOR_RED,"Warning: You were kicked from the server due to multiple password input failure.");
Kick(playerid);
return 
1;

Reply


Messages In This Thread
kick after 3 attempts - by 59GVR6 - 10.07.2015, 13:19
Re: kick after 3 attempts - by CodeStyle175 - 10.07.2015, 13:21
Re: kick after 3 attempts - by Michael B - 10.07.2015, 13:24
Re: kick after 3 attempts - by CodeStyle175 - 10.07.2015, 13:29
Re : kick after 3 attempts - by 59GVR6 - 10.07.2015, 13:46
Re: kick after 3 attempts - by Vince - 10.07.2015, 13:49
Re : kick after 3 attempts - by 59GVR6 - 10.07.2015, 13:53
Re: kick after 3 attempts - by $$inSane - 10.07.2015, 13:54
Re: kick after 3 attempts - by Vince - 10.07.2015, 14:12
Re : kick after 3 attempts - by 59GVR6 - 10.07.2015, 14:43

Forum Jump:


Users browsing this thread: 1 Guest(s)