SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 27/03/2010, 07:09 PM   #1
biltong
Gangsta
 
Join Date: Jan 2010
Posts: 551
Reputation: 0
Default [FS]AdminClick v1.4 -- A simple dialog-based admin script! UPDATED 07/12/10

ADMINCLICK
by biltong
Version 1.4


What is it?
This is a simple filterscript that lets you do many common admin-related commands with 3 mouse-clicks. It allows you to PM, kick, ban, jail, unjail, freeze, unfreeze, wire, cage, explode, heal, give godmode, eject, reset weapons, and teleport players by double clicking their names on the scoreboard. It saves time since you don't have to remember and type commands, nor find the player's id. It also allows non-admins to easily PM another player, with messages up to 127 characters long.

NOTE: THIS WILL ONLY WORK ON 0.3a R8 AND ABOVE!

How do I use it?
Simple. Make sure you are an rcon admin in game(by default), then double click a player's name. A menu will pop up, giving you a bunch of common commands. Choose one, and it happens!


What if a normal non-admin player tries to use it?
They will get sent straight to PMing the player they clicked. It doubles as a PM script for normal players.

Sounds awesome! Where can I get it?
1.3.2:
Pastebin here
1.4:Download AdminClick 1.4

Are there any bugs?
I have tested this script extensively and found no issues, but that doesn't mean there aren't any. Post if your find one

I have a suggestion! I have a complaint! I have a pie!
No problem. PM me Though you can keep the pie, I'm allergic


New in version 1.1:
  • Added Spectate, Set Armour, Eject from vehicle, Goto, Get here(teleport the player to you), Confiscate weapons, Heal
  • The script now logs when players are kicked or banned. The log is in your server directory's scriptfiles. It's name is "ACLog.txt". It will also log the player's IP if the player was banned.
  • Fixed a few wording errors

New in version 1.2:
  • The log file now logs when players connect and disconnect. NOTE: I will disable these until I can find out why the script is not calling OnPlayerConnect.
  • Optimised code a little
  • Fixed another wording error
  • Got rid of the PVar system. Now this script will run on any 0.3a server!
  • Added a command to stop spectating a player ("/specoff")
  • Fixed an issue with non-admins PMs
I got bored at a LAN so I decided I would work on this, hence the new changes. Hope you guys like

New in version 1.3:
  • Added more logging options. Open the script and change the config there to chage what gets logged and what doesn't. Options include connect and disconnect logging, PM logging(off by default), death logging and logging when an RCON admin logs in. Unfortunately, because of the way admin scripts are, AdminClick cannot log when other admins log in.
  • Time must now be specified for wiring a player, in MINUTES!
  • Fixed a bug where a player could use a gamemode teleport to get out of jail.
  • Added explode. It does exactly that, it explodes the player you click on.
  • Added cage. It cages the clicked player for the specified time IN MINUTES!
  • Added the /r command. It automatically brings a PM menu to reply to the last PM you received.
  • Times in the logs are now reported properly. Before the system would log, for example, 6:2:5 as the time, whereas it should have been 06:02:05, which is now what it does.
  • The system will no longer print every line it logs to the server. This is to prevent spam.

1.3.1
  • Fixed the script trying to send a jailed player to jail every second if they leave the server while in jail.
  • Fixed up a whole bunch of wording errors (I thought I was sending the messages via gametext so I added many colour tags).
  • Fixed not sending a player a message saying an admin teleported them to the admin.

1.3.2
  • Fixed cage, it now properly checks if a person leaves his/her cage instead of the player who caged that person.
  • (hopefully)Fixed all wording errors xD

