Raised This Month: $51 Target: $400
 12% 

Custom Say Commands


Post New Thread Reply   
 
Thread Tools Display Modes
Casio
Member
Join Date: Jan 2005
Old 10-03-2006 , 14:38   Re: Custom Say Commands
Reply With Quote #51

Quote:
Originally Posted by GHW_Chronic View Post
that post of mine was made in february. Since then I could tell u an even better way of doing it that im sure you wouldn't have seen.

Code:
            new bool:continuea=false             if(equali(read2,"exact") && containi(text,read)==0)             {                 continuea=true             }             if(equali(read2,"contain") && containi(text,read)!=-1)             {                 continuea=true             }             if(continuea)
to
Code:
            if((equali(read2,"exact") && containi(text,read)==0) || (equali(read2,"contain") && containi(text,read)!=-1))
I did think of that but I wasn't sure if AMXX calculates the two sections of code either side of the || sequentially or if the entire IF statement is calculated at once.
Casio is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 10-03-2006 , 18:07   Re: Custom Say Commands
Reply With Quote #52

notice the () thus causing the first part of the if statement before the || to return 1 or 0 and then the second part after the || to return either 1 or 0 and thus if either one (indicated by the ||s) is 1 it will execute.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
hostage_rescue
Junior Member
Join Date: Oct 2006
Old 10-24-2006 , 17:31   Re: Custom Say Commands
Reply With Quote #53

Hm.. I don't understand this mod
__________________
hostage_rescue is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 10-24-2006 , 18:09   Re: Custom Say Commands
Reply With Quote #54

Quote:
Originally Posted by hostage_rescue View Post
Hm.. I don't understand this mod
That is your problem. Get someone to explain it to you.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Cladyu
Member
Join Date: Oct 2006
Location: Romania & I'm proud
Old 12-12-2006 , 11:20   Re: Custom Say Commands
Reply With Quote #55

If I write, for ex, the first 2 lines of the config file
Quote:
#1
]how hero
contain
#2
]/forum
contain
#1 Will it display the motd/website/message if he says: how do I use ..... hero? .But if he says: How do I use heroes?
#2 If he says: /show forum, will te website apear?

Last edited by Cladyu; 12-12-2006 at 12:31.
Cladyu is offline
Send a message via Yahoo to Cladyu
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 12-12-2006 , 18:22   Re: Custom Say Commands
Reply With Quote #56

1. no
2. just put in /forum and /show forum
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
xconrob
Member
Join Date: Mar 2007
Old 03-19-2007 , 21:07   Re: Custom Say Commands
Reply With Quote #57

Hello, cool plugin unfortunately I am a noob. I was thinking just general server info to be displayed to them in an motd but i dont no what how to do it like i want it to have Server side time, steam id, frags all of that but dont no what to do any help much appreciated.
xconrob is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 03-19-2007 , 21:29   Re: Custom Say Commands
Reply With Quote #58

Code:
]/info
exact
show
motd
"Time: %time<BR>Kills: %kills<BR>Frags: %frags"
don't log
Like that.

Download latest version though, I just implemented variabled into MOTDs as u posted.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
xconrob
Member
Join Date: Mar 2007
Old 03-20-2007 , 10:51   Re: Custom Say Commands
Reply With Quote #59

Cool thanks for this
xconrob is offline
Spectral
Member
Join Date: Aug 2005
Old 03-31-2007 , 21:43   Re: Custom Say Commands
Reply With Quote #60

I have this and i have made sure there are NO spaces and what not yet it doesnt popup the motd window. The command is in client_commands

Code:
]/weapons
exact
show
motd
addons/amxmodx/configs/weapons.txt
don't log
Spectral 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 07:02.


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