Raised This Month: $ Target: $400
 0% 

adminchat modification [SOLVED]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ehha
SourceMod Donor
Join Date: Apr 2006
Location: Sibiu
Old 04-02-2009 , 06:42   Re: adminchat modification
Reply With Quote #5

Thanks for the info.
I want to make a shortcut for amx_chat in the normal chat (say command).
This shortcut will use '@' so:

Code:
public chat123(id, level, cid) { if( (sayd[0]==@) && (get_user_flags(id) & ADMIN_CHAT) ) display message without @ for all players with admin_chat flag else display the full message (with @) in normal say (like this plugin did not exists) }

Now, the way i tried it blocks normal chat for non-admin users, after i fixed that, messages (with @ in front) from non-admin users don't display at all & triggers the logs (this should not happen for non-admin users).

LATER EDIT: I managed to do it myself with your help on the return plugin_handeld, thanks again.

Last edited by ehha; 04-04-2009 at 08:29.
ehha 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 09:00.


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