SA-MP Forums Archive
[FilterScript] 0Admin - Sophisticated Administration System. [WHEN PLAYER LEAVES BUG FIXED] - 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] 0Admin - Sophisticated Administration System. [WHEN PLAYER LEAVES BUG FIXED] (/showthread.php?tid=255513)

Pages: 1 2 3 4


0Admin - Sophisticated Administration System. [WHEN PLAYER LEAVES BUG FIXED] - Zh3r0 - 15.05.2011

0Admin V1.1
First Release.


Project in progress again | 26. August. 2011
Working again on the script. Upcoming version: 1.2
Take a look at this post for more information and changelog.
http://forum.sa-mp.com/showpost.php?...&postcount=348



Project on hold | 09. August. 2011
Okay guys, lemme get this straight to subject, while I was compiling the filterscript, which was almost done, electricity just shut down, and took with this 70% of the code, now everything I worked on, Votekick, Voteban, Forbidden weapons, fixed crash, and Forbidden words is gone GONE, I will NOT start this OVER again for a big long period, I just lost my nerves with this, I will put this on hold and deal with the current bugs, blame this stupid country I live in, NOT ME!

FIX WHEN PLAYER LEAVES SERVER ON LINUX!
http://forum.sa-mp.com/showpost.php?...&postcount=306


Important News | 07. August. 2011

I managed to fix the crash when players disconnect.
It was due to double db_free_result, at first I freed the result and the second time when it tries to free any information, it crashes the server, still this happens only on Linux, that's why I couldn't find it when I was testing it on Windows.

Upcoming update:
- Forbidden weapons, easy configurable from Admin Control Panel.
- Votekick/Voteban, with textdraw.
- Don't remember anything else, but stay tuned.


Introduction
0Admin was planned to be the best and most performance admin system ever, beating the existing ones in the category "reliability and performance". This plan was made back 2 months ago, when I was thinking how the current admin systems are very low in performance while using the oldest methods that were available when they were created. This system uses the best methods, the best functions to sum up the performance. Started working on this system 2 months ago, started from scratch, from the first variable to the last SQL table.
Not to self, I'm not claiming 100% that it's the best or the most performance system ever, just pointing out that it is using the newest methods. Building this system was not that easy, I had to do tons and tons of tests, I feel bad that I did not make a log to save each time I reloaded this script to test the tiniest thing. It's NOT 100% bug-free because I did not have the time to test each and EVERY SINGLE command and function. This is the reason for the early release, to let the users discover a big part of the bugs so I can fix them in the next versions.


Changelog
[V1.1] [V1.0]
- Initial release.




Features
Using the following systems and plugins.
The system has the following features. Server Features such as Player Features.

Server Features
- Everything gets enabled from the Admin Control Panel (/ACP) which is only available to the Owner( Level 5 ) of the server.
System Features
Commands

Level 0 - Member Level 1 - Helper Level 2 - Mini Moderator Level 3 - Moderator Level 4 - Administrator Level 5 - Owner (IMMUNITY TO ALL THE COMMANDS AND FEATURES!) VIP
About the VIP Members..There are only few features for the VIP Members, now here is another reason for the 0Admin_F include! To use into your own gamemode and add the commands you want for your VIP members.
Members can use Player Control Panel(/PCP) to see their VIP commands!

Player Control Panel
Auto-Login
Block PM
My Stats
VIP Level 1
Godlike
Vehicle God
Vehicle Boost
Wear VIP Tag
VIP Level 2
Vehicle Spin
INcredible
VIP Level 3
Shout

Add your own features for your VIP Members. All I did was bringing the VIP system to use it for yourself!


Register
The account registration process is pretty hard for new comers and non English speakers!
So let me explain.

Ok, you register an account, then you get a new dialog where you will be asked to input your secret question.
The question must be at least 10 characters long and must contain a '?' without the ' ' somewhere to be a valid question! THAT'S LOGICAL!

Next step is to insert your secret answer to the secret question! Just insert an answer longer than 4 characters to proceed!

Next step is to login into your account, you will see a dialog with all your stats, like registration date, account id, and all that stuff needed. You must login after that.

I hope I made something clear!

Reading a SQLite file(.db)
I've had many complaints about the people that they can't figure out how to edit a player's account!
Well thats even more simple than using the ol'fashion flat files.

You will need the following program to open databases.
Download SQLite Browser.


Now open your program and open the Database.db file from scriptfiles/ with the program given above.

Now just follow the instructions and information from the pictures,










Respect System
I've noticed many asked how to give respect, it's easy! When in-game press TAB button and select the name of the player. A dialog will popup where you will see few stuff like sending him a personal message or even reporting him, as well there is the respect system.

Select his name, select Give Respect, select your choice, it's either Negative or Positive.

Note: You can give only 1 Negative and 1 Positive per HOUR! No matter what person.
It's just a way to keep away respect hungry people!


