Raised This Month: $ Target: $400
 0% 

Solved [CS GO]Admin Chat doesn't display nickname


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 01-28-2023 , 12:01   Re: [CS GO]Admin Chat doesn't display nickname
Reply With Quote #2

PHP Code:
#include <sourcemod>
#pragma semicolon 1
#pragma newdecls required

public void OnPluginStart()
{
    
RegAdminCmd("sm_at"Command_AdminMessageADMFLAG_GENERIC"The admin talk command");
}

Action Command_AdminMessage(int clientint args)
{
    if(
args 1)
    {
        
ReplyToCommand(client"[SM] Usage: sm_at <message>");
        return 
Plugin_Handled;
    }
    
    
char sMessage[512];
    
GetCmdArgString(sMessagesizeof(sMessage));
    
    
PrintToChatAll ("\x07[ADMIN] \x10%N: \x09%s"clientsMessage);
    return 
Plugin_Handled;

__________________

Last edited by alasfourom; 01-28-2023 at 12:02.
alasfourom is offline
 



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 03:25.


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