Raised This Month: $ Target: $400
 0% 

Admin Menu version 1.5 by Mitko


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff       
blacktample
Junior Member
Join Date: May 2010
Old 02-27-2011 , 15:47   Admin Menu version 1.5 by Mitko
Reply With Quote #1

Author: Mitko
Version: 1.5


Hello, today i stary my first plugin. Much time i think what to be. I test much ideas and i stop on this.
This plugin is verry simple, His order is when some admin with flag for immunity type /adminshop, adminshop in chat/team chat to get a simple window with these options
Code:
1- Makes admin's health 200
2- Makes admin's armor 200
3- Gives half gravity (400)
4- Gives 1/3 speed bonus (420)
The menu is forbidden for normal players and they can't press anything (cant get anything)
When admin say /adminshop or adminshop, nobody will see this in the chat, even he, but the command works properly.
I also added a code that makes so that if you add too many things on one page, make new pages where to fit.
When the admin gets something in the chat was print this thing
Code:
[By Mitko] You purchased (name of the thing what you gets).
How you can see the advertisement is [By Mitko], You can remove it from the sma file.
Modules, wich you need to enable are 3. They are amxmodx, fun and colorchat.

Changelog:
Code:
1.0 Core
1.1 Removed all Hud massages!
1.2 Added Half Gravity & 1/3 speed bonus
1.3 Fixed Health & Armor unlimited stack.
1.4 Fixed Zero Gravity bugg.
1.5 Added non-admin blocker, cuz some players abuse this bugg!
Tests are made by zve3data and me. The result is - working
Mitko is me.
Attached Files
File Type: sma Get Plugin or Get Source (admin-menu.sma - 857 views - 3.5 KB)
__________________
PHP, HTML, CSS, JS !!

Last edited by blacktample; 02-27-2011 at 16:25.
blacktample is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 02-27-2011 , 16:03   Re: Admin Menu version 1.5 by Mitko
Reply With Quote #2

First off, this plugin is useless.

Second, There aren't even points, so they didn't even purchase it, they just get it.

Third, why do you register each clcmd twice...

Fourth, The admins can keep 'purchasing' it over and over and over again, and when they get shot, they can just get 200 HP again...


Useless.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
blacktample
Junior Member
Join Date: May 2010
Old 02-27-2011 , 16:17   Re: Admin Menu version 1.5 by Mitko
Reply With Quote #3

this is my firs plugin.
First - why useless. if you add more options ;)
Secound - Goes of First. You can add more options. I just made this plugin like a template.
Third - i don't know
Fourth - i know. But who will do it. I made this plugin for 1 hour. This plugin is made first for HNS then for another mods ;)

So i will start my new plugin. I will make it like a new mod. it will take much time but.. you know
__________________
PHP, HTML, CSS, JS !!

Last edited by blacktample; 02-27-2011 at 16:28.
blacktample is offline
jarmenz
Member
Join Date: Feb 2011
Location: Riga, Latvia
Old 02-28-2011 , 02:34   Re: Admin Menu version 1.5 by Mitko
Reply With Quote #4

Who cares if its your first plugin? Why would you post a "plugin" you haven`t fully tested and finished?
Is it for fame?
__________________
"We view the distant peaks which are our destination with enthusiasm but actually that destination is achieved by the drudgery of single footsteps."
Geoff Burch
jarmenz is offline
xUltra
Junior Member
Join Date: Feb 2011
Location: Counter-Strike
Old 02-28-2011 , 02:49   Re: Admin Menu version 1.5 by Mitko
Reply With Quote #5

i rather use amx super menu 4.2
xUltra is offline
blacktample
Junior Member
Join Date: May 2010
Old 02-28-2011 , 04:37   Re: Admin Menu version 1.5 by Mitko
Reply With Quote #6

Quote:
Originally Posted by jarmenz View Post
Who cares if its your first plugin? Why would you post a "plugin" you haven`t fully tested and finished?
Is it for fame?
no no no. Not for fame. I just upload this plugin, to see what will tell peoples.
I am ready to accept criticism in order to improve my work
------------------------------
register_clcmd("say /adminshop", "open")
register_clcmd("say_team /adminshop", "open")

^^^^^^^^^^^
why i do this ? Cuz how you can see i register first time "say /adminshop" then "say_TEAM /adminshop"
__________________
PHP, HTML, CSS, JS !!
blacktample is offline
jarmenz
Member
Join Date: Feb 2011
Location: Riga, Latvia
Old 02-28-2011 , 06:08   Re: Admin Menu version 1.5 by Mitko
Reply With Quote #7

Correct me if I`m wrong here:
PHP Code:
 register_clcmd("say /adminshop""open")
register_clcmd("say_team /adminshop""open")
register_clcmd("say adminshop""open")
register_clcmd("say_team adminshop""open")
register_clcmd("say /adminshop""cantseechatcommands")
register_clcmd("say_team /adminshop""cantseechatcommands")
register_clcmd("say adminshop""cantseechatcommands")
register_clcmd("say_team adminshop""cantseechatcommands"
Why not just use PLUGIN_HANDLED? I mean what`s the point to show everybody you used "adminshop".

Also, bring the if statement which check if user is alive OUTSIDE the switch statement to decrease unnecessary code lines.
Also, strongly recommended (other people also mentioned this) - you need to set a maximum limit, e.g, if player has 100 HP the maximum HP possible should be 300HP not 100+200*menu item clicks .

Also, why do you write text like "You purchased Half Gravity" if you don`t subtract any money from the player?
__________________
"We view the distant peaks which are our destination with enthusiasm but actually that destination is achieved by the drudgery of single footsteps."
Geoff Burch
jarmenz is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-22-2011 , 16:08   Re: Admin Menu version 1.5 by Mitko
Reply With Quote #8

Some plugins can do the job equali or better.
Unapproved.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
kNowo
Senior Member
Join Date: Apr 2011
Location: Malaysia
Old 04-22-2011 , 18:51   Re: Admin Menu version 1.5 by Mitko
Reply With Quote #9

funny author
kNowo is offline
blacktample
Junior Member
Join Date: May 2010
Old 05-03-2011 , 15:26   Re: Admin Menu version 1.5 by Mitko
Reply With Quote #10

dude, why do you think i'm funny author
__________________
PHP, HTML, CSS, JS !!
blacktample 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 19:13.


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