Raised This Month: $32 Target: $400
 8% 

!knife Troll


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose       
Aaronpierce
Junior Member
Join Date: Aug 2017
Old 08-20-2017 , 19:45   !knife Troll
Reply With Quote #1

Description

Hey there. I run about 3 servers and constantly have people coming in and typing !knife. It annoys me because it's not in the title of my server they just assume it's there and don't realize Valve's set rules. In response to all this, I made a simple chat message plugin when people type !knife it says the phrase:

We do not have this plugin because it's against Valve's TOS. We are children of Jesus.


This plugin is specifically for CS:GO

P.S. I'm fairly new to making plugins so go easy on me. I usually only mess around with HTML.

Commands
  • sm_knife
Installation
  1. Drag knife.sp into your scripting folder
  2. Drag knife.smx into your plugins folder

Code

PHP Code:
#pragma semicolon 1 
#pragma newdecls required 

#include <sourcemod> 

 
public Plugin myinfo =
{
    
name "My Fifth Plugin",
    
author "Deez Newtons (Cure Aaron)",
    
description "Basically a message plugin",
    
version "1.0",
    
url ""
};

public 
void OnPluginStart() 

    
RegConsoleCmd("sm_knife"Command_Print); 


public 
Action Command_Print(int clientint args
{
    if (
IsClientInGame(client))
    {
        
PrintToChat(client"We do not have this plugin because it's against Valve's TOS. We are children of Jesus."); 
    }
    return 
Plugin_Handled

Extra Notes
I will probably be adding a sound to this and add !gloves and !ws to it as well. Currently, !ws and !gloves plugins I've just recently made after this one, will eventually be merged into this one.
If there are any bugs I will do my best to figure out how to fix them but keep in mind I am new.


Thanks for reading and hopefully this ends some of your frustrations too!
Attached Files
File Type: sp Get Plugin or Get Source (knife.sp - 342 views - 604 Bytes)
File Type: smx knife.smx (3.7 KB, 156 views)
File Type: zip knife troll.zip (4.7 KB, 127 views)

Last edited by Aaronpierce; 08-21-2017 at 05:09.
Aaronpierce is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 08-21-2017 , 06:57   Re: !knife Troll
Reply With Quote #2

Great job except this is not the right forum for source mod plugins
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-21-2017 , 07:42   Re: !knife Troll
Reply With Quote #3

Quote:
Originally Posted by Aaronpierce View Post
P.S. I'm fairly new to making plugins so go easy on me. I usually only mess around with HTML
Well, now you messing with AMXX too
__________________
edon1337 is offline
Aaronpierce
Junior Member
Join Date: Aug 2017
Old 08-21-2017 , 18:33   Re: !knife Troll
Reply With Quote #4

Quote:
Originally Posted by edon1337 View Post
Well, now you messing with AMXX too
It's always good to step out of comfort zones so I decided to start with this.

Quote:
Originally Posted by Natsheh View Post
Great job except this is not the right forum for source mod plugins
Well crap. I'm sorry, I've never posted on here before. Could you possibly direct me to the correct area?
Aaronpierce is offline
Rohanlogs
Senior Member
Join Date: Nov 2015
Old 08-24-2017 , 12:42   Re: !knife Troll
Reply With Quote #5

Nice lol. So I wasn't the only one who thinks this is annoying. I have already made this to my own csgo server as well.

Anyway here's the right thread:
https://forums.alliedmods.net/forumdisplay.php?f=108

You could also block the text from appearing to server chat when someone writes it by hooking say commands with AddCommandListener(OnSay, "say") / say_team, and return plugin handled if the args are equal to !knife or something.
__________________
Rohanlogs is offline
DevilBoy.eXe
Member
Join Date: Mar 2017
Location: Romania
Old 08-24-2017 , 15:30   Re: !knife Troll
Reply With Quote #6

There is AMXMODX not Source Mod btw nice mod but wrong section
__________________

DevilBoy.eXe is offline
Send a message via Yahoo to DevilBoy.eXe Send a message via Skype™ to DevilBoy.eXe
Rohanlogs
Senior Member
Join Date: Nov 2015
Old 08-24-2017 , 15:44   Re: !knife Troll
Reply With Quote #7

Quote:
Originally Posted by DevilBoy.eXe View Post
There is AMXMODX not Source Mod btw nice mod but wrong section
Have you even read any of the previous replies?
He is aware that this is the wrong section, I even directed him to the right one.
__________________
Rohanlogs is offline
Aaronpierce
Junior Member
Join Date: Aug 2017
Old 08-24-2017 , 18:47   Re: !knife Troll
Reply With Quote #8

Quote:
Originally Posted by DevilBoy.eXe View Post
There is AMXMODX not Source Mod btw nice mod but wrong section
Thanks!


Quote:
Originally Posted by Rohanlogs View Post
Have you even read any of the previous replies?
He is aware that this is the wrong section, I even directed him to the right one.
It's okay, thanks for directing me by the way. Is it possible to get this post moved there orrr...?
Aaronpierce is offline
heroicpower7613
Member
Join Date: Nov 2016
Old 08-25-2017 , 04:21   Re: !knife Troll
Reply With Quote #9

you have to wait till forum moderator / admin sees this, or PM one
but i can see that its already there nvm

Last edited by heroicpower7613; 08-25-2017 at 04:22.
heroicpower7613 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 00:24.


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