Simple Commands Helper

For scripting examples for learning how to use AMXX.
User avatar
Archive-Poster
Posts: 1189
Gender:
United States of America

Simple Commands Helper

Post by Archive-Poster »

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.


==================
Attachments
commandReader.sma.zip
(1.05 KiB) Downloaded 7 times
commandReaderIni.ini.zip
(527 Bytes) Downloaded 6 times

Who is online

Users browsing this forum: No registered users and 0 guests