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

Block RTV


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management       
.MMYTH.
BANNED
Join Date: Sep 2010
Location: Brasil - RS
Old 12-18-2010 , 11:21   Block RTV
Reply With Quote #1

Description
This plugin turn off the option rtv when a admin is online and isn't on the spectator team.

Attention
If you have GALILEO installed in your server and the version is above 1.2, you don't need this plugin...

Messages
Warn for the players when a admin is on and say rtv.
Quote:
[en]
[AMXX] There are admins on server, therefore you can't say rtv.
[bp]
[AMXX] Tem admins no server, por isso voce nao pode dizer rtv.
[es]
[AMXX] Tiene los administradores del servidor, por lo que no se puede decir rtv.
[de]
[AMXX] Es sind Admins auf dem Server, deswegen kann rtv momentan nicht genutzt werden.
[sr]
[AMXX] Imaju Admini na Serveru, zato trenutno rtv nemoze da se koristi.
[fr]
[AMXX] La commande rtv est inactive lorsqu'il y'a des admins sur le serveur.
[bg]
[AMXX] Ima administratori v servera i zatova ne moje da polzvate rtv.
Cvars
PHP Code:
amx_block_rtv <or 0// 1 active, 0 disables 
RTV Messages Block
You can add in the file block_rtv.ini more things, default:
Quote:
; Block RTV
; Maximun Caracteres: 300

say rtv
say /rtv
say .rtv
say /rockthevote
say /rock the vote
say .rockthevote
say .rock the vote
say_team rtv
say_team /rtv
say_team .rtv
say_team /rockthevote
say_team /rock the vote
say_team .rockthevote
say_team .rock the vote
Instaling
- Put the file block_rtv.ini in: amxmodx/configs/
- Put the file block_rtv.txt in: amxmodx/data/lang/
- Put the file block_rtv_v14.amxx in: amxmodx/plugins/
- Open the file amxmodx/configs/plugins.ini and write block_rtv_v14.amxx

Modules
- Amxmodx;
- Cstrike.

Changelog
PHP Code:
1.0 First Release
1.1 
Optmized functions
Add cvar on/off
Verify if the admin isnt a spectator
Read rtv commands from a file
1.2 
Optmized functions
1.3 
Optimized functions
Add language file
1.4 
Fixed functions
Add new languages 
Attached Files
File Type: ini block_rtv.ini (285 Bytes, 2085 views)
File Type: txt block_rtv.txt (596 Bytes, 1954 views)
File Type: sma Get Plugin or Get Source (block_rtv_14.sma - 4318 views - 1.6 KB)

Last edited by .MMYTH.; 01-25-2011 at 17:37. Reason: New version...
.MMYTH. is offline
Send a message via MSN to .MMYTH.
vato loco [GE-S]
Veteran Member
Join Date: Oct 2006
Location: Germany
Old 12-18-2010 , 11:46   Re: Block RTV
Reply With Quote #2

and what about this commands

PHP Code:
    "rockthevote"
    "rock the vote"
    "rtv"
    "/rockthevote"
    "/rock the vote"
    "/rtv"
    ".rockthevote"
    ".rock the vote"
    ".rtv" 
__________________
vato loco [GE-S] is offline
.MMYTH.
BANNED
Join Date: Sep 2010
Location: Brasil - RS
Old 12-18-2010 , 12:14   Re: Block RTV
Reply With Quote #3

i will make read of a file, the commands...
.MMYTH. is offline
Send a message via MSN to .MMYTH.
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 12-18-2010 , 12:26   Re: Block RTV
Reply With Quote #4

Why you make a stock when you can use the funcion from AMXX ( default is_user_admin ) ?.

Second , in the loop in the stock , you should use get_maxplayers() , its more efficient .
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-18-2010 , 12:36   Re: Block RTV
Reply With Quote #5

What about galileo different rtv styles ?
http://forums.alliedmods.net/showthr...684848#options

Code:
// Indicates which say commands can be used to rock the vote. 
// The flags are additive. A value of 0 will disable this feature.
// 1 - standard "rockthevote" command
// 2 - shorthand "rtv" command
// 4 - dynamic "rockthe<anything>vote" command (allows a player to type 
//     any one word (i.e. no spaces) that starts with "rockthe" and ends 
//     with "vote". Some examples might be: "rockthedamnvote", 
//     "rockthesillylittlevote", or "rockthefreakingvote". The total 
//     length of the word can not be longer than 31 characters. That 
//     leaves 20 characters for creativeness once you factor in the 
//     lengths of "rockthe" and "vote")
gal_rtv_commands 3

May be you could directly act on rvt plugins, like set cvars, or call some funcs etc...
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 12-18-2010 at 12:49.
ConnorMcLeod is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-18-2010 , 18:29   Re: Block RTV
Reply With Quote #6

I think galileo already can do this
__________________
xPaw is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-18-2010 , 18:56   Re: Block RTV
Reply With Quote #7

I don't think so.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-18-2010 , 19:11   Re: Block RTV
Reply With Quote #8

[QUOTE=lucas_7_94;1373772]Why you make a stock when you can use the funcion from AMXX ( default is_user_admin ) ?.


1. Because he thinks amxmisc is a module as shown by his statement:
Quote:
Originally Posted by .MMYTH. View Post
Modules
Only amxmodx.
Quote:
Originally Posted by lucas_7_94 View Post
Second , in the loop in the stock , you should use get_maxplayers() , its more efficient .
2. No.
__________________
fysiks is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-18-2010 , 19:16   Re: Block RTV
Reply With Quote #9

2. I think he meant to cache the value, it can save multiple is_user_connected from being sent
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 12-18-2010 , 19:17   Re: Block RTV
Reply With Quote #10

[QUOTE=fysiks;1374141]
Quote:
Originally Posted by lucas_7_94 View Post
Why you make a stock when you can use the funcion from AMXX ( default is_user_admin ) ?.


1. Because he thinks amxmisc is a module as shown by his statement:




2. No.
Its better put directly 33 than get the maxplayers ?

EDIT : Exactly Connor , Thanks for the explanation.
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
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 03:34.


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