Raised This Month: $ Target: $400
 0% 

Easy Admins


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 10-04-2010 , 23:34   Easy Admins
Reply With Quote #1

This Plugin is simple, to help n00b admins & prevent your server from admins using a certain flags: AMX_RCON, AMX_CVAR etc...


First Define this:

PHP Code:
/* --------------------------------------------------------- DEFINE  FIRST ---- */
#define ADMIN_ACCESS ADMIN_CHAT
/* --------------------------------------------------------- END OF DEFINE ---- */ 
In Server, for more help say .adminhelp for commands

PHP Code:
.adminhelp                          This Message :)
.
msg [message]                   - Show Message to all players
.rr [num]                            - Restarting Round in X sec.
.
slay [name]                       - Kill a player
.kick [name]                       - Kick a player
.ban [name] [time]              - Ban a player
.map [map_name]               - Changelevel
.rcon [rcon command]          - Sends a command to HLDS
.nick [Old_Name] [name]      - Change a player name
.leave [tag]                       - Kick players without a tag
.votekick [name]                - Start a votekick on player
.votemap [map] [map]         - Start a votemap
.voteban [name]                - Start a voteban on player
.vote [Quest] [A] [A2]        - Start a custom vote
.cancelvote                       Cancel any vote
.execall [command]             - Executes to all players any cmd
.amxx                               Shows AMX Mod Menu 


CVARS:
ea_active 1 or 0 - Disable | Enable Plugin
ea_helpfile "help.txt" - Help File used (In file use HTML)


Features:

If Player is connected to server, in chat show the message:



If Player is disconnected, show a message




REQUIRES: Admin.amxx From AMX MOD X
CHATC.INC From This Post
Belfore all, Your Says: LoL

This is a multi - lingual Plugin, But to complie use the 'Chat Color' Include:
(To show a Colored messages 'At End of Post')



Code:
[en]
WELCOME_MSG = %s \nHello \g%s, \nWelcome to \t(%s) \nsay \g.help \nfor more info
CONNECT_MSG = %s \t%s \nIs connected to server!
DISCONNECT_MSG = %s \t%s \nDisconnected from server!
MOTD_MSG = %s \nDisplaying the \t'Help' \ncommands.
RR_MSG = %s \t%s - \nRestarting round in\t%s \nseconds!
KILL_MSG = %s \t%s - \nKilled: \t%s
KICK_MSG = %s \t%s - \nKicked: \t%s
BANNED_MSG = %s \t%s - \nBanned \t%s
MAP_MSG = %s \t%s - \nChangelevel to \t%s
RCON_MSG = %s \t%s - \nAdjusted Cvar \t%s
NICK_MSG = %s \t%s - \nChanged Name: \t%s
LEAVE_MSG = %s \t%s - \nLeave Players witch tag: \t%s
VOTEKICK_MSG = %s \t%s - \nStarted a votekick for: \t%s
VOTEMAP_MSG = %s \t%s - \nStarted a votemap for: \t%s
VOTEBAN_MSG = %s \t%s - \nStarted a voteban for: \t%s
EXECALL_MSG = %s \t%s - \nExecall: \t%s
VOTE_MSG = %s \t%s - \nStarted a question: \t%s
VOTEC_MSG = %s \t%s - \nCancel a vote..



Installing: easy_admin.amxx in Plugins;
EA.txt in data/lang Folder;

In your compiling, chatc.inc on includes folder

That's ALL

Attached Files
File Type: sma Get Plugin or Get Source (easy_admin.sma - 931 views - 4.2 KB)
File Type: txt EA.txt (893 Bytes, 277 views)
File Type: inc chatc.inc (620 Bytes, 441 views)
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 10-04-2010 at 23:37.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
platzpatrone
Veteran Member
Join Date: Apr 2007
Location: Germany
Old 10-05-2010 , 00:11   Re: Easy Admins
Reply With Quote #2

nothing original and nothing special.
i still use an admin slash plugin that makes live easy and has much more
features.
platzpatrone is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-05-2010 , 00:26   Re: Easy Admins
Reply With Quote #3

OMG, never include colored chat in the main version of a plugin that is not already specifically for Counter-Strike. And, if you do, you don't need to have it as an include file for just a single function.

Quote:
Originally Posted by ^SmileY View Post
to help n00b admins & prevent your server from admins using a certain flags: AMX_RCON, AMX_CVAR etc...
What does this mean? It's called "define your admins in users.ini and command access in cmdaccess.ini".

EDIT: Just looked at the code. Very poorly coded.
__________________

Last edited by fysiks; 10-05-2010 at 00:29.
fysiks is offline
MMYTH
BANNED
Join Date: May 2010
Location: Brazil
Old 10-06-2010 , 12:10   Re: Easy Admins
Reply With Quote #4

i like this plugin, but use much memory and needs a include for colorchat .-.
MMYTH is offline
Send a message via MSN to MMYTH
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-02-2010 , 10:29   Re: Easy Admins
Reply With Quote #5

fysiks is right, plugin is badly coded.
Unapproved.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 20:16.


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