Raised This Month: $ Target: $400
 0% 

[REQUEST] simple plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
peter27
Junior Member
Join Date: Dec 2018
Old 12-25-2018 , 18:44   [REQUEST] simple plugin
Reply With Quote #1

Hello


I want a simple plugin that if you write !steam you get msg back in chat with like Join our steam group steamgroupname
peter27 is offline
Mr.Freeman
Senior Member
Join Date: Nov 2013
Location: Canada
Old 12-25-2018 , 20:40   Re: [REQUEST] simple plugin
Reply With Quote #2

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
__________________
Feel Free to PM me about any questions, I'll do my best to help
Mr.Freeman is offline
peter27
Junior Member
Join Date: Dec 2018
Old 12-26-2018 , 05:38   Re: [REQUEST] simple plugin
Reply With Quote #3

Thanks works great.

Quote:
Originally Posted by Mr.Freeman View Post
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 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 05:41.


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