Raised This Month: $ Target: $400
 0% 

catching say / say_team


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
gamer99
Senior Member
Join Date: Jul 2011
Old 07-14-2011 , 10:36   catching say / say_team
Reply With Quote #1

Hi All ,

I am catching the command say and say_team

Quote:
if(equal(sArgv,"say")||equal(sArgv,"say_team" ))
.........................................some logic and declaratio..........

new dArgc=read_argc()
server_cmd("say 1 %d",dArgc)

for(new i=1;i<dArgc;i++)
{
read_argv(1,sArgv,63)
format(sArgvAll,127,"%s %s",sArgvAll,sArgv)
server_cmd("say 2 %s",sArgvAll)
}
Now the problem is
Suppose I am saying Hi All
When I am saying it by pressing Y or U i am able to catch it in sArgvAll

But when I am saying it though console
like say Hi All then I am getting Hi Hi in sArgvAll

Please help on how to catch the 2nd one perfectly
gamer99 is offline
 


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 00:46.


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