Raised This Month: $ Target: $400
 0% 

Chat colour problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
jonatat
Senior Member
Join Date: Dec 2017
Old 07-01-2018 , 08:15   Chat colour problem
Reply With Quote #1

I have a simple plugin:

PHP Code:
/* Plugin generated by AMXX-Studio */ 

#include <amxmodx> 
#include <amxmisc> 
#include <cstrike> 
#include <engine> 

public plugin_init() { 
register_plugin(PLUGINVERSIONAUTHOR

register_clcmd "say" "hook_say" )


public 
hook_say id 

if ( ! 
is_user_admin id ) ) 
return 
PLUGIN_CONTINUE 

new someStr[128
read_argv someStr 127 


admin_chatall id someStr 

return 
PLUGIN_HANDLED 


stock admin_chatall (const id, const input[], any:...) 

static 
szMsg[768], Name[36
get_user_name id Name 35

vformat(szMsg768input3

if( ( 
get_user_flags(id) & ADMIN_RCON ) && ( get_user_flags(id) & ADMIN_IMMUNITY ) ) 
format szMsg768"^04[OWNER]^x03 %s^x01: %s"Name szMsg 

else if( ( 
get_user_flags(id) & ADMIN_BAN ) && ( get_user_flags(id) & ADMIN_MAP ) ) 
format szMsg768"^x04[ADMIN]^x03 %s^x01: %s"Name szMsg 

for( new 
player player 33 player ++ ) 

if ( ! 
is_user_connected player ) ) continue 

message_begin(MSG_ONEget_user_msgid("SayText"), {0,0,0}, player
write_byte(player
write_string(szMsg
message_end() 


return 
PLUGIN_HANDLED 

But its not good showing TEAM COLOUR and no *DEAD* tag..

Any help guys?

Last edited by jonatat; 07-01-2018 at 08:16.
jonatat 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 12:52.


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