Raised This Month: $ Target: $400
 0% 

small edit help pleeze


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Riddick51
BANNED
Join Date: Jul 2005
Location: Lincoln, Nebr US
Old 08-24-2005 , 19:01   small edit help pleeze
Reply With Quote #1

here is the change i want.
the following code section executes like this:

Given:
Playername: Gumby
Authority: Admin all acess

when Admin player "Gumby" executes the following command in the console:
amx_say guns [Enter]

the following is written to each players in the servers screen:
(ALL) Gumby: guns [Enter]

what i want is this:
(ALL): guns [Enter]

Code:
[1]public cmdSay(id,level,cid) { [2]  if (!cmd_access(id,level,cid,2)) [3]    return PLUGIN_HANDLED [4]  new message[192],name[32],authid[32],userid [5]  read_args(message,191) [6]  remove_quotes(message) [7]  get_user_authid(id,authid,31) [8]  get_user_name(id,name,31) [9]  userid = get_user_userid(id) [10]  client_print(0,print_chat,"%L",LANG_PLAYER, "PRINT_ALL",name,message) [11]  console_print(id,"%L",LANG_PLAYER,"PRINT_ALL",name,message) [12]  log_amx("Chat: ^"%s<%d><%s><>^" say ^"%s^"", name,userid,authid,message) [13]log_message("^"%s<%d><%s><>^" triggered ^"amx_say^" (text ^"%s^")",name,userid,authid,message) [14]  return PLUGIN_HANDLED [15]}
Riddick51 is offline
Send a message via AIM to Riddick51 Send a message via MSN to Riddick51 Send a message via Yahoo to Riddick51
Zenith77
Veteran Member
Join Date: Aug 2005
Old 08-24-2005 , 19:03  
Reply With Quote #2

Code:
[1]public cmdSay(id,level,cid) { [2]  if (!cmd_access(id,level,cid,2)) [3]    return PLUGIN_HANDLED [4]  new message[192],name[32],authid[32],userid [5]  read_args(message,191) [6]  remove_quotes(message) [7]  get_user_authid(id,authid,31) [8]  get_user_name(id,name,31) [9]  userid = get_user_userid(id) [10]  client_print(0,print_chat,"%L",LANG_PLAYER, "PRINT_ALL",message) [11]  console_print(id,"%L",LANG_PLAYER,"PRINT_ALL",message) [12]  log_amx("Chat: ^"%s<%d><%s><>^" say ^"%s^"", name,userid,authid,message) [13]log_message("^"%s<%d><%s><>^" triggered ^"amx_say^" (text ^"%s^")",name,userid,authid,message) [14]  return PLUGIN_HANDLED [15]}
if you could...
karma plz..as i am in need of it
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Riddick51
BANNED
Join Date: Jul 2005
Location: Lincoln, Nebr US
Old 08-24-2005 , 19:23  
Reply With Quote #3

thx man! u got +1 karma from me
Riddick51 is offline
Send a message via AIM to Riddick51 Send a message via MSN to Riddick51 Send a message via Yahoo to Riddick51
Zenith77
Veteran Member
Join Date: Aug 2005
Old 08-24-2005 , 19:29  
Reply With Quote #4

yay karma
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Riddick51
BANNED
Join Date: Jul 2005
Location: Lincoln, Nebr US
Old 08-24-2005 , 21:03  
Reply With Quote #5

gah!

hrm, well small glitch, nothing prints on clients screen. anything else u can think of?

Riddick51 is offline
Send a message via AIM to Riddick51 Send a message via MSN to Riddick51 Send a message via Yahoo to Riddick51
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-24-2005 , 23:27  
Reply With Quote #6

Open up addons/amxmodx/data/lang/adminchat.txt and fine this line:

"PRINT_ALL = (ALL) %s : %s"
Change it to:
"PRINT_ALL = (ALL) %s"

Then change these lines:
Code:
[10]  client_print(0,print_chat,"%L",LANG_PLAYER, "PRINT_ALL",name,message) [11]  console_print(id,"%L",LANG_PLAYER,"PRINT_ALL",name,message)
to:
Code:
[10]  client_print(0,print_chat,"%L",LANG_PLAYER, "PRINT_ALL",message) [11]  console_print(id,"%L",LANG_PLAYER,"PRINT_ALL",message)
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Riddick51
BANNED
Join Date: Jul 2005
Location: Lincoln, Nebr US
Old 08-26-2005 , 14:22  
Reply With Quote #7

thanks for taking a shot at this guys, i decided to keep my name visible to players
Riddick51 is offline
Send a message via AIM to Riddick51 Send a message via MSN to Riddick51 Send a message via Yahoo to Riddick51
DataMatrix
Senior Member
Join Date: Aug 2005
Location: UK, Liverpool
Old 08-26-2005 , 14:26  
Reply With Quote #8

Can't you do this in amxx.cfg?
DataMatrix is offline
Send a message via MSN to DataMatrix
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 14:23.


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