AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   First forward where i can get user nickname,userid and kick him (https://forums.alliedmods.net/showthread.php?t=319594)

karaulov 11-10-2019 02:56

First forward where i can get user nickname,userid and kick him
 
Help i need first forward where i can get user nickname,userid and kick him

client_PUTINserver ??

edon1337 11-10-2019 03:57

Re: First forward where i can get user nickname,userid and kick him
 
client_connect

redivcram 11-10-2019 16:29

Re: First forward where i can get user nickname,userid and kick him
 
Check out: https://www.amxmodx.org/api/amxmodx/client_connectex
I believe It's added to the new AMXX 1.9.0

HamletEagle 11-11-2019 08:07

Re: First forward where i can get user nickname,userid and kick him
 
Quote:

Originally Posted by redivcram (Post 2672576)
Check out: https://www.amxmodx.org/api/amxmodx/client_connectex
I believe It's added to the new AMXX 1.9.0

"This forward is called too early to do anything that directly affects the client." :shock:

iceeedr 11-11-2019 13:32

Re: First forward where i can get user nickname,userid and kick him
 
Quote:

Originally Posted by HamletEagle (Post 2672624)
"This forward is called too early to do anything that directly affects the client." :shock:

"Help i need first forward where i can get user nickname,userid and kick him"

Hamlet, it is perfectly possible to use this forward, it is possible to take the name, steamid, userid and kick the player (return PLUGIN_HANDLED to kick and return PLUGIN_CONTINUE "to free the player access.

redivcram 11-13-2019 09:14

Re: First forward where i can get user nickname,userid and kick him
 
Quote:

Originally Posted by HamletEagle (Post 2672624)
"This forward is called too early to do anything that directly affects the client." :shock:

Code:

PLUGIN_CONTINUE to let a client join to the server
PLUGIN_HANDLED or higher to prevent a client to join

He could check whether the user's data match then use the corresponding return values.

Edit: iceeedr already beat my blind ass to it :I


All times are GMT -4. The time now is 02:46.

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