Kmodv057
No description available.
README
IMPORTANT NOTE:
dont run abusive commands, like !revive, !heal, !ammo etc...
on your server, or no one will want to play there!
i suggest for all command-makers to go by the ETpub line that says: no abusive commands.
to write your own commands:
1) name your file with the name of your command, and the suffix .lua
example: for the command !burn
file name: burn.lua
2) write your command/script in lua.
you got 2 options here:
write a "normal" lua script, that can use any defind globals and the params table (more of this later)
or,
write your code inside a
function dolua(params)
your_code_here
return 1
end
your command/function should *always* return 1.
use return 0 only when your command does not output anything.
when a !command is called, it executes the dolua(params) function inside the command.lua file
if you wrote your code "normally" (without the function dolua(params) declaration) then this call is more "expansive" for the computer
as now your code is loaded as string, the function declaration is added to it, and only then it compiles and runs.
the call to this command will be less expansive if you * DO * wrap your code with this simple function declartion
anyway, you can look at the commands in this folder, you will find that most of them
has the fucntion declartion, but i added some without, just for your conviniance.
to test it, just delete the function declaration from one of the commands (and its corrisponding "end" at the bottom of the file)
and run it, you will see it works this way too.
params is a table, containing:
1) pramars[index] = argument
prarams[index] is the the argument provided by the player, for example !kick necro go away
params[1] = "necro"
params[2] = "go"
params[3] = "away"
params["slot"] = the calling player slot number.
##### isnt used anymore ################
params["broadcast"] = who to send it to. if the command was silent, it holds the calling player's slot
if the command was public, then the return is also public, in this case params["broadcast"] = -1 (everyone)
########################################
note: if command is rcon'ed (rcon <pass> !command) then params["slot"] == "console"
params["say"] = were the command return will be printed.
i used the "b 8" (it is set at the UserClientCommand function).
printing:
to send something, use the following syntax:
normal !command return printing
et.trap_SendServerCommand(params["broadcast"], string.format('%s \"%s"',params["say"]," type your message here "))
you can substitute params["say"] with any other printing-string from the etpro-lua-API
to send the message to all connected clients (even if was called silently, good for !ban, !kick commands, where all clients need to be notifed)
et.trap_SendServerCommand( -1 , string.format('%s \"%s"',params["say"]," type your message here "))
print to console:
et.G_Print(" your message here ")
Useable Globals:
global_admin_table[GUID] = level
global_level_table
global_level_table[i]["greeting"] = message
global_level_table[i]["sound"] = path
global_level_table[i]["name"] = name
global_level_table[i]["commands"][command_index] = command
global_level_table[i]["flags"] = flags string (use level_flag(level, flag) to check if this level has a certain flag)
( to check slot against a flag use level_flag(AdminUserLevel(slot), "flag") )
( note: you may define any new flags you want in levels.dat, and check for them in your commands )
( note2: if you have a problem with the level_flag function, make sure the level you pass to it is a number, and not a string! )
global_players_table[slot]["whatever"] = value
global_players_table[slot]["guid"] = guid
global_players_table[slot]["name"] = name
global_players_table[slot]["team"] = team
global_players_table[slot]["guid_age"] = guid_age (only if retrived seccessfuly)
global_players_table[slot]["inactive"] = timestamp when the client *was* active ( measered in MS, devide by 1000 to have seconds )
functions:
ParseString(string)
getPlayernameToId(name)
part2id(client)
nameforID(name)
randomClientFinder()
name2IDPM(name)
crop_text(text,len)
DeleteFileLine(filename, del)
LoadFileToTable(filename)
chop(text)
level_flag(level, flag)
levelcommand(level,command)
AdminUserLevel(PlayerID)
disablewars() -- see panzerwar
loadMutes()
loadspreerecord() -- loads the spree record
loadmapspreerecord() -- loads the map spree records
loadlevels() -- loads the levels from the levels.dat file
loadbanners() -- loads the banners from the banners.cfg file
loadAdmins() -- loads the admins from the shrubbot.dat file
setMute(PlayerID, muteTime)
MuteCheck(PlayerID)
killingspreereset()
dspreereset()
flakreset()
spreerecord_reset()
setAdmin(PlayerID, level)
release notes:
this release still contains alot of the global veriables used in kmod 1.3
so be carefull with the veriable names you choose (if they are global)
remember to share custom commands with us (or if you need any help):
http://www.usef-et.org
Virus Scan
Pending — Not yet scanned
File Contents
128 files
0.3 MB uncompressed
.lua (104)
.dat (7)
.cfg (5)
.txt (3)
| File | Size |
|---|---|
| kmod+/ | |
| kmod+/banlist.dat | |
| kmod+/banners.cfg | |
| kmod+/commands/ | |
| kmod+/commands/admindel.lua | 2K |
| kmod+/commands/admintest.lua | 1K |
| kmod+/commands/ban.lua | 6K |
| kmod+/commands/banmask.lua | 2K |
| kmod+/commands/beer.lua | 2B |
| kmod+/commands/bit.lua | 147B |
| kmod+/commands/burn.lua | 3K |
| kmod+/commands/bye.lua | 2B |
| kmod+/commands/camper.lua | 2B |
| kmod+/commands/cancelvote.lua | 319B |
| kmod+/commands/check.lua | 103B |
| kmod+/commands/coffee.lua | 2B |
| kmod+/commands/coke.lua | 2B |
| kmod+/commands/cookie.lua | 2B |
| kmod+/commands/crybaby.lua | 2B |
| kmod+/commands/dark.lua | 2B |
| kmod+/commands/date.lua | 426B |
| kmod+/commands/destroy.lua | 2B |
| kmod+/commands/exec/ | |
| kmod+/commands/exec/nextmap.cfg | 36B |
| kmod+/commands/finger.lua | 4K |
| kmod+/commands/flipcoin.lua | 2B |
| kmod+/commands/fortune.lua | 2B |
| kmod+/commands/forum.lua | 255B |
| kmod+/commands/gib.lua | 2K |
| kmod+/commands/goback.lua | 2K |
| kmod+/commands/goto.lua | 3K |
| kmod+/commands/ha.lua | 2B |
| kmod+/commands/haha.lua | 2B |
| kmod+/commands/haxed.lua | 2B |
| kmod+/commands/headshot.lua | 2B |
| kmod+/commands/help.lua | 1K |
| kmod+/commands/hi.lua | 2B |
| kmod+/commands/hide.lua | 12K |
| kmod+/commands/id.lua | 126B |
| kmod+/commands/iwant.lua | 4K |
| kmod+/commands/kick.lua | 2K |
| kmod+/commands/ladder1.lua | 10K |
| kmod+/commands/listadmins.lua | 1K |
| kmod+/commands/listplayers.lua | 4K |
| kmod+/commands/lock.lua | 2K |
| kmod+/commands/makeshout.lua | 4K |
| kmod+/commands/map.lua | 546B |
| kmod+/commands/mute.lua | 5K |
| kmod+/commands/news.lua | 285B |
| kmod+/commands/nextmap.lua | 611B |
| kmod+/commands/nil.lua | 171B |
| kmod+/commands/owned.lua | 2B |
| kmod+/commands/pants.lua | 2B |
| kmod+/commands/panzerwar.lua | 11K |
| kmod+/commands/party.lua | 2B |
| kmod+/commands/passvote.lua | 331B |
| kmod+/commands/pfstinkt.lua | 2B |
| kmod+/commands/pizza.lua | 2B |
| kmod+/commands/putteam.lua | 4K |
| kmod+/commands/rage.lua | 2B |
| kmod+/commands/readconfig.lua | 433B |
| kmod+/commands/readme.txt | 5K |
| kmod+/commands/ref.lua | 3K |
| kmod+/commands/removeshout.lua | 4K |
| kmod+/commands/rename.lua | 1K |
| kmod+/commands/reset.lua | 431B |
| kmod+/commands/restart.lua | 321B |
| kmod+/commands/roster.lua | 2K |
| kmod+/commands/seeker.lua | 167B |
| kmod+/commands/setlevel.lua | 3K |
| kmod+/commands/setseeker.lua | 2K |
| kmod+/commands/showadmins.lua | 615B |
| kmod+/commands/showbans.lua | 6K |
| kmod+/commands/showmask.lua | 1K |
| kmod+/commands/shuffle.lua | 393B |
| kmod+/commands/slap.lua | 2K |
| kmod+/commands/sound.lua | 104B |
| kmod+/commands/spec999.lua | 700B |
| kmod+/commands/spree.lua | 473B |
| kmod+/commands/spree_reset.lua | 724B |
| kmod+/commands/start.lua | 370B |
| kmod+/commands/stats.lua | 2B |
| kmod+/commands/swap.lua | 364B |
| kmod+/commands/tent.lua | 2B |
| kmod+/commands/test.lua | 2K |
| kmod+/commands/throw.lua | 2K |
| kmod+/commands/time.lua | 340B |
| kmod+/commands/tk_index.lua | 589B |
| kmod+/commands/unban.lua | 3K |
| kmod+/commands/unbanmask.lua | 1K |
| kmod+/commands/unlock.lua | 2K |
| kmod+/commands/unmute.lua | 6K |
| kmod+/commands/unref.lua | 3K |
| kmod+/commands/uptime.lua | 2B |
| kmod+/commands/vent.lua | 305B |
| kmod+/commands/vsp.lua | 2B |
| kmod+/commands/weed.lua | 2B |
| kmod+/commands/whoami.lua | 2B |
| kmod+/commands/wtf.lua | 2B |
| kmod+/commands/xpwhore.lua | 2B |
| kmod+/core/ | |
| kmod+/core/config.lua | 4K |
| kmod+/core/etconst.lua | 3K |
| kmod+/core/etpro.lua | 39K |
| kmod+/core/et_ClientCommand.lua | 15K |
| kmod+/core/game.lua | 28K |
| kmod+/core/init.lua | 9K |
| kmod+/core/kmod+.lua | 4K |
| kmod+/core/load.lua | 13K |
| kmod+/core/unkown.lua | 7K |
| kmod+/core/utils.lua | 18K |
| kmod+/credits.txt | 1009B |
| kmod+/kmod+.cfg | 5K |
| kmod+/kmod+_example.cfg | 16K |
| kmod+/misc/ | |
| kmod+/misc/banlist.dat | 800B |
| kmod+/misc/banmask.dat | 38B |
| kmod+/misc/ignores.dat | |
| kmod+/misc/mute.dat | |
| kmod+/misc/player_tracker/ | |
| kmod+/misc/player_tracker/alias/ | |
| kmod+/misc/player_tracker/data/ | |
| kmod+/misc/shrubbot.dat | 408B |
| kmod+/mute.dat | |
| kmod+/readme.txt | 3K |
| kmod+/spree.cfg | 11K |
| kmod+/sprees/ | |
| kmod+.lua | 153B |
Comments (0)
Login to leave a comment.
File Info
- Filename
- kmodv057.zip
- Size
- 126.93 KB
- Game
- ET
- Author
- Admin
- Downloads
- 3
- Uploaded
- 11.02.2026
- Category
- Mods
Rating
0.0
/5
0 ratings
Detailed Rating
Design
0.0/5 (0)
Gameplay
0.0/5 (0)
Textures
0.0/5 (0)
Performance
0.0/5 (0)
Originality
0.0/5 (0)