Raised This Month: $ Target: $400
 0% 

[L4D2] Instructor Chat v1.0.3 [4-January-2023]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Plugin ID:
8348
Plugin Version:
1.0.3
Plugin Category:
All
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
3 
Plugin Description:
Old 12-30-2022 , 19:28   [L4D2] Instructor Chat v1.0.3 [4-January-2023]
Reply With Quote #1

about
  • create instructor hint on every chat, to known who saying
  • optional prevent default message or prevent when out of range, or in range


Intro Videos

[L4D2] Instructor Chat (SourceMod)



ConVar

PHP Code:
// instructor hint color, RBG format
chat_instruct_color "255,255,255"

// instructor flags, 1,2,4=pulse 8,16,32=alpha animating 64,128=shake 256=static.
// add numbers together you want
chat_instruct_flags "0"

// instructor hint icon, more see ./pak01_dir.vpk/scripts/mod_textures.txt
chat_instruct_icon "icon_skull"

// hint name prefix
chat_instruct_name "1"

// prevent default chat message 0=no 1=yes 2=prevent if out of range 3=prevent if in range
// required "[Any] Chat-Processor"
chat_instruct_prevent "0"

// instructor hint range, use with *_prevent, 0=infinity
chat_instruct_range "2000"

// time(seconds) to disappear instructor hint, int valuve
chat_instruct_timeout "12" 
known issue
  • plugin might not response fast if player change instructor setting using bind key

changelog
  • v1.0 just releases; 31-December-2022
  • v1.0.1 fixes:
    - dont prevent message when player didnt enabled the instructor,
    - *_prevent now required "chat-processor"; 31-December-2022 (2nd time)
  • v1.0.2 fix throw error when detect player who not connected; 1-January-2023
  • v1.0.3 fix instructor ConVar not found on dedicated server, the previous version wrote on listen server; 4-January-2023

Installation
  • put l4d2_chat_instruct.smx on /plugins/
  • to make *_prevent work required install [Any] Chat-Processor
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_instructor_chat.sp - 474 views - 9.0 KB)
__________________

Last edited by NoroHime; 01-04-2023 at 08:21.
NoroHime 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 05:36.


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