1.4
  • Now a full-blown admin system. There are 3 admin levels, 1 is basic moderator, 2 is administrator and 3 is master administrator/owner. Each level has a certain number of commands, and only level 3 can set the levels of other players. Level 3 also has all the commands, including ban.
  • Dialog-based register and login system. This can be disabled. Just comment out
    pawn Code:
    #define MUST_REGISTER
    to disable registering. If it's enabled, players must login or leave.
  • Whirlpool-hashed passwords (Get whirlpool here: http://forum.sa-mp.com/showthread.ph...ight=whirlpool )
  • New commands:
    -Warn: send the player a warning with a message.
    -/v : chat command, admins level 2+3 only. Spawns a vehicle by vehicle ID or by name.
  • Wrong password protection: if a player enters his/her password incorrectly 3 times, he/she will be temp banned for 30 minutes.
  • Runs on PVars now. This was by request, and it allows you to use the variables in this script in other scripts, such as your GM. It also means that the minimum requirement is server 0.3a R8 or later.

There are probably many more things that I added but can't remember, I haven't worked on this script in quite a while.

IMPORTANT:
You MUST open the script and change
pawn Code:
//#define MAX_PLAYERS 500
the 500 to the number of player slots on your server, and uncomment it. The script won't compile if you don't. This is why there is no .amx in the rar file this time.

The Config:
At the top of the script you will find a config section.
MAX_PLAYERS must be set to the number of player slots you have on your server. If the script doesn't compile, you probably forgot to uncomment this.
LOG_CONNECTS simply logs when a player connects. Comment it out to disable.
LOG_DISCONNECTS is the opposite.
LOG_PMS logs every PM that is sent by every player. It is disabled by default, uncomment it to enable it.
LOG_ADMINS logs whenever someone tries to login via RCON. If it is a player, it will log the player's IP, name, and playerid. Otherwise it will just log the IP.
MUST_REGISTER sets whether players must register and login before they play, comment it out if you don't want players to login.

Sorry for the wait to those that were waiting
1.3.2 is still available to those that already have an admin script and want this.
I'm not very active with scripting anymore, nor with SA:MP, so I may not post for a while. Feel free to update this as you wish, just PM me and let me know. I'll respond to all PMs.


Enjoy
biltong


EDIT: rawr, the title won't change
__________________
My releases:
[FS]Admin Click - An admin shortcut script. Lots of commands like kick and ban in a few mouse clicks!
[FS]Vehicle Names - Simple script that displays your vehicle's name whenever you enter one.
[GM]Cops 'n Criminals - An unusual TDM.


Not active anymore, PM me if necessary.

Last edited by biltong; 14/07/2010 at 12:17 PM.
biltong is offline   Reply With Quote
Old 27/03/2010, 07:54 PM   #2
Zimon95
Big Clucker
 
Zimon95's Avatar
 
Join Date: Sep 2009
Location: Ravenna, Italy
Posts: 195
Reputation: 10
Default Re: [FS]AdminClick v1.0

Nice Filterscript, it works with the new Pvars I see.
Zimon95 is offline   Reply With Quote
Old 27/03/2010, 08:20 PM   #3
Brian_Furios
Huge Clucker
 
Join Date: Jan 2010
Posts: 377
Reputation: 2
Default Re: [FS]AdminClick v1.0

good work man!
Brian_Furios is offline   Reply With Quote
Old 27/03/2010, 09:34 PM   #4
biltong
Gangsta
 
Join Date: Jan 2010
Posts: 551
Reputation: 0
Default Re: [FS]AdminClick v1.0

Thanks guys

I forgot to mention it wont work with older versions because of the pvars, thinking I should ditch them.

EDIT:
Quote:
Originally Posted by ♠ мąүқоҳ™
Nice, but you could add more commands in it...
Like?
__________________
My releases:
[FS]Admin Click - An admin shortcut script. Lots of commands like kick and ban in a few mouse clicks!
[FS]Vehicle Names - Simple script that displays your vehicle's name whenever you enter one.
[GM]Cops 'n Criminals - An unusual TDM.


Not active anymore, PM me if necessary.
biltong is offline   Reply With Quote
Old 27/03/2010, 10:32 PM   #5
Brian_Furios
Huge Clucker
 
Join Date: Jan 2010
Posts: 377
Reputation: 2
Default Re: [FS]AdminClick v1.0

very cool...thx i test it!
Brian_Furios is offline   Reply With Quote
Old 27/03/2010, 11:53 PM   #6
Brian_Furios
Huge Clucker
 
Join Date: Jan 2010
Posts: 377
Reputation: 2
Default Re: [FS]AdminClick v1.0

Quote:
Originally Posted by » ραωпsтαг «
Looks nice, helped me understand Pvars a little more. Although, these Pvars are eating so much of my brain power XD
me
Brian_Furios is offline   Reply With Quote
Old 28/03/2010, 08:46 AM   #7
[MK]Soprano
Big Clucker
 
Join Date: Mar 2010
Posts: 149
Reputation: 0
Default Re: [FS]AdminClick v1.0

So cool i will try this
[MK]Soprano is offline   Reply With Quote
Old 28/03/2010, 10:13 AM   #8
biltong
Gangsta
 
Join Date: Jan 2010
Posts: 551
Reputation: 0
Default Re: [FS]AdminClick v1.0

I'll be releasing an update for this tomorrow, I added some new things for it and fixed a few things.

Actions added:
  • Spectate
  • Set Armour
  • Eject from vehicle
  • Goto
  • Get here(teleport the player to you)
  • Confiscate weapons
  • Heal

Changes:
-Players now get their weapons taken away when they are jailed.
-Fixed a few wording errors.
-Added a log file, which stores the date and time of when players have been kicked and banned.

Plans:
-Getting rid of PVars, so if for some reason you aren't running server 0.3a R6, you can use this too


Please, if you guys have anything else you'd like me to add, say here

biltong
__________________
My releases:
[FS]Admin Click - An admin shortcut script. Lots of commands like kick and ban in a few mouse clicks!
[FS]Vehicle Names - Simple script that displays your vehicle's name whenever you enter one.
[GM]Cops 'n Criminals - An unusual TDM.


Not active anymore, PM me if necessary.
biltong is offline   Reply With Quote
Old 28/03/2010, 10:15 AM   #9
Brian_Furios
Huge Clucker
 
Join Date: Jan 2010
Posts: 377
Reputation: 2
Default Re: [FS]AdminClick v1.0

awesome new update. Good work man
Brian_Furios is offline   Reply With Quote
Old 29/03/2010, 12:33 PM   #10
biltong
Gangsta
 
Join Date: Jan 2010
Posts: 551
Reputation: 0
Default Re: [FS]AdminClick v1.1 released - 2010/03/29

Version 1.1 released!

There is now a log of players who get banned or kicked. If a player gets banned, their IP is also logged in the log file. The log file is in your server directory's scriptfiles by the name of "ACLog.txt"

Also added new functions to the double click menu.
__________________
My releases:
[FS]Admin Click - An admin shortcut script. Lots of commands like kick and ban in a few mouse clicks!
[FS]Vehicle Names - Simple script that displays your vehicle's name whenever you enter one.
[GM]Cops 'n Criminals - An unusual TDM.


Not active anymore, PM me if necessary.
biltong is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [FS] wDialog - Simple Weapon Dialog RyDeR` Filterscripts 37 07/11/2013 08:57 PM
[GameMode] [GM] Purgatoryserver SF:TDM (Inc. dialog based admin cp) ettans Gamemode Scripts 26 01/04/2012 09:54 AM
[FilterScript] [FS] dAdmin - Dialog based admin system. ettans Filterscripts 26 18/01/2011 09:21 PM
Simple admin system Cardinaal Help Archive 1 06/06/2010 02:04 AM
VERY simple admin script StrickenKid Help Archive 13 22/02/2009 05:06 AM


All times are GMT. The time now is 11:59 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.