[FilterScript] C" Admin System [DM]
#1



Hello Friends, I am releasing my self created admin script which I have scripted for my server. But unfortunately I had to close my previous server which was using this admin system. And now I am using my MySQL admin system that's why I don't need this admin system. And wants to share it with you.

About Script

I have created this for TDM gamemode. So, It would not contain much Commands. Just some basic commands which will help admins to protect their server.
This Admin System contains 17+ commands which is divided by 5 admin levels.

Код:
Level 1: /spec(off) | /(un)freeze | /goto | /[un]mute
Level 2: /kick | /announce | /bring | /spawn | /disarm | /explode
Level 3: /ban | /ip | /disarm | /explode 
Level 4: /unban
Level 5: /setlevel | /gmx
I have given ranks for each level. So, Whenever you type /admins. It will show the level and ranks too.

pawn Код:
if(PlayerInfo[i][pAdmin] == 1)
{
    AdminRank = "Helper";
}
else if(PlayerInfo[i][pAdmin] == 2)
{
    AdminRank = "Moderator";
}
else if(PlayerInfo[i][pAdmin] == 3)
{
    AdminRank = "Administrator";
}
else if(PlayerInfo[i][pAdmin] == 4)
{
    AdminRank = "UnBan Manager";
}
else if(PlayerInfo[i][pAdmin] == 5)
{
    AdminRank = "Server Owner";
}
I have created Register Login system by the help of some tutorials.

To Make More Commands

pawn Код:
COMMAND:YourCMD(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 1) // Change to Value 1 to which level you want.
    {
        // Your Code Here
    else SendClientMessage(playerid, COLOR_BRIGHTRED, "ERROR: You're not authorized to use this command.");
    return 1;
}
Installation
  1. Download .rar pack.
  2. Extract and Copy and Paste all files to your Directory.
  3. Compile Admin Script.
  4. Add " C " in server.cfg file like " filerscripts C "
  5. Enjoy.

Download



Credits
Код:
Y_ini by ******
Zcmd By Zeex
Some SA-MP Contributors for their Tutorials.
Bugs && Feedbacks
Please Post Your feedbacks and Bugs found in script Below.

Reply
#2

Nice one buddy
Reply
#3

nice one this fs can be good for tdm dm servers
Reply
#4

Thanks you friends for you feedbacks. Hope you enjoy the script .
Reply
#5

You can improve efficiency and make the code more neat by using a switch instead using if, else if, else if etc.
Just something i had to point out

Example:
pawn Код:
switch(PlayerInfo[i][pAdmin])
{
 case 1: AdminRank = "Helper";
 case 2: AdminRank = "Moderator";
}
Reply
#6

ty for suggestion Fusion. I have tested if and else if feature. it also works smoothly.
Reply
#7

nice work
Reply
#8

Thank You
More feedbacks Please...
Reply
#9

Really good
Reply
#10

Thanks John. Nice to see 40 downloads.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)