Raised This Month: $ Target: $400
 0% 

How to intercept say "voteban" and proceed on certain conditions, or deny?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cep}|{
Member
Join Date: Nov 2009
Old 10-05-2013 , 05:54   How to intercept say "voteban" and proceed on certain conditions, or deny?
Reply With Quote #1

With any plugins installed (playervotes, basevotes etc...).
__________________
Cep}|{ is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-05-2013 , 10:06   Re: How to intercept say "voteban" and proceed on certain conditions, or deny?
Reply With Quote #2

OnClientSayCommand_Post

What I tested, from console
say voteban
output:voteban


But when from trough in game chat
voteban
output:"voteban

I get extra quote " in my sArgs
Anyone else got this ? Game cs:s

PHP Code:
public OnClientSayCommand_Post(client, const String:command[], const String:sArgs[])
{
    
PrintToServer("%s"command);
    
PrintToServer("%s"sArgs);

OnClientSayCommand
From console
say voteban
output:voteban


From chat, this however will quote whole string
voteban
output:"voteban"

Last edited by Bacardi; 10-05-2013 at 10:10.
Bacardi is offline
Cep}|{
Member
Join Date: Nov 2009
Old 10-05-2013 , 10:52   Re: How to intercept say "voteban" and proceed on certain conditions, or deny?
Reply With Quote #3

It is necessary to make the command voteban under certain conditions did not reach the plug playersvotes (or other).
__________________
Cep}|{ is offline
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
Old 10-06-2013 , 03:16   Re: How to intercept say "voteban" and proceed on certain conditions, or deny?
Reply With Quote #4

Quote:
Originally Posted by Bacardi View Post
[...]I get extra quote " in my sArgs
Anyone else got this ? Game cs:s[...]
Yes, I have reported this weeks ago in irc, forgot to file a bug, someone said kyles is to blame for that.
__________________
Santa or Satan?

Watch out when you're paying people for private requests! Most stuff already exists and you can hardly assess the quality of what you'll get, and if it's worth the money.

Last edited by Dr. Greg House; 10-06-2013 at 03:16.
Dr. Greg House is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-06-2013 , 04:35   Re: How to intercept say "voteban" and proceed on certain conditions, or deny?
Reply With Quote #5

Quote:
Originally Posted by Dr. Greg House View Post
Yes, I have reported this weeks ago in irc, forgot to file a bug, someone said kyles is to blame for that.
good, I visit bug site to looking this and found it OnClientSayCommand function.
I assume it have looked also in Post mode

And nah, we not sought the culprits here
__________________
Do not Private Message @me
Bacardi is offline
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
Old 10-06-2013 , 09:23   Re: How to intercept say "voteban" and proceed on certain conditions, or deny?
Reply With Quote #6

:p
__________________
Santa or Satan?

Watch out when you're paying people for private requests! Most stuff already exists and you can hardly assess the quality of what you'll get, and if it's worth the money.
Dr. Greg House is offline
Reply



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 20:58.


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