Raised This Month: $ Target: $400
 0% 

[SOLVED] How Read arguments from connect command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
James
Senior Member
Join Date: Dec 2004
Old 12-20-2006 , 18:03   [SOLVED] How Read arguments from connect command
Reply With Quote #1

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

Last edited by James; 12-20-2006 at 20:03.
James is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 12-20-2006 , 19:37   Re: How Read arguments from connect command
Reply With Quote #2

That is because they are not in your server yet. You cannot catch the command if it was not executed within your server.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
James
Senior Member
Join Date: Dec 2004
Old 12-20-2006 , 20:03   Re: How Read arguments from connect command
Reply With Quote #3

Thanks for explanation, bad for me
James is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 12-20-2006 , 22:11   Re: [SOLVED] How Read arguments from connect command
Reply With Quote #4

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)
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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