Raised This Month: $51 Target: $400
 12% 

very easy edit my scrpit


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
arvEL.
Senior Member
Join Date: Dec 2014
Location: Iraq
Old 07-07-2015 , 14:28   very easy edit my scrpit
Reply With Quote #1

PHP Code:
#include <amxmodx>

public plugin_init() 
{
    
register_plugin("Menu""0.1""")
    
register_clcmd("say /owners""owners")
    
register_clcmd("say /admins""admins" )
}

public 
admins(id)
{
    new 
szMenu menu_create("\rList Commands Administrators""menu_handler")
    
menu_additem(szMenu"amx_kick \r[name]""1");
    
menu_additem(szMenu"amx_banip, amx_addban \r[name] [time] [reason]""2");
    
menu_additem(szMenu"amx_slay, amx_slap \r[name]""3");
    
menu_additem(szMenu"amx_t, amx_ct, amx_spec \r[name]""4");
    
menu_additem(szMenu"amx_nick \r[name1] [name2]""5");
    
menu_additem(szMenu"amx_map \r[map]""6");
    
menu_additem(szMenu"amx_votemap \r[map1] [map2]""7");
    
menu_additem(szMenu"amx_gag \r[name] [time]""8");
    
menu_additem(szMenu"amx_destroy \r[name] [reason]""9");
    
menu_additem(szMenu"amx_showip""10");
    
menu_additem(szMenu"amx_ss \r[name] [number]""11");
    
menu_additem(szMenu"amx_psay \r[name] [message]""12");
    
menu_displayidszMenu)
}
public 
owners(id)
{
    new 
szMenu menu_create("\rList Commands Owners & Co-Owner""menu_handler")
    
menu_additem(szMenu"\ycs_slay, cs_slap \r[name] [reason]""14");
    
menu_additem(szMenu"\ycs_kick \r[name]""10");
    
menu_additem(szMenu"\ycs_banip \r[name] [time] [reason]""15");
    
menu_displayidszMenu)
}
public 
menu_handler(idszMenuitem)
{
    
menu_destroy(szMenu)

i need edit this commandes , i need only person have flag ADMIN_IMMUNITY can use
PHP Code:
    register_clcmd("say /owners""owners"
and i need only person have flag ADMIN_SLAY can use
PHP Code:
register_clcmd("say /admins""admins" 
and i need show a message for admins only admin have flages ADMIN_SLAY and ADMIN_IMMUNITY

text message1 = If you are an administrator use: say /admins
text message2 = If you are an owner use: say /owners

::::::::::::::::::::::::::::::::::::::::::::: ::

i try make:

PHP Code:
    register_concmd("say /owners""owners"ADMIN_IMMUNITY"- List Commands Owners & Co-Owner")
    
register_concmd("say /admins""admins"ADMIN_SLAY"- List Commands Administrators"
but not work!!!

also i used

PHP Code:
    register_clcmd("say /owners""owners"ADMIN_IMMUNITY"- List Commands Owners & Co-Owner")
    
register_clcmd("say /admins""admins"ADMIN_SLAY"- List Commands Administrators"
but not work! can anyone fix it

Last edited by arvEL.; 07-07-2015 at 15:11.
arvEL. is offline
Send a message via Skype™ to arvEL.
vitorrossi
Senior Member
Join Date: Apr 2012
Location: NY, USA
Old 07-07-2015 , 16:43   Re: very easy edit my scrpit
Reply With Quote #2

PHP Code:
register_clcmd("say /owners""owners"ADMIN_IMMUNITY"- List Commands Owners & Co-Owner"

PHP Code:
public ownersidiLeveliCid )
{
    if( !
cmd_accessidiLeveliCid) )
        return

vitorrossi is offline
arvEL.
Senior Member
Join Date: Dec 2014
Location: Iraq
Old 07-07-2015 , 18:13   Re: very easy edit my scrpit
Reply With Quote #3

Quote:
Originally Posted by vitorrossi View Post
PHP Code:
register_clcmd("say /owners""owners"ADMIN_IMMUNITY"- List Commands Owners & Co-Owner"

PHP Code:
public ownersidiLeveliCid )
{
    if( !
cmd_accessidiLeveliCid) )
        return

thx bro can you tell me how to make message to show to only who have flag
ADMIN_SLAY and flag ADMIN_IMMUNITY
example:

if anyone have ADMIN_IMMUNITY server will make message ColorChat(id, GREY, "hi owner!")
and if anyone have ADMIN_SLAY server will make message ColorChat(id, GREY, "hi admin!")
arvEL. is offline
Send a message via Skype™ to arvEL.
Kuma77
Senior Member
Join Date: Sep 2014
Location: Behind PC
Old 07-08-2015 , 00:44   Re: very easy edit my scrpit
Reply With Quote #4

use
client_putinserver
and
is_user_admin

EDIT : and you can check flags also
__________________
SPACE TIME

Last edited by Kuma77; 07-08-2015 at 00:45.
Kuma77 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 11:58.


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