[FilterScript] MaxAdmin Updated Its Work 100% Try It!
#1

[QUOTE='[MKD]Max;880819']Hey All I Have Fixed All Problems So You can enjoy in admin script


[B]MaxADMIN
Max Admin Script

Current Version: 3.5
Date Released: 21/10/2010
Updated: 22/10/2010
Lines: 1740

The Commands

----------------|| Moderator Commands ||------------------
/asay, /akill /warn /mute, /unmute, /freeze, /unfreeze

---------------|| Main Moderator Commands ||------------------
ann1/2, /giveweapon, /spec (off),/goto, /get

---------------|| Administrator Commands ||------------------
/setskin, /sethealth, /kick, /veh, /jail, /unjail

---------------|| Head Admins Commands ||------------------
/ban, /setscore, /givecash, /explode, /clear");

---------------|| Server Owner Commands ||------------------
/gmx, /setlevel, /unban");


What New:


"help" to view server stats.
"ahelp" for admin command
"asay" sends a message to admins only
"pm" sends a personal message to a user
"ask" send question for admins
"#" admin chat



How To Install:

1. Put The File Name maxadmin folder into scriptfiles
2. Copy 'maxadmin.amx' and 'maxadmin.pwn' into filterscripts folder
3. To complie and for not get erros you will need maxadmin.inc' in the includes folder
4. open the file name server.cfg go to filterscript line and add MaxAdmin Thats All

There are 5 levels:

Level 1 = Moderator,
Level 2 = Main Moderator
Level 3 = Administator
Level 4 = Head Admins
Level 5 = Owner

How to make yourself admin:

1. Connect to server and tybe /register put your password in dialog then do /login and put same password
2. Open The File In scriptfile/maxadmin/users/Name.ini
3. Search For Something say Level = 0 change its to Level = 5
4. Rejoin Server And /login put password in dialog and good luck!

How to make other players admin:

Type /setlevel [ID] [Level] (note the player must be registered)

Credits

[MKD]Max = All Commands

Download New Link:

MaxAdmin.rar
Reply
#2

One problem is still,
The score & money deosn't save!

And if mine brother play in the server then server say he is an administrator, but he are not an administrator
i recommend change that!
Reply
#3

When will you do the true 100% work?
Reply
#4

dude im try to delete thats clients say You cant blalb yourself and You can blala ahight ranked admin
Reply
#5

Dude... do you really need to make a new topic for every "fix" you make?
Stick to one topic please, I don't see everyone else making a new topic for all their script updates...
Reply
#6

shit shutup ok its was worng post
Reply
#7

how i can add that if no administrator are online

new count = 0; // that i know but what i do next?
Reply
#8

look there is in script something like


if admins = 0
sendclientmessage(playerid, COLOR_RED,"No Admins Online Right Now Peace"):
return 1;
}

just like this
Reply
#9

Quote:
Originally Posted by [MKD]Max
Посмотреть сообщение
look there is in script something like


if admins = 0
sendclientmessage(playerid, COLOR_RED,"No Admins Online Right Now Peace"):
return 1;
}

just like this
You are a noob and this script is an epic fail!
Reply
#10

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
You are a noob and this script is an epic fail!
+1.

This is your /mute command, which is idented as fuck.

pawn Код:
dcmd_mute(playerid,params[])
{
    new
        Reason[256],
        pID,
        i;
    if(Player[playerid][admin] < 1){
        return SendClientMessage(playerid,COLOR_RED,"You Dont Have Right To Use This Command!");
        }
    if(sscanf(params,"us",pID,Reason)){
        return SendClientMessage(playerid,COLOR_RED,"|| Usage: /mute [playerid] [reason] ||");
        }
    if(!IsPlayerConnected(pID)) {
        return SendClientMessage(playerid,COLOR_RED,"Nobody is connected with this ID!");
        }
    if(playerid == pID){
        return SendClientMessage(playerid,COLOR_RED,"You Can`t MUTE Yourself");
        }
    if(Player[pID][admin] < Player[pID][admin]){
        return SendClientMessage(playerid,COLOR_RED,"You Can`t MUTE A High Ranked Admin");
        }
    new
            name[MAX_PLAYER_NAME],
            string[256], string2[256], string3[256], string4[256];
    GetPlayerName(pID,name,sizeof(name));
    format(string,sizeof(string),"**(ADMIN MUTE)** %s(%d) %s READ /Rules",name,pID,Reason);
    format(string2,sizeof(string2),"%s(%d)(Has Been Forced To Read Rules)",name,pID);
    format(string3,sizeof(string3),"You Have Been MUTED By Admin For Reason: %s",Reason);
    format(string4, sizeof(string4), "You Have MUTED %s(%d) For: %s",name, pID, Reason);
    SendClientMessageToAll(COLOR_RED,string);
    SendClientMessageToAll(COLOR_RED,string2);
    SendClientMessage(pID, COLOR_RED, string3);
    SendClientMessage(i, COLOR_RED, string4);
    SaveToFile("MuteWarnings",string); Muted[pID] = 1;
    return 1;
}

This is my command.
pawn Код:
CMD:mute(playerid, params[])
{
    if (P_DATA[ playerid ][ P_Level ] < 2)return SendError( playerid, "You are not allowed to use this command"),SendClientMessage(playerid, COLOR_WHITE, "REASON: Low level!");
    if (P_DATA[ playerid ][ P_LoggedIN ] == 0)return SendError( playerid, "Please login to use this command!");
    if ( sscanf( params, "us", params[ 0 ], params[ 1 ]) )return SendUsage( playerid, "/mute <id> [reason]" );
    if ( !IsPlayerConnected( params[ 0 ] ) )return SendError( playerid, "Player is not connected!");
    if (P_DATA[ params[ 0 ] ][ P_Level ] > P_DATA[ playerid ][ P_Level ])return SendError( playerid, "You have no rights to use admin commands on higher admins!");
    if (P_DATA[ playerid ][ P_Muted ] == 1)return SendError( playerid, "Player is already muted");
    if (P_DATA[ params[ 0 ] ][ P_Level ] > P_DATA[ playerid ][ P_Level ])return SendError( playerid, "You have no rights to use admin commands on higher admins!");
    if( params[ 0 ] == playerid )return SendError( playerid, "You can't mute yourself!");
    FormMessageForAllEx(playerid,COLOR_GREEN, "Administrator %s muted %s! [Reason: %s]",PlayerName2( playerid ), PlayerName2( params[ 0 ] ), params[ 1 ]);
    FormMessage( params[ 0 ], COLOR_GREEN, "Administrator %s muted you! [Reason: %s ]",PlayerName2( playerid ), params[ 1 ]);
    FormMessage( playerid, COLOR_GREEN, "You have muted %s [Reason: %s]",PlayerName2( params[ 0 ] ), params[ 1 ]);
    P_DATA[ params[ 0 ] ][ P_Muted ] = 1;
    return 1;
}
And true, this is a fail.

Also i hate it when people use SSCANF with DCMD ...When ZCMD is clearly faster
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)