[FilterScript] C" Admin System [DM] - 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] C" Admin System [DM] (
/showthread.php?tid=457608)
C" Admin System [DM] -
Champ - 12.08.2013
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- Download .rar pack.
- Extract and Copy and Paste all files to your Directory.
- Compile Admin Script.
- Add " C " in server.cfg file like " filerscripts C "
- 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.
Re: C" Admin System [DM] -
DeathFire - 12.08.2013
Nice one buddy
Re: C" Admin System [DM] -
JeaSon - 12.08.2013
nice one this fs can be good for tdm dm servers
Re: C" Admin System [DM] -
Champ - 12.08.2013
Thanks you friends for you feedbacks. Hope you enjoy the script
![Cheesy](images/smilies/biggrin.png)
.
Re: C" Admin System [DM] -
RedFusion - 12.08.2013
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";
}
Re: C" Admin System [DM] -
Champ - 12.08.2013
ty for suggestion Fusion. I have tested if and else if feature. it also works smoothly.
Re: C" Admin System [DM] -
Team_PRO - 13.08.2013
nice work
Re: C" Admin System [DM] -
Champ - 13.08.2013
Thank You
![Cheesy](images/smilies/biggrin.png)
More feedbacks Please...
Re: C" Admin System [DM] -
John Rockie - 13.08.2013
Really good
Re: C" Admin System [DM] -
Champ - 15.08.2013
Thanks John. Nice to see 40 downloads.