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

[Plugin Request] Custom command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Apnix
Junior Member
Join Date: Apr 2020
Old 04-15-2020 , 12:55   [Plugin Request] Custom command
Reply With Quote #1

G'day.

I have absolutely no clue about coding any plugins.
I couldn't find anything about this subject but history shows I'm bad at googling things.
I have a simple request where if someone [any user] types !discord or !dc they will get a chat message that's like this
Code:
{default}[{red}Discord{default}] : {red} you can find our discord server here: {default} [the link]
If someone knows how to do this or has a forum post about this please reply to this thread or message me on discord
Apnix#9999. Discord will be the easiest but its whatever you prefer

Greetings
Apnix
Apnix is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-15-2020 , 13:34   Re: [Plugin Request] Custom command
Reply With Quote #2

You didn't mention which game.

I assume csgo.
PHP Code:
public void OnClientSayCommand_Post(int client, const char[] command, const char[] sArgs)
{
    if(
StrEqual(sArgs"!discord") || StrEqual(sArgs"!dc"))
    {
        
PrintToChatAll(" \x01[\x02Discord\x01] : \x02 you can find our discord server here: \x01 [Apnix#9999]");
    }

__________________
Do not Private Message @me

Last edited by Bacardi; 04-15-2020 at 13:34.
Bacardi is offline
Apnix
Junior Member
Join Date: Apr 2020
Old 04-15-2020 , 13:53   Re: [Plugin Request] Custom command
Reply With Quote #3

Quote:
Originally Posted by Bacardi View Post
You didn't mention which game.

I assume csgo.
PHP Code:
public void OnClientSayCommand_Post(int client, const char[] command, const char[] sArgs)
{
    if(
StrEqual(sArgs"!discord") || StrEqual(sArgs"!dc"))
    {
        
PrintToChatAll(" \x01[\x02Discord\x01] : \x02 you can find our discord server here: \x01 [Apnix#9999]");
    }

I'm guessing that this is a .smx plugin or no? As stated earlier I don't know shit about plugins
Apnix is offline
Apnix
Junior Member
Join Date: Apr 2020
Old 04-15-2020 , 14:02   Re: [Plugin Request] Custom command
Reply With Quote #4

NVM got it working thnx alot buddy <3
Apnix is offline
Reply



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 22:45.


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