PDA

View Full Version : commands via say


BeetleFart
11-15-2004, 15:56
This will be one plugin that I will do...
To do the admin commands I want to hit y for say
and enter @kick blahblahblah...

I have made a program that gets the logs from my Source server and reads each line and if an admin does a say @kick or @ban etc
it will execute the command. NO MORE RCON Commands,
no having to get the full persons name etc, Uniquely partial names work.
The only down side is its a windows EXE that has to run on my old computer using my bandwidth etc, but is sure is such a convenience.
@restart to do a 5 second mp_restartgame command so we can get a good pistol round.

It works great and Now I guess Im getting spoiled because when source mod is done I think I will make a plugin that will handlesay the text and execute the appropiate commands.

Sveach
11-15-2004, 16:39
The only problem is that it reads logs, you need to make a plugin so the server triggers an event.

BAILOPAN
11-15-2004, 17:07
I made a plugin like this for AMX Mod and I have full intention of porting it over. Commands were parsed according to a nice little syntax, like:

$ slap /* 50

would slap everyone for 50 damage

BeetleFart
11-15-2004, 18:35
The only problem is that it reads logs, you need to make a plugin so the server triggers an event.

Yeah, but until the SDK is released and sourcemod is up..
this is working fine for me..


But after getting used to @kick and @restart etc
it will be difficult to going back to dropping the console and
amx_kick blahblah

BAILOPAN
11-15-2004, 18:35
trust me, after using admin through say, you NEVER use the console again ^^

BeetleFart
11-15-2004, 20:38
trust me, after using admin through say, you NEVER use the console again ^^

Yeah after 3 days of doing it this way...Im spoiled now...

Dygear
11-18-2004, 20:30
trust me, after using admin through say, you NEVER use the console again ^^

And BF1942RM (Battlefield 1942 Remote Manager) Steps in.

[GNY|SO] Dygear : !Kick BAIL
SERVER : BAILOPAN KICKED, ADMIN DECISION.

or

[GNY|SO] Dygear : !Kick BAIL TK
SERVER : BAILOPAN KICKED, Team Killing.

or

[GNY|SO] Dygear : !Kick BAIL VK
SERVER : BAILOPAN KICKED, Destroying friendly vehicles.

The list goes on.

paegus
12-02-2004, 16:41
hmm i gave up admining before that was fully realised.

is it just going to be if the say line starts with a certain character then it equates to a console command? or just a list of specifically registered says?

things like:
say: /sensitivity 6
say: /name ~怪異~lol~this~is~cool~
say: /kick bob being an arse

basically replacing the missing messagemode [whatever] commands

or just things like:
say: /kick ebob being an arse
Admin has kicked joebobbriggs for being an arse.

say: /ban a
Multiple matches:
1: J[b]ames
2: Alex
3: Sara
...
#: ALL matching players.

slot2

How long?
1: 5 minutes
2: 20 minutes
3: 1 hour
...
0: Forever

[b]slot5

Why?
1: because
2: hacking
3: disruptive
...

[b]slot7

Admin has temp-banned Alex for being a bleeding twit.

[KICKer] Player joebobbriggs has reconnected.
[KICKer] Last kicked 15 seconds ago for being an ass.
[KICKer] Pervious kicks for spawn camping (2x), teamflashing, swearing, team damaging (4x) and being an arse...


or since i've never really seen the point in having a kick AND a ban command other than the fact that a ban by itself doesnt kick as well:

kick <player> [time] [reason]
time:
0 = player can reconnect instantly (aka your basic kick).
# = cannot rejoin for this many minutes
* = kicked forever. aka perma-ban

err.. but i digress

dont forget the builtdefault IRC actions...
say: /me trips on a defuse kit and breaks his ankle
** Paegus trips on a defuse kit and breaks his ankle **