Raised This Month: $95 Target: $400
 23% 

Admins VS All v1.4


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Hawk552 (427)
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 12-19-2008 , 20:18   Admins VS All v1.4
Reply With Quote #1

Admins Vs All

BY STARSAILOR

Version 1.4



History:


The idea for this plug was born when i had a dedicated server and i wanted to play ADMs vs ALL, but nobody followed the rules (and i had no experience with AMX mod) . Now i have experience in AMXX scripting and I decided make one on my own

Description:

This plugins verifies your flags (in each round) checking if you are admin or not.
If you are admin, you will be moved on a new round to the Terrorist team, else if you are not, to the Counter Terrorist team. The required flag to be considered an admin is ADMIN_BAN.
Also you can modify the required flag

PHP Code:
#define ACCESS_LEVEL     ADMIN_BAN 


Cvars:


ava_enable (0|1) Enable|Disable plugin
ava_adminteam "TERRORIST"
ava_othersteam "CT"

Changelog:


v1.4 : Fixed some bugs
v1.3 : Changed Loop Code
v1.2 : Changed Cvar Names, Added Version Cvar
v1.1 : Added cvar for Admin Team | Others Team
v1.0 : First release

Modules:

Cstrike

Credits to:

RULEEwasdsa (Beta Testing)

Servers with this plugin:


[Here]
Attached Files
File Type: sma Get Plugin or Get Source (admin_vs_all.sma - 3683 views - 2.3 KB)
__________________
Find my plugins here..

Ex - Spanish Moderator.

Last edited by Starsailor; 01-12-2010 at 20:41.
Starsailor is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 12-20-2008 , 05:08   Re: Admins VS ALL
Reply With Quote #2

The code seems pretty fine, still I suggest that you make a cvar to set the team, so are admins and normal players T or CT. It would be better cause you could choose the team like for a map or anything. I won't use this, don't like the idea, still well ye, GJ.
SnoW is offline
Send a message via MSN to SnoW
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-20-2008 , 05:44   Re: Admins VS ALL
Reply With Quote #3

why you looping the check 2 times over the players?
you can do something like this:
PHP Code:
public Event_Set_Teams(){
    if( 
get_pcvar_num(g_enable) ){
        new 
players[32], pnumid;
        
get_players(playerspnum);
        
        for( new 
i=0i<pnumi++ ){
            
id players[i];
            
            if(
get_user_flags(id) & ACCESS_LEVEL)
                
cs_set_user_team(idTEAM_ADMIN);
            else
                
cs_set_user_team(idTEAM_OTHERS);
        }
        
client_print(0,print_chat,"** Checking Teams **")
    }

__________________
xPaw is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 12-20-2008 , 05:57   Re: Admins VS ALL
Reply With Quote #4

Their is also Clan vs All Same thing really, just based off tags instead of flags.
__________________
bmann_420 is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 12-20-2008 , 05:58   Re: Admins VS ALL
Reply With Quote #5

Good idea

You got plugins against it,

And now you got one for it
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
FakeNick
Senior Member
Join Date: Feb 2008
Location: Poland
Old 12-20-2008 , 09:58   Re: Admins VS ALL
Reply With Quote #6

Nice idea :].
__________________


[||||||||||] Snowball war v3.05

Pol
ish translations here ;) (PM me if you want one).


FakeNick is offline
Old 12-20-2008, 20:56
Starsailor
This message has been deleted by YamiKaitou. Reason: single word post
Swuifti
Senior Member
Join Date: Mar 2008
Location: Bulgaria/Sofia
Old 01-18-2009 , 05:43   Re: Admins VS ALL v1.1
Reply With Quote #7

Cool very nice plugin
Swuifti is offline
Send a message via ICQ to Swuifti Send a message via Yahoo to Swuifti Send a message via Skype™ to Swuifti
Old 01-21-2009, 17:30
Starsailor
This message has been deleted by Starsailor. Reason: D:
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 01-31-2009 , 10:28   Re: Admins VS ALL v1.3
Reply With Quote #8

Code:
  Changelog:  v1.3 : Changed Loop Code
__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor is offline
jediZEr0
Member
Join Date: Jan 2009
Location: In the Middle of Nowhere
Old 01-31-2009 , 12:54   Re: Admins VS ALL v1.3
Reply With Quote #9

Nice idea! I'll try it later. I am very sleepy at the moment.
jediZEr0 is offline
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 02-01-2009 , 00:09   Re: Admins VS ALL v1.3
Reply With Quote #10

Like the idea! +karma
BOYSplayCS is offline
Reply


Thread Tools
Display Modes

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:49.


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