AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   (OLD) Bug Reports (https://forums.alliedmods.net/forumdisplay.php?f=24)
-   -   [REQ] adminchat.sma, cmdPSay function (https://forums.alliedmods.net/showthread.php?t=50530)

Brad 01-28-2007 14:16

[REQ] adminchat.sma, cmdPSay function
 
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);

sawce 02-19-2007 02:35

Re: [REQ] adminchat.sma, cmdPSay function
 
Revision 3335


All times are GMT -4. The time now is 18:31.

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