View Single Post
Dr.Mohammad
Senior Member
Join Date: Jan 2016
Location: CSGO Servers
Old 02-24-2018 , 21:17   Re: [CS:GO] add checker ServerID
Reply With Quote #6

Quote:
Originally Posted by 1337norway View Post
OR just add:
PHP Code:
while(SQL_FetchRow(hndl))
{
    new 
sid SQL_FetchInt(hndl1);
    if(
serverID != sid)
    {
        
PlayerStatus[client] = true;
        return;
    }

inside the function
PHP Code:
public VerifyBan(Handle:ownerHandle:hndl, const String:error[], any:userid
between functions:
PHP Code:
SQL_TQuery(DBErrorCheckCallbackQueryclientDBPrio_High); 
and:
PHP Code:
FormatEx(buffersizeof(buffer), "banid 5 %s"clientAuth); 
Then in function:
PHP Code:
public OnClientAuthorized(client, const String:auth[]) 
modify the FormatEx string from:
PHP Code:
"SELECT bid FROM %s_bans WHERE ((type = 0 AND authid REGEXP '^STEAM_[0-9]:%s$') OR (type = 1 AND ip = '%s')) AND (length = '0' OR ends > UNIX_TIMESTAMP()) AND RemoveType IS NULL" 
to:
PHP Code:
"SELECT bid, sid FROM %s_bans WHERE ((type = 0 AND authid REGEXP '^STEAM_[0-9]:%s$') OR (type = 1 AND ip = '%s')) AND (length = '0' OR ends > UNIX_TIMESTAMP()) AND RemoveType IS NULL" 


Nice Work

Thank You For Help


Last edited by Dr.Mohammad; 02-24-2018 at 21:18.
Dr.Mohammad is offline