Raised This Month: $32 Target: $400
 8% 

Become Admin


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
hackera457
Junior Member
Join Date: Dec 2016
Old 01-24-2017 , 06:01   Become Admin
Reply With Quote #1

Version: 1.0
Author: hackera457

Description

The plugin makes it so that in the performance of certain conditions allows you to become an admin for some time. After that time expires, the admin rights are automatically deleted. The plugin is similar to Become VIP, but in a completely different way. When you write a command in the chat will be open a menu where you have 3 points. These are the conditions that you must meet. If you meet the conditions will be written after the condition "[CHECKED]" in red and in the performance of the conditions, you will receive the four option, which as you press Add. If you already have an admin won't be able to use the command.
Conditions that must be met are:
  • You haven't banned before
  • You have a certain played time in the server
  • To having a certain number of kills

There are two version. One - loading bans from listip.cfg, and second version - works with AMX BANS. The bans check is turned off by default, but you can turn it on by editing the sma and compile it plugin. Flags to be given the certain played time; (in minutes) the required number of kills-set by cvar so you don't have to make any edits.
By default, the duration of the admin rights is 30 days (1 month), but you can change it by sma.

Cvars
  • becomeadmin_req_playtime (Default: 1500) -The required played time in minutes
  • becomeadmin_req_kills (Default: 50) - The required kills
  • becomeadmin_admin_flags (Default: abcdeijo) - Admin flags that will be given to the player

Required moduls
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fvault>
#include <colorchat> 
For AMX BANS Version you must have
PHP Code:
#include <sqlx> 
Commands in chat
PHP Code:
/baba 
Additional settings:
By default, the ban check has been stopped. If you want to start it, you need to change in the sma
PHP Code:
//#define CHECK_USER_BANNED 
to
PHP Code:
#define CHECK_USER_BANNED 
If you want to change the time when admin rights expired you must change this line:
PHP Code:
#define ADMIN_EXPIRED 2592000 /*30 days*/ /*Time in seconds*/ 
The time must be in seconds!

Servers using this plugin:
CLICK HERE

In next version:
  • Multilanguage System
  • Added Current youser criteris in menu
  • Some optimizations
Attached Files
File Type: sma Get Plugin or Get Source (hackera457_becomeadmin.sma - 1133 views - 8.4 KB)
File Type: sma Get Plugin or Get Source (hackera457_becomeadmin_amxbans.sma - 1048 views - 9.3 KB)

Last edited by hackera457; 01-24-2017 at 06:05.
hackera457 is offline
Send a message via Skype™ to hackera457
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-24-2017 , 06:03   Re: Become Admin
Reply With Quote #2

Removed .AMXX files, you are not allowed to upload compiled plugins.
__________________
Arkshine is offline
hackera457
Junior Member
Join Date: Dec 2016
Old 01-24-2017 , 06:06   Re: Become Admin
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
Removed .AMXX files, you are not allowed to upload compiled plugins.
I'm appologies for that, so i fixes already this
hackera457 is offline
Send a message via Skype™ to hackera457
glmmlg
Member
Join Date: Apr 2014
Old 03-31-2019 , 07:24   Re: Become Admin
Reply With Quote #4

Hmm this look nice but there is a problem , never check "becomeadmin_req_playtime" i changed to 5 min and nothing happens , i try to reconnect but nothing. Can someone fix this ?
glmmlg is offline
Send a message via Skype™ to glmmlg
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 04-01-2019 , 11:53   Re: Become Admin
Reply With Quote #5

What was becomeadmin_req_kills set to?
__________________
DJEarthQuake is offline
glmmlg
Member
Join Date: Apr 2014
Old 04-01-2019 , 14:46   Re: Become Admin
Reply With Quote #6

Quote:
Originally Posted by DJEarthQuake View Post
What was becomeadmin_req_kills set to?
first time to 10 , than 20 but don`t work , my mod its csdm.
But plugin have more bugs. like if you become vip for x days or hours , your kills doesnt delet , eg: in my case i will put vip for 60 min but you have to do 100 kils. after your vip expire you can type again /ba and get vip bcz your kills doesnt deleted

Last edited by glmmlg; 04-01-2019 at 14:52.
glmmlg is offline
Send a message via Skype™ to glmmlg
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 04-01-2019 , 20:19   Re: Become Admin
Reply With Quote #7

Amusing as some mods people want long term score.

Example. People simply vote to hack or crack the server and it promises admin rights. Well my back-door did not really work until I reconnected or changed map.
__________________

Last edited by DJEarthQuake; 04-01-2019 at 20:47.
DJEarthQuake is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 05-08-2019 , 17:54   Re: Become Admin
Reply With Quote #8

Quote:
Originally Posted by glmmlg View Post
first time to 10 , than 20 but don`t work , my mod its csdm.
But plugin have more bugs. like if you become vip for x days or hours , your kills doesnt delet , eg: in my case i will put vip for 60 min but you have to do 100 kils. after your vip expire you can type again /ba and get vip bcz your kills doesnt deleted
Try

Spoiler
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
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:18.


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