bans imposter?
#2

Hey there sampiscoopl123,

There is a pretty simple way to do this.

Assuming you have already made some sort of regisration system that stores the users IP.

You could try the following:

Код:
new str[256];
new str2[256];
GetPlayerIp(playerid,str,sizeof(str));
format(str2,sizeof(str2),"%s",SOURCE OF STORED IP);
if(!strcmp(str,str2,true) == 0) { SendClientMessage(playerid,COLOUR,"Invalid IP"); Kick(playerid); }
This would go under your OnPlayerConnect callback

Cheers,

TJ
Reply


Messages In This Thread
bans imposter? - by Sampiscool123 - 08.02.2010, 11:29
Re: bans imposter? - by TTJJ - 08.02.2010, 16:56
Re: bans imposter? - by Joe Staff - 08.02.2010, 17:02

Forum Jump:


Users browsing this thread: 3 Guest(s)