AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [REQUEST] simple plugin (https://forums.alliedmods.net/showthread.php?t=313032)

peter27 12-25-2018 18:44

[REQUEST] simple plugin
 
Hello


I want a simple plugin that if you write !steam you get msg back in chat with like Join our steam group steamgroupname

Mr.Freeman 12-25-2018 20:40

Re: [REQUEST] simple plugin
 
This should be a simple version of what you are looking for.

PHP Code:


#include <sourcemod>

#define CHAT_TAG "[STEAM GROUP]"
#define STEAMGROUP_URL "https://steamgrouplink.com"

public void OnPluginStart() {
    
RegConsoleCmd("sm_steam"Command_SteamGroup);
}

public 
Action Command_SteamGroup(int clientint args) {
    
ReplyToCommand(client"%s Join our steam group at --> %s"CHAT_TAGSTEAMGROUP_URL);


Happy Holidays,
Mr. Freeman

peter27 12-26-2018 05:38

Re: [REQUEST] simple plugin
 
Thanks works great.

Quote:

Originally Posted by Mr.Freeman (Post 2630988)
This should be a simple version of what you are looking for.

PHP Code:


#include <sourcemod>

#define CHAT_TAG "[STEAM GROUP]"
#define STEAMGROUP_URL "https://steamgrouplink.com"

public void OnPluginStart() {
    
RegConsoleCmd("sm_steam"Command_SteamGroup);
}

public 
Action Command_SteamGroup(int clientint args) {
    
ReplyToCommand(client"%s Join our steam group at --> %s"CHAT_TAGSTEAMGROUP_URL);


Happy Holidays,
Mr. Freeman



All times are GMT -4. The time now is 05:39.

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