Raised This Month: $68 Target: $400

Command Source Tag

Post New Thread Reply   
Thread Tools Display Modes
Author Message
AlliedModders Donor
Join Date: Aug 2014
Old 07-06-2019 , 18:22   Command Source Tag
Reply With Quote #1

This is a little line of code that you can add when sending the usage of a command to the player. It checks whether the command was sent from console or chat, and adds the correct tag accordingly.

GetCmdReplySource() == SM_REPLY_TO_CONSOLE ? "sm_" : "!"
You would add it in here:
ReplyToCommand(iClient, "Usage: %scolor <color>", GetCmdReplySource() == SM_REPLY_TO_CONSOLE ? "sm_" : "!");
Makes it more aesthetically pleasing in my opinion.
xfusionlockx 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 18:25.

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