AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [SOLVED] How Read arguments from connect command (https://forums.alliedmods.net/showthread.php?t=48802)

James 12-20-2006 18:03

[SOLVED] How Read arguments from connect command
 
Hello,
I would like read arguments from connect command... like
connect IP:port string

I need "string" parameter.. I try call read_argv(1,command,30) in client_connect/client_authorized but this doesnt work :(

SweatyBanana 12-20-2006 19:37

Re: How Read arguments from connect command
 
That is because they are not in your server yet. You cannot catch the command if it was not executed within your server.

James 12-20-2006 20:03

Re: How Read arguments from connect command
 
Thanks for explanation, bad for me :(

Emp` 12-20-2006 22:11

Re: [SOLVED] How Read arguments from connect command
 
also, the arguments are not sent to client_connect(). you have to register the command and then you can get the arguments. (so yes it can work, but only if they are leaving your server and not joining it for the first time)


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

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