#1

I have this script:

pawn Код:
new plrIP[16];
    new name[24],reason[256];
    GetPlayerIp(playerid, plrIP, sizeof(plrIP));
    GetPlayerName(playerid,name,sizeof name);

    if(!strcmp(plrIP, "212.233.233.179"))
    format(reason,sizeof(reason),"%s [ID:%i] [IP:%s] has joined the server (Real Administrator).",name,playerid);
    CallRemoteFunction("SendClientMessageToAdmins","isi",LIGHT_BLUE,reason,1);
//Fake IP.
So I want that if the system detects the player name "Alex_Obando" then send a message to all "Alex_Obando has joined the server (FAKE)
And the system will know that im fake cause it will be a different IP.
Reply
#2

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

pawn Код:
new plrIP[16];
    new name[24],reason[256];
    GetPlayerIp(playerid, plrIP, sizeof(plrIP));
    GetPlayerName(playerid,name,sizeof name);

    if(!strcmp(plrIP, "212.233.233.179"))
    format(reason,sizeof(reason),"%s [ID:%i] [IP:%s] has joined the server (Real Administrator).",name,playerid);
    CallRemoteFunction("SendClientMessageToAdmins","isi",LIGHT_BLUE,reason,1);
//Fake IP.
So I want that if the system detects the player name "Alex_Obando" then send a message to all "Alex_Obando has joined the server (FAKE)
And the system will know that im fake cause it will be a different IP.
PHP код:
    new plrIP[16];
    new 
name[24],reason[256];
    
GetPlayerIp(playeridplrIPsizeof(plrIP));
    
GetPlayerName(playerid,name,sizeof name);
    if(!
strcmp(plrIP"212.233.233.179"))
    {
        
format(reason,sizeof(reason),"%s [ID:%i] [IP:%s] has joined the server (Real Administrator).",name,playerid);
        
CallRemoteFunction("SendClientMessageToAdmins","isi",LIGHT_BLUE,reason,1);
    }
    if(!
strcmp(name#Alex_Obando, false))
    
{
        
SendClientMessageToAll(-1"\"Alex_Obando\" has joined the server ! ( FAKE )");
    }
//Fake IP. 
Reply
#3

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.
Reply
#4

pawn Код:
if(!strcmp(plrIP, "212.233.233.179"))
{
// real
}else{
// fake
}
Reply
#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
#6

Did anyone has noticed the missing variable?
pawn Код:
format(reason,sizeof(reason),"%s [ID:%i] [IP:%s] has joined the server (Real Administrator).",name,playerid,plrIP);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)