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

disable/prevent a server from passing on tags and sprays


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jd91651
Member
Join Date: Mar 2006
Old 03-24-2006 , 02:55   disable/prevent a server from passing on tags and sprays
Reply With Quote #1

My goal here is to prevent Porn sprays and tags on my server OR at least prevent the server from passing them on to connected clients.
Now then in CS/CZ you can add this cvar to your config and it will prevent your client from downloading other ppls sprays/tags.
cl_download_ingame "0"

That only affects your pc though.

I know there was a way to do this on the server side and it will prevent
spray/tags from gettting to the server OR perhaps it just prevented the server from passing them on (not sure which) but the net effect was the same only it affects all clients connected to the server instead of just your own.

Anyone know how to do that (or is it the same cvar but in the servers server.cfg instead of your own)?

NOTE: I don't want to prevent the uploading of maps to clients.
thanks
__________________
Keep the karma Give me carmel
jd91651 is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-24-2006 , 03:05  
Reply With Quote #2

Moved from "Support/Help".

So you want a plugin that blocks spraying?

Edit:
Code:
#include <amxmodx> #include <engine> static const PLUGIN[] = "Spray Control"; static const VERSION[] = "0.1"; static const AUTHOR[] = "v3x"; static const CVAR[] = "mp_canspray"; new g_CvarSpray; public plugin_init() {     register_plugin(PLUGIN , VERSION , AUTHOR);     register_impulse(201 , "sprayed");     g_CvarSpray = register_cvar(CVAR , "1"); } public sprayed(id) {     if(!get_pcvar_num(g_CvarSpray)) {         return PLUGIN_HANDLED;     }     return PLUGIN_CONTINUE; }
Cvar: mp_canspray <0|1> (default: 1)

I think that's how you use the new pcvar native.
__________________
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
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 03-24-2006 , 12:30   Re: disable/prevent a server from passing on tags and sprays
Reply With Quote #3

Quote:
Originally Posted by jd91651
I know there was a way to do this on the server side and it will prevent
spray/tags from gettting to the server
sv_allowupload 0 in your server.cfg will stop clients from uploading custom sprays to your server.
organizedKaoS is offline
jd91651
Member
Join Date: Mar 2006
Old 03-25-2006 , 00:48  
Reply With Quote #4

thanks for the reply.
Actually I wanted the cvar but appreciate and will take the plugin too!
I don't care if they spray I do it too.
I just want to prevent porn sprays.
How this worked in CS is when the client sprays or sees a spray he
either sees only his own and no one elses or the default tag (usually the half-life logo). I just never setup a server before so I only new the client cvar.
thanks again both of you.
__________________
Keep the karma Give me carmel
jd91651 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 13:24.


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