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

Admin Private Chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
serjaka
Senior Member
Join Date: Oct 2011
Old 11-18-2013 , 14:50   Admin Private Chat
Reply With Quote #1

Hello Allied Modders , help me please to do colored adminchat ! Thx guys! i need to do private chat on team_say @ !!!
PHP Code:
public cmdSayAdmin(id)
{
    new 
said[2]
    
read_argv(1said1)
    
    if (
said[0] != '@')
        return 
PLUGIN_CONTINUE
    
    
new message[192], name[32], authid[32], userid
    
    read_args
(message191)
    
remove_quotes(message)
    
get_user_authid(idauthid31)
    
get_user_name(idname31)
    
userid get_user_userid(id)
    
    
log_amx("Chat: ^"%s<%d><%s><>^" chat ^"%s^""nameuseridauthidmessage[1])
    
log_message("^"%s<%d><%s><>^" triggered ^"amx_chat^" (text ^"%s^")"nameuseridauthidmessage[1])
    
    if (
is_user_admin(id))
        
ColorChat(0RED"(%L) ^x04%s ^x01:  %s"id"ADMIN"namemessage[1])
    else
        
ColorChat(0RED"(%L) ^x04%s ^x01:  %s"id"PLAYER"namemessage[1])

    
    return 
PLUGIN_HANDLED


Last edited by serjaka; 11-19-2013 at 01:39.
serjaka is offline
Old 11-19-2013, 01:08
serjaka
This message has been deleted by ConnorMcLeod. Reason: Rule broken: https://forums.alliedmods.net/misc.php?do=showrules
Old 11-19-2013, 05:53
LordOfNothing
This message has been deleted by LordOfNothing. Reason: wrong
serjaka
Senior Member
Join Date: Oct 2011
Old 11-19-2013 , 08:40   Re: Admin Private Chat
Reply With Quote #2

dont work
serjaka is offline
LordOfNothing
BANNED
Join Date: Jul 2013
Old 11-19-2013 , 10:03   Re: Admin Private Chat
Reply With Quote #3

Please post full code !
LordOfNothing is offline
serjaka
Senior Member
Join Date: Oct 2011
Old 11-19-2013 , 10:27   Re: Admin Private Chat
Reply With Quote #4

Its standar adminchat from amxx help me please
serjaka is offline
devWaleed
Member
Join Date: Apr 2013
Location: Karachi, Pakistan
Old 11-19-2013 , 11:20   Re: Admin Private Chat
Reply With Quote #5

This was my plugin, a small modification to add colour in admin chat, but instead of @ it checks for ! and prints in chat: https://forums.alliedmods.net/showthread.php?t=229992

I found later that there is something like say_team @ that works the same, just no colour in it.

Use it as you want.
devWaleed is offline
Send a message via Skype™ to devWaleed
serjaka
Senior Member
Join Date: Oct 2011
Old 11-19-2013 , 14:27   Re: Admin Private Chat
Reply With Quote #6

SOLVED!
serjaka is offline
Reply



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 03:31.


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