12.08.2013, 09:40
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
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";
}
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;
}
- 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.