#5

Quote:
Originally Posted by Alex_Obando
Посмотреть сообщение
Dude, I need this:

1st check name, name = Alex_Obando
IP = 212.233.233.179 - If the IP is not "212.233.233.179" then Send the message.
PHP код:
    new plrIP[16];
    new 
name[24],reason[256];
    
GetPlayerIp(playeridplrIPsizeof(plrIP));
    
GetPlayerName(playerid,name,sizeof name);
    if(!
strcmp(name#Alex_Obando, false))
    
{
        if(
strcmp(plrIP"212.233.233.179")) //Fake IP.
            
SendClientMessageToAll(-1"\"Alex_Obando\" has joined the server ! ( FAKE )");
        else
        {
            
format(reason,sizeof(reason),"%s [ID:%i] [IP:%s] has joined the server (Real Administrator).",name,playerid);
            
CallRemoteFunction("SendClientMessageToAdmins","isi",LIGHT_BLUE,reason,1);
        }
    } 
Reply


Messages In This Thread
IP - by Alex_Obando - 22.07.2011, 20:42
Re: IP - by MoroDan - 22.07.2011, 20:50
Respuesta: IP - by Alex_Obando - 22.07.2011, 20:53
Re: IP - by Jefff - 22.07.2011, 21:10
Re: Respuesta: IP - by MoroDan - 22.07.2011, 21:12
Re: IP - by Amit_B - 23.07.2011, 00:48

Forum Jump:


Users browsing this thread: 2 Guest(s)