Raised This Month: $ Target: $400
 0% 

Command To Work From Web Console Too, Not Only When You Are In Server.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Alber9091
Veteran Member
Join Date: Jun 2014
Location: Karachi, Pakistan
Old 07-18-2019 , 17:37   Re: Command To Work From Web Console Too, Not Only When You Are In Server.
Reply With Quote #13

I tried,

PHP Code:
register_concmd "/change"
register_concmd "change"
register_concmd "say /change" 
PHP Code:
register_srvcmd "/change"
register_srvcmd "change"
register_srvcmd "say /change" 
In case of register_concmd, command works from client side but not from console.

In case of srvcmd, command don't work from console.

There is no problem with console, since rest of the commands work very fine from console.


I'm not sure, but I think, here some change would be made? Keeping else condition or whatever possible solution, I have no idea !!

if (get_user_flags(p) & ADMIN_VOTE)

PHP Code:
if (get_user_flags(p) & ADMIN_VOTE)
        {
            
client_print_color(pDontChange id"%L %L"p"MODE_PREFIX"p"MODE_ADMIN_CHANGED_ADMINS"szNamep, (g_pServerVar[m_iStatus] == map_close) ? "MODE_ADMIN_CLOSED" "MODE_ADMIN_OPENED");
            
console_print(id"%s Changed The Mode"szName);
            }
    }

    return 
PLUGIN_HANDLED;


Last edited by Alber9091; 07-18-2019 at 18:06.
Alber9091 is offline
 



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 00:50.


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