Description:
With this plugin you can send a message from "[ADMIN]", its simpel but useful sometimes!
Installation:
1. Drag admin_talk.smx into addons/sourcemod/plugins
2. Chage map or restart server
3. Type "/at <message>" to send a message
Commands:
sm_at <message>
Pictures:
http://prntscr.com/kksq2b
Quote:
Can i change "[ADMIN]:"?
Yeah you could do it, just change PrintToChatAll (" \x07[ADMIN]: \x09%s", Message); to whatever you like!
|
Code:
PHP Code:
#pragma semicolon 1
#define DEBUG
#define PLUGIN_AUTHOR "Trum | Trum#7913"
#define PLUGIN_VERSION "1.00"
#include <sourcemod>
#include <sdktools>
#pragma newdecls required
public Plugin myinfo = {
name = "[CSGO] Admin Talk",
author = "Trum | Trum#7913",
description = "Custom chat message for admins",
url = "http://discord.me/trum",
};
public void OnPluginStart()
{
RegAdminCmd("sm_at", Command_AdminMessage, ADMFLAG_SLAY, "The admin talk command");
}
public Action Command_AdminMessage(int client, int args)
{
if(args < 1)
{
PrintToConsole(client, "Usage: sm_at <message>");
return Plugin_Handled;
}
char Message[32];
GetCmdArgString(Message, sizeof(Message));
PrintToChatAll (" \x07[ADMIN]: \x09%s", Message);
return Plugin_Handled;
}
If you have any questions or trouble with the plugin you can add me or discord or join my discord!
Username: Trum#7913
Discord server:
http://discord.me/trum