SA-MP Forums Archive
[FilterScript] Simple Login/Administration System - 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] Simple Login/Administration System (/showthread.php?tid=246115)



Simple Login/Administration System - austin070 - 03.04.2011

Simple Login/Administration System by me, austin070

Requirements:
Installation:
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



Re: Simple Login/Administration System - [ProX]BlueFire - 03.04.2011

nice


Re: Simple Login/Administration System - BASITJALIL - 03.04.2011

Nice for First FS


Re: Simple Login/Administration System - [LvZ]Free - 11.04.2011

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


Re: Simple Login/Administration System - Ironboy - 12.04.2011

Good job!


Re: Simple Login/Administration System - austin070 - 13.04.2011

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.


Re: Simple Login/Administration System - McCarthy - 14.04.2011

Nice


Re: Simple Login/Administration System - ryan_parkour - 14.04.2011

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


Re : Re: Simple Login/Administration System - Amine_Mejrhirrou - 14.04.2011

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


Re: Re : Re: Simple Login/Administration System - ryan_parkour - 15.04.2011

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