if someone types a ip they get kicked?
#3

i found this
Код:
stock CountOccurrence(text[],ch) {
	new count = 0;
	for(new i=0;i<strlen(text);i++) {
		if (text[i] == ch) count++;
	}
	return count;
}

Script_OnPlayerText(playerid, text[]) {
	if(CountOccurrence(text,'.')>2 && CountOccurrence(text,':')>1) {
 		if(!IsPlayerAdmin(playerid)) {
 		  SendClientMessage(playerid,0xFF0000AA,"Error: We do not allow the posting of IP addresses here");
 		  Kick(playerid);
			return 0;
		}
	}
    return 1;
Код:
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAN~1.PWN(1456) : warning 203: symbol is never used: "Script_OnPlayerText"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.

ingore loose ident
Reply


Messages In This Thread
if someone types a ip they get kicked? - by Kar - 22.06.2010, 20:00
Re: if someone types a ip they get kicked? - by Niixie - 22.06.2010, 20:04
Re: if someone types a ip they get kicked? - by Kar - 22.06.2010, 20:43
Re: if someone types a ip they get kicked? - by Finn - 22.06.2010, 20:48
Re: if someone types a ip they get kicked? - by iggy1 - 22.06.2010, 20:49
Re: if someone types a ip they get kicked? - by Kar - 22.06.2010, 21:28
Re: if someone types a ip they get kicked? - by Jefff - 22.06.2010, 21:35
Re: if someone types a ip they get kicked? - by Joe_ - 22.06.2010, 21:35
Re: if someone types a ip they get kicked? - by iggy1 - 22.06.2010, 21:36
Re: if someone types a ip they get kicked? - by Antonio [G-RP] - 22.06.2010, 21:37

Forum Jump:


Users browsing this thread: 1 Guest(s)