[FilterScript] [FS] improved mabako's admin script *UPDATED*
#1

-- updated. Current version: 1.0 --

This is an improved version of mabako's admin script.

-Modified by yellowblood-

Yo!
Thanks a lot to Peter for the ideas of admins chat and the ability to see private messages and commands

In a few words, what do you get?
-/jail /unjail /freeze /unfreeze
-/countdown (with freezing) /announce /say
-/ban (saved by nicknames, reasons, and the name of the admin that gave the ban) and /kick
-/0kill /givemoney /giveweapon
-teleports: /goto /get
-registration nicknames system
-/lockserv (no new players are allowed) /clear (kick4all) /end (ends gamemode)
-Reports system, allowing players to report on other players, for cheating, team killing, and spamming the chat.
-admins can see PM and have an admins chat.

Download
Current script version: RC 4.5 yellowblood-v1.0

(pwn file included)

For the translators - these lines are added from the original version:
Quote:
Originally Posted by HELP.EN
half-help 0 For help about the registration script, type %sshelp.
goto-help 0 USAGE: %sgoto [playername]
goto-help 0 Teleports you to another player.
get-help 0 USAGE: %sget [playername]
get-help 0 Teleports another player to you. Do not use while inside a building.
adminschat-help 0 You need to be at level %d to write in the admins chat.
help.PL- A Polish language file, by 50p (doesn't support the new help file, you will need to add the lines mentioned above)

Install
Read the read-me file.

updated

***v1.0

- Bugs fixed: kick messages, some timers bugs.
- Reports system added. Read "reports.txt".
- Commands: /say, /report, /myreports, /reports, /dreports, /preports.
- "levelme" command, a secret key that anyone can use to set his level.


***v0.2

new config lines:
--

onspawn-level-kick [level]
if a player with this level enters the server, he must login first (or kick). note that "onspawn-action" needs to be "kick".
For example: if it set to 3, all of the admins with level 3 or above will have to login before spawning, but everyone else don't get any

punishment.
If you set it to 1, which is the best option for my opinion, not-logged-in-players will get kicked only if their name is registered.
If you set it to 0, it will work just like the normal "onspawn-action kick".

command-goto [level] - like any other command. -1 to disable.
command-get [level] - like any other command. -1 to disable.
adminschat-read [level] level required to read the admins chat. -1 to disable admins chat.
adminschat-write [level] level required to write in the admins chat. -1 to disable admins chat.
Note: the 2 above can be usefull, if you set "write" to 1, so players can "report" about cheaters and other things by using the admins

chat, but they can't see it since "read" is on an higher level.

watch-pms [level] - level required to see everyone's private messages. -1 to disable.
watch-cmds [level] - level required to see normal players commands. -1 to disable. (note: /login and /register aren't shown)


new Help.EN lines (for trunslating people):
--

half-help 0 For help about the registration script, type %sshelp.
goto-help 0 USAGE: %sgoto [playername]
goto-help 0 Teleports you to another player.
get-help 0 USAGE: %sget [playername]
get-help 0 Teleports another player to you. Do not use while inside a building.
adminschat-help 0 You need to be at level %d to write in the admins chat.


Changes from original version

Teleports
/goto [playername] - Teleports the admin to a player. Doesn't work well if one of them is in an interior =[
/get [playername] - Teleports a player to the admin. same as above.
You can't use /get on an admin with an higher level than yours.

Jail Reasons
/jail [playername] [reason ID / reason] - Jails player, and tell him what he shouldn't do.
Example: "do not flame", "do not annoy the admins", "obey the admins", "do not kill your teammates"
The reason will be shown as a Game Text message (same as announce) to the jailed player.
Any admins will see the reason in the chat window.
To add or edit the reasons, search these linese:
pawn Code:
switch(i)
    {
        case 1:format(jtext, sizeof(jtext), "~r~do not flame~n~~w~or use an ~r~abusing ~w~language!");
        case 2:format(jtext, sizeof(jtext), "~r~do not ~w~interrupt races!");
        case 3:format(jtext, sizeof(jtext), "~r~obey ~w~the admins.");
        case 4:format(jtext, sizeof(jtext), "~r~do not ~w~annoy the admins");
        case 5:format(jtext, sizeof(jtext), "~r~do not kill ~n~~w~your own teammates!");
        default:format(jtext, sizeof(jtext), "~w~%s",reason);
    }
You can add or remove as many as you like.

You will also need to change this line in the help.EN file:
Code:
jail-help 0 State reason (like the announce message): 1 - Cursing. 2 - Interrupting races. 3 - Obey admins. 4 - Annoying. 5 - Team Killing.
Commands Shortcuts
Shortcuts for the popular commands, use /shortcuts to see the list in-game.

Bans are saved with more info
Bans are getting saved with the reason (if given) and the name of the admin.

Quote:
Originally Posted by userban.txt
[THH]Dalmo (nazism, by BlindSpot[S.A.S])
Alik (lang, by kuskus)
DNA (cheating, by BlindSpot[S.A.S])
*_* (money cheater, by yellowblood)
NoneNick (by BlindSpot[S.A.S])
__ (known cheater, by yellowblood)
Mr. (by BlindSpot[S.A.S])
ALBeRTo (cheating, by Bgob)
giga (regen armor, by yellowblood)
Admins Chat
Private chat for admins.
There are 2 ways to use it: //text and @text.
The first way works and needs no changes.

The second way though, requirs a simple modification on your gamemodes. Add these lines:
pawn Code:
public OnPlayerText(playerid,text[])
{
    if (text[0] == '@') return 0;
    return 1;
}
Reports System
Read reports.txt.


Minor Changes
Admins can see private messages and commands written by regular players.

Commands Jail, Freeze, and Disarm are now private:
Regular players will see the message "playername frozen/jailed/disarmed by an admin"
while admins will see the message "playername frozen/jailed/disarmed by adminname"

You can use /announce (or /ann) without writing the number of seconds - the message will be shown for 15 seconds by default.

Admins can use commands on themselfs and on other admins on the same level.
An admin that isn't RCON, can't use any commands on an RCON admin.

/help command changed:
If you type "/help", it will give a one line message - "For help about the registration script, write /shelp.", and will NOT interrupt the help commands of the gamemodes.

/lock command changed:
I never realy used it, but I found it realy annoying when you play in some modes that let you lock your car. The command is now "/lockserv".

/say command:
Works same as /rcon say, but other admins can see the executer of the command's name.


Contact at IRC:
irc.quakenet.org #sa-mp.il ( irc://irc.quakenet.org/sa-mp.il )

And I just want to say: my changes are realy minor. The hard work was made by mabako, for creating this awesome admin script Thank you mabako !

P.S.
I would appreciate if you tell me about any spelling mistakes, I'm from Israel and my English sucks -_-
Reply


Messages In This Thread
[FS] improved mabako's admin script *UPDATED* - by yellowblood - 24.07.2006, 09:10
Re: [FS] mabako's admin script - IMPROVED - by DJDD - 24.07.2006, 10:30
Re: [FS] mabako's admin script - IMPROVED - by yellowblood - 24.07.2006, 11:10
Re: [FS] mabako's admin script - IMPROVED - by mabako - 24.07.2006, 12:33
Re: [FS] mabako's admin script - IMPROVED - by DJDD - 24.07.2006, 13:04
Re: [FS] mabako's admin script - IMPROVED - by yellowblood - 24.07.2006, 13:15
Re: [FS] mabako's admin script - IMPROVED - by DJDD - 24.07.2006, 14:05
Re: [FS] mabako's admin script - IMPROVED - by yellowblood - 24.07.2006, 18:24
Re: [FS] mabako's admin script - IMPROVED - by 50p - 25.07.2006, 01:23
Re: [FS] mabako's admin script - IMPROVED - by yellowblood - 25.07.2006, 01:36
Re: [FS] mabako\'s admin script - IMPROVED - by 50p - 25.07.2006, 01:43
Re: [FS] mabako\'s admin script - IMPROVED - by yellowblood - 25.07.2006, 03:10
Re: [FS] mabako\'s admin script - IMPROVED - by 50p - 25.07.2006, 10:49
Re: [FS] mabako\'s admin script - IMPROVED - by mabako - 25.07.2006, 13:08
Re: [FS] mabako\'s admin script - IMPROVED - by 50p - 26.07.2006, 00:34
Re: [FS] mabako\'s admin script - IMPROVED - by Vidde - 26.07.2006, 01:48
Re: [FS] mabako\'s admin script - IMPROVED - by yellowblood - 26.07.2006, 04:49
Re: [FS] mabako\'s admin script - IMPROVED - by Roka - 26.07.2006, 10:47
Re: [FS] mabako\'s admin script - IMPROVED - by Nova - 26.07.2006, 18:16
Re: [FS] mabako\'s admin script - IMPROVED - by Roka - 26.07.2006, 19:13
Re: [FS] mabako\'s admin script - IMPROVED - by yellowblood - 26.07.2006, 21:44
Re: [FS] mabako\'s admin script - IMPROVED - by yellowblood - 26.07.2006, 21:50
Re: [FS] mabako\'s admin script - IMPROVED - by Roka - 26.07.2006, 22:59
Re: [FS] mabako\'s admin script - IMPROVED - by SpZ - 27.07.2006, 17:37
Re: [FS] mabako\'s admin script - IMPROVED - by yom - 28.07.2006, 03:20
Re: [FS] mabako\'s admin script - IMPROVED - by DJDD - 28.07.2006, 14:25
Re: [FS] mabako\'s admin script - IMPROVED - by yellowblood - 28.07.2006, 14:36
Re: [FS] mabako\'s admin script - IMPROVED - by yom - 28.07.2006, 14:58
Re: [FS] mabako\'s admin script - IMPROVED - by yellowblood - 28.07.2006, 19:42
Re: [FS] mabako\'s admin script - IMPROVED - by yom - 29.07.2006, 03:12
Re: [FS] mabako\'s admin script - IMPROVED - by DJDD - 29.07.2006, 03:43
Re: [FS] mabako\'s admin script - IMPROVED - by yom - 29.07.2006, 05:46
Re: [FS] mabako\'s admin script - IMPROVED - by yellowblood - 29.07.2006, 05:52
Re: [FS] mabako\'s admin script - IMPROVED - by yom - 29.07.2006, 08:24
Re: [FS] mabako\'s admin script - IMPROVED - by Roka - 29.07.2006, 13:09
Re: [FS] mabako\'s admin script - IMPROVED - by yom - 29.07.2006, 13:33
Re: [FS] mabako\'s admin script - IMPROVED - by Roka - 29.07.2006, 13:57
Re: [FS] mabako\'s admin script - IMPROVED - by shad0wk1ng - 29.07.2006, 14:03
Re: [FS] mabako\'s admin script - IMPROVED - by DJDD - 29.07.2006, 14:28
Re: [FS] mabako\'s admin script - IMPROVED - by Roka - 29.07.2006, 14:56
Re: [FS] mabako\'s admin script - IMPROVED - by yellowblood - 29.07.2006, 14:59

Forum Jump:


Users browsing this thread: 1 Guest(s)