AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   BUG?? client_connect_ex + is_user_hltv (https://forums.alliedmods.net/showthread.php?t=309092)

^SmileY 07-13-2018 18:12

BUG?? client_connect_ex + is_user_hltv
 
Code:

/**
 * Called when a client is connecting.
 *
 * @note This forward is called too early to do anything that directly affects
 *      the client.
 *
 * @param id        Client index
 * @param name      Client name
 * @param ip        Client ip address with port
 * @param reason    A reason that will be displayed when player gets rejected (can be overwritten)
 *
 * @return          PLUGIN_CONTINUE to let a client join to the server
 *                  PLUGIN_HANDLED or higher to prevent a client to join
 */
forward client_connectex(id, const name[], const ip[], reason[128]);

Whell is there, the description says is to early to do something with client.

BUT

Code:

public client_connectex(id,const Name[],const IP[],Reason[128])
{
        if(!is_user_hltv(id)) // Too early to check if is user is an hltv?
        {

        }
}

and is_user_hltv change after two/three retry from HLTV


All times are GMT -4. The time now is 19:12.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.