Raised This Month: $ Target: $400
 0% 

Toggled by someone saying a certain word.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-25-2010 , 23:32   Re: Toggled by someone saying a certain word.
Reply With Quote #1

Quote:
Originally Posted by grimvh2 View Post
I think he wants that if someone types "blank" in a sentence. If so, register the "say" cmd and if you want, also the "say_team" cmd.

Then at ur function read the args, and use contain().
Be aware, false == -1
If you didn't notice, this is for SourceMod (as I stated above). The SourceMod function is StrContains()
__________________
fysiks is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 06-26-2010 , 06:05   Re: Toggled by someone saying a certain word.
Reply With Quote #2

Quote:
Originally Posted by fysiks View Post
If you didn't notice, this is for SourceMod (as I stated above). The SourceMod function is StrContains()
Thats why I did'nt knew what regconsolecmd was xD
Still it would be the same way.
__________________
I am out of order!
grimvh2 is offline
PropKiller
Member
Join Date: Nov 2009
Location: South-East USA
Old 06-26-2010 , 08:36   Re: Toggled by someone saying a certain word.
Reply With Quote #3

Alright. On the API site, It says this for StrContains:

Quote:
Originally Posted by API-Reference
StrContains(const String:str[], const String:substr[], bool:caseSensitive=true);
Could someone post an example for StrContains, in an If event.

And, I would put that If, in the Command_Say, right?
[public Action:Command_Say(client, args)]

Thanks.

Last edited by PropKiller; 06-26-2010 at 08:42.
PropKiller 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 14:43.


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