08.02.2010, 16:56
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:
This would go under your OnPlayerConnect callback
Cheers,
TJ
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); }
Cheers,
TJ