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

[ANY] toggle chat (v1.2, 18/11/2017)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
91346706501435897134
Member
Join Date: Oct 2017
Plugin ID:
5916
Plugin Version:
1.2
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    allows admins to toggle chat on/off
    Old 11-18-2017 , 09:59   [ANY] toggle chat (v1.2, 18/11/2017)
    Reply With Quote #1

    Description:
    allows admins to toggle chat on/off

    Commands:
    sm_togglechat - toggles chat on/off - ADMFLAG_CHAT

    Changelog:
    Quote:
    18/11/2017 (v1.2)

    * Code improvement.

    18/11/2017 (v1.1)

    * Code improvement.

    18/11/2017 (v1.0)

    * Initial release.
    Installation instructions:
    Place toggelchat.smx in your plugins folder and in the master console type: sm plugins load togglechat




    Attached Files
    File Type: sp Get Plugin or Get Source (togglechat.sp - 820 views - 1.0 KB)

    Last edited by 91346706501435897134; 11-18-2017 at 10:52.
    91346706501435897134 is offline
    Technoblazed
    Senior Member
    Join Date: May 2016
    Location: United Kingdom
    Old 11-18-2017 , 10:13   Re: [ANY] toggle chat (v1.0, 18/11/2017)
    Reply With Quote #2

    Few pointers:

    - You're using "OnClientSayCommand", but not checking if the command is equal to "say" or "say_team", so all commands will be blocked if it's disabled.
    - 3 line spaced new lines?
    Technoblazed is offline
    91346706501435897134
    Member
    Join Date: Oct 2017
    Old 11-18-2017 , 10:21   Re: [ANY] toggle chat (v1.0, 18/11/2017)
    Reply With Quote #3

    Quote:
    Originally Posted by Technoblazed View Post
    Few pointers:

    - You're using "OnClientSayCommand", but not checking if the command is equal to "say" or "say_team", so all commands will be blocked if it's disabled.
    - 3 line spaced new lines?
    Fixed, thanks.
    91346706501435897134 is offline
    Technoblazed
    Senior Member
    Join Date: May 2016
    Location: United Kingdom
    Old 11-18-2017 , 10:28   Re: [ANY] toggle chat (v1.0, 18/11/2017)
    Reply With Quote #4

    Quote:
    Originally Posted by 91346706501435897134 View Post
    Fixed, thanks.
    I did this whilst you were replying:

    https://gist.github.com/Technoblazed...ced5fcd0d2866a
    Technoblazed is offline
    91346706501435897134
    Member
    Join Date: Oct 2017
    Old 11-18-2017 , 10:52   Re: [ANY] toggle chat (v1.0, 18/11/2017)
    Reply With Quote #5

    Quote:
    Originally Posted by Technoblazed View Post
    I did this whilst you were replying:

    https://gist.github.com/Technoblazed...ced5fcd0d2866a
    Updated once again.
    Had to make some changes to your code to make it working right though.
    91346706501435897134 is offline
    Reply


    Thread Tools
    Display Modes

    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 02:59.


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