Commands or features not working!
WRONG! Everything works just fine, but even so, report any kind of tiny lil bug or mistype or anything related to something I forgot to add or correct.

Everything works, like I said, just that, when you are an Admin Level 5(The OWNER), he is immune to all the commands and features such as anti-spam or anti-advertising. It's just about logic that the Owner of the server will never advertise or spam the chat for the bad of it.

Note: Admins higher than you with even one level, cannot be harmed by the commands you use on them. If you are level 4 and the one you apply the command to is level 4 too, then it will happen because none of you two is superior to each other.


Installation
  1. Extract everything from the .rar file into a folder.
  2. Copy files from folder includes into yourserver/pawno/includes.
  3. Copy the .dll files from the folder plugins into yourserver/plugins.
  4. Open scriptfiles folder from your server folder and create a folder named 0Admin (WITH LETTER CAPS 'A').
  5. Inside scriptfiles/0Admin create the following folders:
    Logs
    Stats
  6. Go to your server directory and open server.cfg.
  7. Search for line filterscripts and add 0Admin in front of that line.
    Example:
    filterscripts 0Admin script1 script2
  8. Same thing on the line plugins. Add the following to that lines.
    plugins sscanf whirlpool regex
  9. Save file, open server, enjoy.
Include
This system comes with an include for your gamemode!

0Admin_F
How to use it? Easy! Example of use
pawn Code:
if(!strcmp(cmdtext, "/command"))
{
     if(GetPlayerLevel(playerid) > 3)
     {
           //Admin level 3 code here
     }else return SendClientMessage(playerid, ~1, "You are not allowed to use this command!");
     return 1;
}
if(!strcmp(cmdtext, "/megod"))
{
     //Player now has godmode activated;
    Godlike(playerid, true);
    SendClientMessage(playerid, ~1, "Godmode activated!");
    return 1;
}
if(!strcmp(cmdtext, "/500killsplz"))
{
     //Set player's kills to 500;
     SetPlayerKills(playerid, 500);
     SendClientMessage(playerid, ~1, "You now have 500 kills");
     return 1;
}
Download

[V1.1] - Updated version.
solidfiles - Direct


OLD DOWNLOAD - NOT RECOMMENDED!
solidfiles



Questions?Bugs?Ideas? - Do it here!


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - Laronic - 15.05.2011

Nice done! 9.1/10.0

You did a great job on this script!

*Tumb up*


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - Rock_Ro - 15.05.2011

Fuckin'n awesome man , good job.

This is an example of Romanian Scripter that can make something good and original

Thanks.


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - Naruto_Emilio - 15.05.2011

New Epic Era!!! 0Admin will own all other admin systems!!


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - linuxthefish - 15.05.2011

EPIC, 9.3/10, i've been waiting for this! Want a mirror?


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - Zh3r0 - 15.05.2011

Quote:
Originally Posted by linuxthefish
View Post
EPIC, 9.3/10, i've been waiting for this! Want a mirror?
No thanks, I will request one when solidfiles fails(Which, that, won't happen likely)

Thanks to others for the so fast positive comments!


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - [H]265 - 15.05.2011

Awesome work i will try this )


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - SamyRomafia - 15.05.2011

Zh3r0...... I <3 u


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - OBSERVADOR - 16.05.2011

Found 1 Bug
While using /setstats if we edit the Kill amount Samp-server.exe will crash I just tested the kill amounts don't know about other Options.



Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - jejemonerz123 - 16.05.2011

Zh3r0 I fukin love you BTW does that saves score


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - wheelman_WM - 16.05.2011

omg finally i got this i was waiting for it LOVE YOU BRO


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - Salsa - 16.05.2011

Nice One I LOve It


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - Salsa - 16.05.2011

The Scret Question Not Woking When I Fill My Question It Say That Not A Question


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - [nL]W0rfleR - 16.05.2011

coools


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - Zh3r0 - 16.05.2011

Quote:
Originally Posted by Salsa
View Post
The Scret Question Not Woking When I Fill My Question It Say That Not A Question
It has to be 10 characters long and must have a \'?\' at the end. That\'s a question!


@OBSERVADOR That\'s strange, will investigate today.


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - wheelman_WM - 16.05.2011

<sorry removed>


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - BASITJALIL - 16.05.2011

THE FUCKINGH AWEHSOME AHDMIN SHYSTEM I EHVER SEEN

WOW THAT\'S AWESOME


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - [KO]KillerThriller - 16.05.2011

New LuxAdmin? :b


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - dcs.Mihai - 16.05.2011

Wow , zh3ro nice work ..
The Best Administration System...


Re: 0Admin - Sophisticated Administration System. (130+ CMDS, VIP, ANTI, TOP, RANKS) - OBSERVADOR - 16.05.2011

Quote:
Originally Posted by Zh3r0
View Post
@OBSERVADOR That\'s strange, will investigate today.
Okey I\'ll wait


And thanks for this FS it\'s The Best FS i ever Downloaded