SA-MP Forums Archive
[FilterScript] [FS]AdminClick v1.3.2 -- A simple dialog-based admin shortcut! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS]AdminClick v1.3.2 -- A simple dialog-based admin shortcut! (/showthread.php?tid=137090)

Pages: 1 2


[FS]AdminClick v1.4 -- A simple dialog-based admin script! UPDATED 07/12/10 - biltong - 27.03.2010

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: New in version 1.2: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: 1.3.1 1.3.2 1.4 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


Re: [FS]AdminClick v1.0 - Zimon95 - 27.03.2010

Nice Filterscript, it works with the new Pvars I see.


Re: [FS]AdminClick v1.0 - Brian_Furios - 27.03.2010

good work man!


Re: [FS]AdminClick v1.0 - biltong - 27.03.2010

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?


Re: [FS]AdminClick v1.0 - Brian_Furios - 27.03.2010

very cool...thx i test it!


Re: [FS]AdminClick v1.0 - Brian_Furios - 27.03.2010

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


Re: [FS]AdminClick v1.0 - [MK]Soprano - 28.03.2010

So cool i will try this


Re: [FS]AdminClick v1.0 - biltong - 28.03.2010

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

Actions added: 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


Re: [FS]AdminClick v1.0 - Brian_Furios - 28.03.2010

awesome new update. Good work man


Re: [FS]AdminClick v1.1 released - 2010/03/29 - biltong - 29.03.2010

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.


Re: [FS]AdminClick v1.1 released - 2010/03/29 - JPs_ - 29.03.2010

This is just awesome!


Re: [FS]AdminClick v1.2 bugfix released - 2010/03/30 - biltong - 30.03.2010

lol, sorry for so many updates

New in version 1.2: Spectating:
When I first implemented spectating in version 1.1, I forgot to add an option to stop spectating a player. I have added the "/specoff" command to fix this.


Re: [FS]AdminClick v1.2 bugfix released - 2010/03/30 - biltong - 31.03.2010

Hi guys

It seems the problem with OnPlayerConnect was only on my side, it's not a script issue. If you'd like the log messages, un-comment the lines I commented, so that will be removing the "/*" on lines 90 and 103, and the "*/" on lines 93 and 112. That will re-enable connect and disconnect logging.

Also, if you want to disable printing every line that gets logged to the server's window, comment out line 476 so it looks like
pawn Код:
//printf(logstring);



Re: [FS]AdminClick v1.2 bugfix released - 2010/03/30 - [SU]Fnugski - 01.04.2010

i get this error when i try to insert luxadmin users instred of rcon admins..

error 017: undefined symbol "IsPlayerLuxAdmin"
error 017: undefined symbol "IsPlayerLuxAdmin"

two times it comes as i replaced 2 places..

why ?


Re: [FS]AdminClick v1.2 bugfix released - 2010/03/30 - biltong - 02.04.2010

You have to include ladmin if you're using LuxAdmin. If you're not, tell me which admin script and I'll help you out some more


Re: [FS]AdminClick v1.2 bugfix released - 2010/03/30 - [SU]Fnugski - 02.04.2010

i use Lux Admin script

but id like to change the levels for who can use whitch cmds


Re: [FS]AdminClick v1.2 bugfix released - 2010/03/30 - biltong - 02.04.2010

Ok, so then you do this:

pawn Код:
//at top of script, under #include <a_samp>
#include <ladmin>

//at those lines
    if(IsPlayerLuxAdminLevel(playerid, /*insert level here*/))
Just put the level you'd like in there after playerid and you're good to go

EDIT: w00t for 300 posts !


Re: [FS]AdminClick v1.2 bugfix released - 2010/03/30 - [SU]Fnugski - 02.04.2010

i got some problems with a dini file ?


Re: [FS]AdminClick v1.2 bugfix released - 2010/03/30 - XRVX - 02.04.2010

Quote:
Originally Posted by Fnugski
i got some problems with a dini file ?
http://forum.sa-mp.com/index.php?topic=981.0


Re: [FS]AdminClick v1.2 bugfix released - 2010/03/30 - [SU]Fnugski - 02.04.2010

Quote:
Originally Posted by XRVX
Quote:
Originally Posted by Fnugski
i got some problems with a dini file ?
http://forum.sa-mp.com/index.php?topic=981.0
that dosent work then it still have errors