how check is accounts in game
#8

PHP код:
public OnPlayerConnect(playerid)
{    
    new 
pIP[16], 
        
tIP[16]; // Create strings so we can store the IPs in them
    
GetPlayerIp(playeridpIPsizeof(pIP)); // Get the player's IP
    
foreach(new Player// Loop through all players
    
{
        if(
playerid != i)
        {
            
GetPlayerIp(itIP16); // Get another player's IP
            
if(!strcmp(tIPpIPtrue)) // Check if the IPs are the same
            
{
                
format(stringsizeof(string), "[WARNING] %s (ID %d) has connected with the same IP as %s (ID %d) (%s)"GetName(playerid), playeridGetName(i), ipIP);
                
SendAdminMessage(COLORDARKREDstring1); // Use your function to send the message to admins, I just used my one here.
            
}
        }
    }
    return 
1;

Reply


Messages In This Thread
how check is accounts in game - by NightMrOver - 21.07.2018, 14:31
Re: how check is accounts in game - by CodeStyle175 - 21.07.2018, 14:36
Re: how check is accounts in game - by NightMrOver - 21.07.2018, 14:38
Re: how check is accounts in game - by Akeem - 21.07.2018, 15:44
Re: how check is accounts in game - by NightMrOver - 21.07.2018, 19:47
Re: how check is accounts in game - by coool - 22.07.2018, 06:24
Re: how check is accounts in game - by NightMrOver - 22.07.2018, 10:39
Re: how check is accounts in game - by iamjems - 22.07.2018, 17:13
Re: how check is accounts in game - by NightMrOver - 22.07.2018, 19:31
Re: how check is accounts in game - by iLearner - 22.07.2018, 19:42

Forum Jump:


Users browsing this thread: 1 Guest(s)