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

Buy$Message


Post New Thread Reply   
 
Thread Tools Display Modes
killerelite32
Junior Member
Join Date: Aug 2004
Old 08-05-2004 , 21:27  
Reply With Quote #11

do what john said above:
register_clcmd("say /buymsg", "hud_print_pre")

and take out the equili
__________________
I have been banned because I spammed on the forums and registered multiple accounts.
killerelite32 is offline
liOVERLOADil
Junior Member
Join Date: Jul 2004
Old 08-06-2004 , 00:59  
Reply With Quote #12

If I do what you just said, the program will not work!

And here is why...

register_clcmd("say /buymsg", "hud_print_pre")
The above will look for "say /buymsg" ONLY.
If something is written after "say /buymsg", it will not initiate the clcmd.

However, if I use the code that I have and make the program look for
"/buymsg" after every "say" command, I can then capture the message,
cull the "/buymsg", and keep only the message which the client wanted
to send.

Trust me, it really is a bug in AMXx. If you don't believe me, try using
strbreak in a plugin, or try using parse with spaces in the messages.

BAILOPAN - "parse() is a pretty bad function, I'd recommend not using it for anything personally..." Reference
__________________
liOVERLOADil is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-10-2005 , 04:27  
Reply With Quote #13

Quote:
BE ADVISED: Due to a bug in AMXx, "/buymsg" will still be displayed in the
messages. More info about the bug is contained within this thread
Code:
replace(chat_message_final,191,"/buymsg","")
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
lucky109
Senior Member
Join Date: Jan 2005
Old 04-17-2005 , 05:24  
Reply With Quote #14

Quote:
Originally Posted by v3x
Quote:
BE ADVISED: Due to a bug in AMXx, "/buymsg" will still be displayed in the
messages. More info about the bug is contained within this thread
Code:
replace(chat_message_final,191,"/buymsg","")
compile error
lucky109 is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-17-2005 , 07:25  
Reply With Quote #15

No compile errors.

Here, try this.
Attached Files
File Type: sma Get Plugin or Get Source (buy_message.sma - 813 views - 5.6 KB)
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
lucky109
Senior Member
Join Date: Jan 2005
Old 04-18-2005 , 04:21  
Reply With Quote #16

ok....work fine good job
lucky109 is offline
w00t_
Junior Member
Join Date: Apr 2008
Location: Latvia, Rezekne
Old 04-26-2008 , 06:44   Re: Buy$Message
Reply With Quote #17

Hi, can you make like when I type /buymsg it won't appere in chat?
w00t_ is offline
Send a message via MSN to w00t_ Send a message via Skype™ to w00t_
AdaskoMX
Member
Join Date: Apr 2008
Location: Z-cie
Old 04-26-2008 , 07:56   Re: Buy$Message
Reply With Quote #18

Why not to allow normall syntax like @r msg ?
AdaskoMX 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 18:29.


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