Quote:
Originally Posted by DabberDoug
This is wonderful but how would I configure it to change the links... I'm megatard,
the smx file didnt generate a cfg, Idk how to decompile edit and recompile if that's the case I guess we are learning today.
|
copy paste this code:
PHP Code:
#include <sourcemod>
#pragma semicolon 1
#pragma newdecls required
public void OnPluginStart()
{
RegConsoleCmd("sm_discord", Cmd_Discord);
RegConsoleCmd("sm_website", Cmd_Website);
RegConsoleCmd("sm_group", Cmd_Group);
}
public Action Cmd_Discord(int client, int args)
{
PrintToChat(client, "» \x08Discord: \x04https://discord.gg/1234567");
}
public Action Cmd_Website(int client, int args)
{
PrintToChat(client, "» \x08Website: \x04http://example.com");
}
public Action Cmd_Group(int client, int args)
{
PrintToChat(client, "» \x08Group: \x04https://steamcommunity.com/id/example/");
}
here ->
https://spider.limetech.io/
now edit the text, print your Discord server link, website link and steam group link
after that you go right to compile and then download.
move your .smx file in your plugins folder.
restart the server or change the map, then you can use this commands, !discord, !website, !group in the chat.