AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [CSGO] Plugin that displays message to all with a players username (https://forums.alliedmods.net/showthread.php?t=326627)

RoidRoad 08-09-2020 08:02

[CSGO] Plugin that displays message to all with a players username
 
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.

ladaladik 08-09-2020 09:26

Re: [CSGO] Plugin that displays message to all with a players username
 
1 Attachment(s)
Here you go, i hope thats what you asked for.

if you need any other plugins you can dm me on discord or steam.

RoidRoad 08-09-2020 10:26

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

Originally Posted by ladaladik (Post 2713630)
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.

ladaladik 08-09-2020 11:18

Re: [CSGO] Plugin that displays message to all with a players username
 
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;
}



All times are GMT -4. The time now is 13:10.

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