AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Code Snippets/Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=83)
-   -   Simple Commands Helper (https://forums.alliedmods.net/showthread.php?t=313703)

EFFx 01-19-2019 08:09

Simple Commands Helper
 
2 Attachment(s)
Note: I did not see anything like that here, I might be blind too (i'm so tired right now), so i'm sorry if I did that mistake.

Description:
I made that plugin some days ago and decided to post it here
It's just a simple plugin that reads an ini file with registered commands. It's useful to 5x5 matches which owners just wants simple commands instead of all these colorful messages on auto-pugs out there.

How to register:

; If you want to register a command to read a .cfg file, do that:
; "COMMAND NAME" "1" "foldername/configfile.cfg" (NOTE THAT ALL FILES IS ALREADY SENT TO 'configs' folder)
; ---------------
; If you want to register a simple command to change a map, do that:
; ".de_train" "0" "changelevel de_train"
; ---------------


So, in execution, if I want to register a simple command that restart the server:

Example 1: ".restart" "1" "sv_restart 1"
- With this, saying .restart on the chat you'll be able to reset the game.

Example 2: ".warmup" "0" "matchconfigs/warmup.cg"
- With this, saying .warmup on the chat you'll be able to execute a config file.


==================

HamletEagle 01-19-2019 09:59

Re: Simple Commands Helper
 
So, why is it here and not in new plugins?

EFFx 01-19-2019 10:36

Re: Simple Commands Helper
 
I thought it wasn't enough to be on New Plugin Submissions since it's a simple code that reads an .ini file to help owners.


All times are GMT -4. The time now is 13:53.

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