RSSy MYGO.pl Opublikowano Sierpień 24, 2017 o 22:50 RSSy Udostępnij Opublikowano Sierpień 24, 2017 o 22:50 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 Drag knife.sp into your scripting folder 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 client, int 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 knife.smx (3.7 KB) Get Plugin or Get Source (knife.sp - 604 Bytes) knife troll.zip (4.7 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi
Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto
Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.
Zarejestruj nowe konto
Załóż nowe konto. To bardzo proste!
Zarejestruj sięZaloguj się
Posiadasz już konto? Zaloguj się poniżej.
Zaloguj się