I Was Wondering..

WsMakaveli818
A semi-regular
A semi-regular
Posts: 19
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Wed Jan 04, 2006 4:09 pm

I Was Wondering..

Post by WsMakaveli818 »

you know how you can say things with tsay. well on cs_deagle5 we set a rule up that u can only knife on bridge. is there a way where i dont have to always tsay it. i have it binded but its still annoying. is there some way where i can program the server to say it for me on that certain map? thanks
CounterStrike: -]bRo[- Public Server
64.94.101.55:27015
User avatar
bOoya
Former staff
Former staff
Posts: 886
Joined: Thu Jan 15, 2004 3:46 pm
Location: Corona, CA
Contact:

Post by bOoya »

You can probably use map configs and set up an amx_imessage. :)
WsMakaveli818
A semi-regular
A semi-regular
Posts: 19
Joined: Wed Jan 04, 2006 4:09 pm

Post by WsMakaveli818 »

can you show me how to? :cry:
CounterStrike: -]bRo[- Public Server
64.94.101.55:27015
User avatar
bOoya
Former staff
Former staff
Posts: 886
Joined: Thu Jan 15, 2004 3:46 pm
Location: Corona, CA
Contact:

Post by bOoya »

Well here's how you would set up the configs:
http://www.amxmodx.org/forums/viewtopic.php?t=7002

inside of cs_deagle5.cfg you would put

Code: Select all

amx_imessage "ONLY KNIFING ON THE BRIDGE ROROROROR" "000100255"
where "000100255" is the RGB code of the color you want the text to be.
You might also want to do

Code: Select all

amx_freq_imessage "30"
so that it would say the imessage every 30 seconds, or you could make it a smaller interval, of course.
WsMakaveli818
A semi-regular
A semi-regular
Posts: 19
Joined: Wed Jan 04, 2006 4:09 pm

Post by WsMakaveli818 »

Thanks. Im going to try it right now
CounterStrike: -]bRo[- Public Server
64.94.101.55:27015
WsMakaveli818
A semi-regular
A semi-regular
Posts: 19
Joined: Wed Jan 04, 2006 4:09 pm

Post by WsMakaveli818 »

hmm it didnt seem to work :( maybe i did something wrong?
CounterStrike: -]bRo[- Public Server
64.94.101.55:27015
User avatar
bOoya
Former staff
Former staff
Posts: 886
Joined: Thu Jan 15, 2004 3:46 pm
Location: Corona, CA
Contact:

Post by bOoya »

Hmm, I'm not sure why it wouldn't be working. The only thing I can think of is that the amx_imessage and amx_freq_imessage in amxx.cfg are being executed after and therefore overwriting the ones in cs_deagle5.cfg.
You use an outdated version of amxmodx, have you considered updating to 1.6?

edit: I was just in your server and I saw the message come up, but I think the amx_freq_imessage is being set like I thought, by the amxx.cfg.
WsMakaveli818
A semi-regular
A semi-regular
Posts: 19
Joined: Wed Jan 04, 2006 4:09 pm

Post by WsMakaveli818 »

so how do i fix this?
CounterStrike: -]bRo[- Public Server
64.94.101.55:27015
User avatar
bOoya
Former staff
Former staff
Posts: 886
Joined: Thu Jan 15, 2004 3:46 pm
Location: Corona, CA
Contact:

Post by bOoya »

I'm really not sure how you could avoid that in this case.
You could set the amx_freq_imessage in amxx.cfg to a lower value, but that causes another problem with your other imessage being spammed as well.

You could also try doing a scroll message, it won't be right in the center of the screen like the imessage is, but you can give it its own frequency and it will scroll along the bottom of the screen.

Code: Select all

amx_scrollmsg "ONLY KNIFING ON THE BRIDGE" 30
where the number at the end is the delay between messages.
WsMakaveli818
A semi-regular
A semi-regular
Posts: 19
Joined: Wed Jan 04, 2006 4:09 pm

Post by WsMakaveli818 »

is there a way to increase the speed that it scrolls?
CounterStrike: -]bRo[- Public Server
64.94.101.55:27015
User avatar
bOoya
Former staff
Former staff
Posts: 886
Joined: Thu Jan 15, 2004 3:46 pm
Location: Corona, CA
Contact:

Post by bOoya »

Actually, in the source code for scrollmsg.amxx, the speed is defined and easily changeable.
current speed is "0.3"
I could change that, compile the plugin and apply it to your server, but you still have that outdated version of amxmodx on there.
Visit us in the 'Live chat' (last tab in your control panel) and we will help you update that to version 1.6. Then I can change it.
WsMakaveli818
A semi-regular
A semi-regular
Posts: 19
Joined: Wed Jan 04, 2006 4:09 pm

Post by WsMakaveli818 »

nick updated my server to 1.6 but it still doesnt work :cry: and i tried to do that thing with the scrollmsg.amxx to change the speed but its all in a different language :(
CounterStrike: -]bRo[- Public Server
64.94.101.55:27015
WsMakaveli818
A semi-regular
A semi-regular
Posts: 19
Joined: Wed Jan 04, 2006 4:09 pm

Post by WsMakaveli818 »

it sort of works. i have to wait a long time it starts to come up like it should but once i change the map and change it back i have to wait for it to start working again. is that normal?
CounterStrike: -]bRo[- Public Server
64.94.101.55:27015
User avatar
bOoya
Former staff
Former staff
Posts: 886
Joined: Thu Jan 15, 2004 3:46 pm
Location: Corona, CA
Contact:

Post by bOoya »

I increased the speed so that it will move 3 times faster than it did before.
I don't see anywhere in the code that would make it take a while for it to start scrolling.
User avatar
Oso
Compulsive poster
Compulsive poster
Posts: 67
Joined: Thu Nov 03, 2005 8:37 am

Post by Oso »

Hi, so you want to put this message in cs_deagle5? Correct?

Well theres a AMXx plugin for it.

Code: Select all

Description: 
This plugin is for use with the map cs_deagle5. What it does is makes it knife only for anyone who is on the bridge. If you're on the bridge, you can't be shot and you can't shoot anyone else. cs_deagle5 isn't my favorite map, but it comes on in our server from time to time and people always want "knife only on the bridge" but nobody obeys. So I thought I would go ahead and make a plugin to force it. 

Commands: 
amx_deagle5_knife <0|1> - Use 0 to disable it, 1 to enable it. 

Cvars: 
amx_deagle5knife <0|1> - Use the Command above. It changes the cvar for you. I only added the cvar so that it would remember if you had it enabled/disabled when the map changes. 

Modules Required: 
Engine 
Fun 
http://www.amxmodx.org/forums/viewtopic.php?p=142701

Download it from there.
Post Reply