Monthly Target: $400 Donations: $47
 11% 

[REQ] /admin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Counte
Junior Member
Join Date: Sep 2011
Old 04-04-2012 , 05:02   [REQ] /admin
Reply With Quote #1

Hi guys.

I want a plugin make when someone type /admin in the chat, it show him a motd that tells how to get admin. someone can make me that plugin?

Sorry for my bad english.

Thanks.
Counte is offline
T-z3P
Senior Member
Join Date: Apr 2008
Location: Iasi, Romania
Old 04-04-2012 , 05:22   Re: [REQ] /admin
Reply With Quote #2

You could search before posting, there are tons of examples in these forums.
PHP Code:
#include <amxmodx>
#include <amxmisc>

new AUTHOR[]="T-z3P"
new VERSION[]="0.1"
new PLUGIN[]=""

public plugin_init()
{
    
register_plugin(PLUGIN,VERSION,AUTHOR)

    
register_clcmd("say /admin","cmdAdmin")
    
register_clcmd("say_team /admin","cmdAdmin")
}

public 
cmdAdmin(id)
{    
    
show_motd(id,"addons\amxmodx\configs\admin.html","Admin")
    
    return 
PLUGIN_HANDLED

Compile this and make a html file called "admin.html", add your information in it and then place it in "cstrike/addons/amxmodx/configs".
__________________



Last edited by T-z3P; 04-04-2012 at 05:22.
T-z3P is offline
Send a message via Yahoo to T-z3P Send a message via Skype™ to T-z3P
Counte
Junior Member
Join Date: Sep 2011
Old 04-04-2012 , 14:56   Re: [REQ] /admin
Reply With Quote #3

Thank You T-z3P! It worked perfect! But can i change :
register_clcmd("say /admin","cmdAdmin")
register_clcmd("say_team /admin","cmdAdmin")
to

register_clcmd("say /vip","cmdAdmin")
register_clcmd("say_team /vip","cmdAdmin")

and change
show_motd(id,"addons\amxmodx\configs\admin.html","Admin")
to
show_motd(id,"addons\amxmodx\configs\vip.html","Admin")

?
Counte is offline
bazhenov93
Veteran Member
Join Date: Oct 2010
Old 04-04-2012 , 14:59   Re: [REQ] /admin
Reply With Quote #4

Quote:
Originally Posted by Counte View Post
Thank You T-z3P! It worked perfect! But can i change :
register_clcmd("say /admin","cmdAdmin")
register_clcmd("say_team /admin","cmdAdmin")
to

register_clcmd("say /vip","cmdAdmin")
register_clcmd("say_team /vip","cmdAdmin")

and change
show_motd(id,"addons\amxmodx\configs\admin.html","Admin")
to
show_motd(id,"addons\amxmodx\configs\vip.html","Admin")

?
Yes, also change the title if you want.
Code:
show_motd(id,"addons\amxmodx\configs\vip.html","Title goes here")
bazhenov93 is offline
swmajid2010
Member
Join Date: Mar 2012
Old 04-05-2012 , 04:23   Re: [REQ] /admin
Reply With Quote #5

download amx_super its great and have every thing that admin needs ...
swmajid2010 is offline
T-z3P
Senior Member
Join Date: Apr 2008
Location: Iasi, Romania
Old 04-05-2012 , 07:50   Re: [REQ] /admin
Reply With Quote #6

In my opinion is kinda stupid to download such a huge plugin just to use only 1 command.
__________________


T-z3P is offline
Send a message via Yahoo to T-z3P Send a message via Skype™ to T-z3P
Counte
Junior Member
Join Date: Sep 2011
Old 04-05-2012 , 13:23   Re: [REQ] /admin
Reply With Quote #7

Quote:
Originally Posted by bazhenov93 View Post
Yes, also change the title if you want.
Code:
show_motd(id,"addons\amxmodx\configs\vip.html","Title goes here")
Thanks!
Code:
download amx_super its great and have every thing that admin needs ...
I think it is bad for only 1 option like T-z3P sad..
Counte 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 12:15.


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