Raised This Month: $ Target: $400
 0% 

Only person with a flag can use it


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exusar
Member
Join Date: Jul 2010
Old 11-15-2011 , 10:53   Only person with a flag can use it
Reply With Quote #1

Hey. I want only people with flag ADMIN_LEVEL_C can use command say /m and say /misje. I know I can add flag in register_clcmd, but I want to show people without this flag a text (e.g. Only VIPs can use it). I tried to add some code in public menu_misje, but the compilation failed. Please help.
Attached Files
File Type: sma Get Plugin or Get Source (cod_misje.sma - 501 views - 20.7 KB)
__________________
Polish Counter-Strike Servers: Golden Gaming
Exusar is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 11-15-2011 , 11:07   Re: Only person with a flag can use it
Reply With Quote #2

PHP Code:
public menu_misje(id)
{
    if( 
access(idADMIN_LEVEL_C) )
    {
        if(!
ma_misje[id])
        {
            new 
menu menu_create("Menu misji""misje_handler");
            
menu_additem(menu"Zabij klase");
            
menu_additem(menu"Zapoluj na gracza");
            
menu_additem(menu"Zabij jako pierwszy \r[3000 EXP]");
            
menu_additem(menu"Zabij headshootem");
            
menu_additem(menu"Podloz pake");
            
menu_additem(menu"Rozbroj pake");
            
            
menu_setprop(menuMPROP_EXITNAME"Wyjscie");
            
menu_setprop(menuMPROP_NEXTNAME"Nastepna strona");
            
menu_setprop(menuMPROP_BACKNAME"Poprzednia strona");
            
menu_display(idmenu);
        }
        else
        {
            
menu_ma_misje(id)
        }
    }
    else
    {
        
client_print(idprint_chat"Only VIPs can use this")
    }

Ps. This was a request, didn't really belong in scripting help.
Erox902 is offline
Exusar
Member
Join Date: Jul 2010
Old 11-15-2011 , 11:19   Re: Only person with a flag can use it
Reply With Quote #3

Thank you.

Right, Im sorry.
__________________
Polish Counter-Strike Servers: Golden Gaming
Exusar 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 08:26.


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