-
-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add rg_client_full_connect #327
Comments
Set a task to a new function and
|
Tasks are unnecessary |
Not sure if it's useful but SourceMod had a similar issue which fix it by adding OnClientPostAdminCheck(). This could be use as a reference.
|
Try like this... |
Hello,
At the moment we have 3 events:
a) client_connect
b) client_authorized
c) client_putinserver
and the problem is reading the values from nvault, when after changing the client_authorized map it is not always able to immediately verify whether, for example, it has flags added by the shop ( not users.ini ). Example:
In order to read the values correctly you need to duplicate the code in the client_putinserver, so my suggestion is to add a new event rg_client_full_connect( index ) so that it executes after authorization ( reading the STEAMID ) and connecting the player to the server ( during team selection ).
It is still possible to add a set_task( 1.0, "nvault", id ) in client_authorised, but the player may leave the server. Also, the client_putinserver MAY sometimes execute BEFORE client_authorized ( from my observations and logs, 95% execute AFTER client_authorized, so a forward after the player is fully connected would be useful ).
Would it be possible to add something like this?
The text was updated successfully, but these errors were encountered: