Raised This Month: $32 Target: $400
 8% 

[REQ] adminchat.sma, cmdPSay function


  
 
 
Thread Tools Display Modes
Author Message
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 01-28-2007 , 14:16   [REQ] adminchat.sma, cmdPSay function
#1

When you psay a player, the partial name you've used to identify the player is printed back at them. I think it'd be cleaner if it used the full name that the partial name matched.

It would take all of one line to go from the player seeing this:

(jack) ADMIN: do not be afraid

To the player seeing this:

(Jack of Spades) ADMIN: do not be afraid

The one line is highlighted below.

Code:
public cmdPsay(id, level, cid) {     if (!cmd_access(id, level, cid, 3))         return PLUGIN_HANDLED         new name[32]     read_argv(1, name, 31)     new priv = cmd_target(id, name, 0)     if (!priv)         return PLUGIN_HANDLED
    get_user_name(priv, name, 31);
__________________
Brad is offline
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 02-19-2007 , 02:35   Re: [REQ] adminchat.sma, cmdPSay function
#2

Revision 3335
sawce is offline
 


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 15:14.


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