Raised This Month: $12 Target: $400
 3% 

[CSGO] Plugin that displays message to all with a players username


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RoidRoad
Junior Member
Join Date: Oct 2019
Old 08-09-2020 , 08:02   [CSGO] Plugin that displays message to all with a players username
Reply With Quote #1

Plugin request where, if a player enters !mg (or sm_mg), it'll print to all (and also in multi-color/lightred) a message with that players username alongside a given statement.

For example, Player [USERNAME] types !mg = lightred-colored message (visible to all in-game) appears in chat that says "[USERNAME] is a standard player" etc.
RoidRoad is offline
ladaladik
BANNED
Join Date: Nov 2019
Old 08-09-2020 , 09:26   Re: [CSGO] Plugin that displays message to all with a players username
Reply With Quote #2

Here you go, i hope thats what you asked for.

if you need any other plugins you can dm me on discord or steam.
Attached Files
File Type: sp Get Plugin or Get Source (message.sp - 68 views - 508 Bytes)

Last edited by ladaladik; 08-09-2020 at 09:26.
ladaladik is offline
RoidRoad
Junior Member
Join Date: Oct 2019
Old 08-09-2020 , 10:26   Re: [CSGO] Plugin that displays message to all with a players username
Reply With Quote #3

Quote:
Originally Posted by ladaladik View Post
Here you go, i hope thats what you asked for.

if you need any other plugins you can dm me on discord or steam.
It compiles successfully but once I enter it into the console, it says that "sm_mg" is an unknown command.
RoidRoad is offline
ladaladik
BANNED
Join Date: Nov 2019
Old 08-09-2020 , 11:18   Re: [CSGO] Plugin that displays message to all with a players username
Reply With Quote #4

mb, forgot to add something compile this :

Code:
#pragma semicolon 1

#define DEBUG

#define PLUGIN_AUTHOR ""
#define PLUGIN_VERSION "0.00"

#include <sourcemod>
#include <sdktools>

#pragma newdecls required

public Plugin myinfo = 
{
	name = "", 
	author = PLUGIN_AUTHOR, 
	description = "", 
	version = PLUGIN_VERSION, 
	url = ""
};

public void OnPluginStart()
{
	RegConsoleCmd("sm_mg", command_mg);
}
public Action command_mg(int client, int args)
{
	PrintToChatAll("%N \x0Fis a standart player", client);
	return Plugin_Handled;
}
ladaladik is offline
Reply


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 08:42.


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