#1

Hello, I want create that my name: Deimis_Extar nothing can't connect. I try create with IP checking, but always me kick. I check my IP with command, and me wrote this IP.

Код:
	if(strcmp(ZaidejoVardas(playerid),"Deimis_Extar",true))
	{
		if(strcmp(ZaidejoIP(playerid),"127.0.0.1",true)) return 1;
		if(!strcmp(ZaidejoIP(playerid),"127.0.0.1", true))
		{
			SendClientMessage(playerid,GELTONA,"Nesutampa");
 			SetTimerEx("KickPlayer",500,false,"d",playerid);
  		}
	}
What's wrong?
Reply
#2

Because if you are a dynamic IP it changes every time.
Reply
#3

Sveikas.

PHP код:
if(!strcmp(ZaidejoVardas(playerid),"Deimis_Extar",true))
{
   if(
strcmp(ZaidejoIP(playerid),"127.0.0.1"true))
  {
    
SendClientMessage(playerid,GELTONA,"Nesutampa");
     
SetTimerEx("KickPlayer",500,false,"d",playerid);
  }

Reply
#4

Quote:
Originally Posted by ReVo_
Посмотреть сообщение
Because if you are a dynamic IP it changes every time.
Localhost never changes.
Reply
#5

Quote:
Originally Posted by DreDasLT
Посмотреть сообщение
Localhost never changes.
He never said he uses this script always in a localhost server. (Just why he used 127.0.0.1 in his first post doesn't mean he dont try the code in a hosted server)

If you use this script in a hosted server, this will never work. Maybe in a local test server will work.
Reply
#6

My IP is static.

DreDas - thanks, working.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)