Skocz do zawartości
  • Drogi gościu!

    Tutaj możesz się zarejestrować lub zalogować:

[RSS Pluginy] !knife Troll


GLOBALELITE.pl

Rekomendowane odpowiedzi

  • GLOBALELITE.PL
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 smx.gifknife.smx (3.7 KB) sp.gifGet Plugin or Get Source (knife.sp - 604 Bytes) zip.gifknife troll.zip (4.7 KB)


Pełny artykuł: https://forums.alliedmods.net/showthread.php?t=300660&goto=newpost

Odnośnik do odpowiedzi
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający

    Brak zarejestrowanych użytkowników przeglądających tę stronę.


O GLOBALELITE.PL


Chcemy pokazać absolutnie wszystkim, że człowiek jest zdolny do rzeczy wielkich! Potrzebujemy tylko waszej pomocy. Dzięki ciężkiej pracy chcemy udowodnić, że razem możemy wszystko! Szukamy ludzi ambitnych i skorych do poświeceń, ludzi którzy są godni, aby dołączyć do globalnej elity społeczności, którą traktuje się jak drugą rodzinę!

Istniejemy od 2014 r.

Motyw zrobiony przez doc

Strona zarządzana przez: Adam Plicha

Linki społecznościowe

Gdzie można nas znaleźć?


Facebook Teamspeak Discord

Linki forumowe

Linki z różnego rodzaju podaniami


Podanie o admina Prośba o unbana Propozycja Złóż skargę

Administracja

Oni odpowiedzą na Twoje pytania ;)


×
×
  • Dodaj nową pozycję...