IP [+REP]
#8

PHP код:
CMD:searchip(playeridparams[])
{
    if(
pInfo[playerid][pLogged] == 1)
    {
            new 
Query[256];
            if (!
strlen(params)) return SendClientMessage(playerid,-1,""chat" /searchip [IP]");
            
format(Querysizeof(Query), "SELECT * FROM `users` WHERE pIP = '%s'"escstring(params));
            
mysql_query(Query);
            
mysql_store_result();
            if(!
mysql_num_rows())
            {
                new 
string[200];
                
format(stringsizeof(string), ""chat" Nobody account founded with %s IP!"params);
                
mysql_free_result();
                return 
SendClientMessage(playerid,-1,string);
            }
            else if(
mysql_num_rows() != 0)
            {
                
format(Querysizeof(Query), "UPDATE `banlog` SET `pAccountLock` = 0 WHERE Name = '%s'"escstring(params));
                
mysql_query(Query);
                
mysql_store_result();
                new 
string[200];
                
format(stringsizeof(string), ""chat" %s Is founded"params);
                
SendClientMessage(playerid0x66FF33string);
            }
    }
    return 
1;

I created this
It work when the ip dont exist
But i want to show accounts with dhat ip
Reply


Messages In This Thread
IP [+REP] - by arlindi - 27.02.2015, 16:58
Re: IP [+REP] - by HazardouS - 27.02.2015, 18:04
Re: IP [+REP] - by arlindi - 27.02.2015, 18:51
Re: IP [+REP] - by arlindi - 27.02.2015, 21:26
Re: IP [+REP] - by DanishHaq - 27.02.2015, 21:32
Re: IP [+REP] - by arlindi - 27.02.2015, 21:35
Re: IP [+REP] - by HazardouS - 27.02.2015, 22:24
Re: IP [+REP] - by arlindi - 27.02.2015, 22:27
Re: IP [+REP] - by DanishHaq - 27.02.2015, 23:06

Forum Jump:


Users browsing this thread: 2 Guest(s)