[FilterScript] Simple Login/Administration System
#1

Simple Login/Administration System by me, austin070

Requirements:
  • Zcmd by Zeex
  • dini by DracoBlue
  • sscanf by ******
  • dudb by DracoBlue
Installation:
  • Place "Login.pwn" and "Login.amx" in your FILTERSCRIPTS folder.
  • Navigate to "server.cfg"
  • Add "Login" to the "filterscripts" line.
  • Create a folder called "Accounts" in your scriptfiles folder.
  • Download the includes and place them in the pawno\include folder.
Information:
This script consists of a login system and 23 basic moderation commands. Dialogs are used to register players and to log them in. The login system uses dudb to convert the password into numbers, that way everyone's password is safe. Position of players is saved OnPlayerDisconnect. I have it this way because I don't want to lag my server by saving it under OnPlayerUpdate. The only thing wrong with the way I do it is when the server restarts, everyone's position is not saved. Using OnPlayerUpdate to save the players' positions will work as long as your server host has enough memory to handle it. Now to the commands. I only scripted in a few basic moderation commands. If you need any more than what is given, script them yourself.

Commands:


Player Commands
/report

LEVEL 1
/respawncar, /goto, /gethere, /apm, /repair, /freeze, /unfreeze, /mute, /unmute, /spectate

LEVEL 2
/disarm /respawnallcars /veh /kick /givemoney

LEVEL 3
/ban /akill

LEVEL 4
/sethp

LEVEL 5
/adminlevel [level 1-5] /restart

NOTE: Highest admin level is 5.

ANOTHER NOTE: Use /adminlevel to change the admin level of another person. To change your own, log in to RCON or change it via your account's file in the "Accounts" folder.



I will be updating this farther soon. Updates will include only more commands. Hope you guys like it, it's my first release.

Credits:
****** for sscanf
Zeex for Zcmd
Dracoblue for dini and dudb
austin070 for scripting
Please do not reupload without my permission

Download links:

Pastebin
Solidfiles
Reply
#2

nice
Reply
#3

Nice for First FS
Reply
#4

Hmm I'll use it may be simple but in Gang war server would be good
Reply
#5

Good job!
Reply
#6

Thanks guys . I'm gonna add more commands to it when I get some more done on my gamemode. I'll add probably about 15-25 more commands.
Reply
#7

Nice
Reply
#8

How do you set your admin level? where are the players details saved??
Reply
#9

Quote:
Originally Posted by ryan_parkour
Посмотреть сообщение
How do you set your admin level? where are the players details saved??
rcon & /adminlevel
to save tha stats of player you must creat a folder called "Accounts" in scriptfiles ... that's all (by the way to fix the mony bug just put GivePlayerMoney(playerid, dini_Int(file, "Cash")); in case 1: of the dialog spawn and delet GivePlayerMoney(playerid, dini_Int(file, "Cash")); from on player spawn
Reply
#10

Quote:
Originally Posted by Amine_Mejrhirrou
Посмотреть сообщение
rcon & /adminlevel
to save tha stats of player you must creat a folder called "Accounts" in scriptfiles ... that's all (by the way to fix the mony bug just put GivePlayerMoney(playerid, dini_Int(file, "Cash")); in case 1: of the dialog spawn and delet GivePlayerMoney(playerid, dini_Int(file, "Cash")); from on player spawn
Thanks. i will give that a try
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)