Thread: [ANY] SM Status
View Single Post
MasterOfTheXP
Veteran Member
Join Date: Aug 2011
Location: Cloudbank
Old 07-09-2012 , 17:29   Re: [ANY] SM Status
Reply With Quote #10

PHP Code:
PrintToChat(client"\x04[SM] See console for output!"); 
-->
PHP Code:
if (GetCmdReplySource() == SM_REPLY_TO_CHATPrintToChat(client"\x04[SM] %t""See console for output"); 
Combine that with LoadTranslations("common.phrases"); in OnPluginStart, and bam, this plugin supports all languages that SM does.

Could use more stuff too, like
PHP Code:
new ping RoundFloat(GetClientAvgLatency(iNetFlow_Outgoing) * 1024);
new 
connectionTime RoundFloat(GetClientTime(i)); 
Could also show their IP too, as others have suggested...but perhaps only if an admin has enabled a cvar such as "sm_status_ip" or something.
__________________
Plugins / My Steam / TF2 Sandbox (plugin beta testing!)

Last edited by MasterOfTheXP; 07-09-2012 at 17:29.
MasterOfTheXP is offline