GLOBALELITE.PL GLOBALELITE.pl 83 Napisano 24 Sierpnia 2017 Share Napisano 24 Sierpnia 2017 DescriptionHey 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:GOP.S. I'm fairly new to making plugins so go easy on me. I usually only mess around with HTML.Commandssm_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 NotesI 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) Pełny artykuł: https://forums.alliedmods.net/showthread.php?t=300660&goto=newpost Odnośnik do odpowiedzi Udostępnij na innych stronach
Rekomendowane odpowiedzi