AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQ] /admin (https://forums.alliedmods.net/showthread.php?t=181943)

Counte 04-04-2012 05:02

[REQ] /admin
 
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. :)

T-z3P 04-04-2012 05:22

Re: [REQ] /admin
 
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".

Counte 04-04-2012 14:56

Re: [REQ] /admin
 
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")

?

bazhenov93 04-04-2012 14:59

Re: [REQ] /admin
 
Quote:

Originally Posted by Counte (Post 1681921)
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")

swmajid2010 04-05-2012 04:23

Re: [REQ] /admin
 
download amx_super its great and have every thing that admin needs ...

T-z3P 04-05-2012 07:50

Re: [REQ] /admin
 
In my opinion is kinda stupid to download such a huge plugin just to use only 1 command.

Counte 04-05-2012 13:23

Re: [REQ] /admin
 
Quote:

Originally Posted by bazhenov93 (Post 1681925)
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.. :wink:


All times are GMT -4. The time now is 11:56.

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