Raised This Month: $ Target: $400
 0% 

enable/disable chat command


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 10-29-2013 , 10:24   Re: enable/disable chat command
Reply With Quote #4

Quote:
Originally Posted by Debesėlis View Post
How about message?
PHP Code:
msgid ] = msgid ] ? print_chatid"%L"LANG_SERVER"INFO_ON" true print_chatid"%L"LANG_SERVER"INFO_OFF" false
Is this will work?
PHP Code:
switch (msgid ] )
{
    case 
0:
    {
        
msgid ] = false;
print_chatid"%L"LANG_SERVER"INFO_OFF" )
    }
    
    case 
1:
    {
        
msgid ] = true;
print_chatid"%L"LANG_SERVER"INFO_ON" )
    }

PHP Code:
msg[id] = msg[id] ? false true
---------->
PHP Code:
msg[id] = !msg[id]; 
&
PHP Code:
msgid ] = msgid ] ? print_chatid"%L"LANG_SERVER"INFO_ON" true print_chatid"%L"LANG_SERVER"INFO_OFF" false
--------->
PHP Code:
print_chat(id,"%L",id,(msg[id] ? "INFO_ON":"INFO_OFF")); 
__________________
simanovich 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 23:16.


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