[FilterScript] Rcon Admin System v1 (ZCMD + SSCANF2)
#1

Rcon Admin System Version 1

||>> hey guys, im goin to released my Rcon Admin System v1 [RASV1]
||>> This is a simple Rcon Admin System , using ZCMD + SSCANF2.

||>> Requirement:
||>> zcmd by Zeex = https://sampforum.blast.hk/showthread.php?tid=91354
||>> sscanf2 by ****** = https://sampforum.blast.hk/showthread.php?tid=120356

||>> There is only a few Commands added in v1, more in the next update v2

||>> Download Link:
||>> http://pastebin.com/f3mLygE3
||>> http://www.mediafire.com/?58ls4o16xb29691

This is my first admin script if im wrong tell me

||>> Edit:Miss /rgod /rungod on rcmd
Reply
#2

Nice 8/10 Rep+
Reply
#3

Quote:
Originally Posted by [MK]Man_Deep
Посмотреть сообщение
Nice 8/10 Rep+
thanks Man_Deep, i will work hard on the next version
adding more feuture's
Reply
#4

wrong
pawn Код:
CMD:rkick(playerid, params[])

{

        new pID, reason[128], string[256], pName1[MAX_PLAYER_NAME], pName2[MAX_PLAYER_NAME];

    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1,"You are not Rcon Admin!");

        if(sscanf(params,"us[128]",pID,reason)) return SendClientMessage(playerid,-1, "[USAGE]:/rkick [Playerid/PartOfName] [Reason]");

        if (pID==INVALID_PLAYER_ID)SendClientMessage(playerid,-1,"[ERROR]:Player not found!");

    else if(!IsPlayerConnected(pID)) return SendClientMessage(playerid,-1,"[ERROR]:Player is not Connected!");

        else

        {

                GetPlayerName(playerid, pName1, sizeof(pName1));

                GetPlayerName(pID, pName2, sizeof(pName2));

                format(string, sizeof(string),"Rcon Admin %s has RKICK %s from this server ( Reason: %s )", pName1, pName2, reason);

        SendClientMessageToAll(-1, string);

        }

        return 1;

}
where is Kick(pID); ??.....
+ recomand you using foreach in next version gg nice for a begginer..

pawn Код:
CMD:rkick(playerid, params[])

{

        new pID, reason[128], string[256], pName1[MAX_PLAYER_NAME], pName2[MAX_PLAYER_NAME];

    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1,"You are not Rcon Admin!");

        if(sscanf(params,"us[128]",pID,reason)) return SendClientMessage(playerid,-1, "[USAGE]:/rkick [Playerid/PartOfName] [Reason]");

        if (pID==INVALID_PLAYER_ID)SendClientMessage(playerid,-1,"[ERROR]:Player not found!");

    else if(!IsPlayerConnected(pID)) return SendClientMessage(playerid,-1,"[ERROR]:Player is not Connected!");

        else

        {

                GetPlayerName(playerid, pName1, sizeof(pName1));

                GetPlayerName(pID, pName2, sizeof(pName2));

                format(string, sizeof(string),"Rcon Admin %s has RKICK %s from this server ( Reason: %s )", pName1, pName2, reason);

        SendClientMessageToAll(-1, string);
            Kick(pID);
        }

        return 1;

}
Reply
#5

Nice work +rep
Reply
#6

Great work, But one thing,
It's same like Admin system but instead it became RCON lol.
Anw good. 8/10 with the error 7/10.
Reply
#7

Quote:
Originally Posted by XStormiest
Посмотреть сообщение
wrong
pawn Код:
CMD:rkick(playerid, params[])

{

        new pID, reason[128], string[256], pName1[MAX_PLAYER_NAME], pName2[MAX_PLAYER_NAME];

    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1,"You are not Rcon Admin!");

        if(sscanf(params,"us[128]",pID,reason)) return SendClientMessage(playerid,-1, "[USAGE]:/rkick [Playerid/PartOfName] [Reason]");

        if (pID==INVALID_PLAYER_ID)SendClientMessage(playerid,-1,"[ERROR]:Player not found!");

    else if(!IsPlayerConnected(pID)) return SendClientMessage(playerid,-1,"[ERROR]:Player is not Connected!");

        else

        {

                GetPlayerName(playerid, pName1, sizeof(pName1));

                GetPlayerName(pID, pName2, sizeof(pName2));

                format(string, sizeof(string),"Rcon Admin %s has RKICK %s from this server ( Reason: %s )", pName1, pName2, reason);

        SendClientMessageToAll(-1, string);

        }

        return 1;

}
where is Kick(pID); ??.....
+ recomand you using foreach in next version gg nice for a begginer..

pawn Код:
CMD:rkick(playerid, params[])

{

        new pID, reason[128], string[256], pName1[MAX_PLAYER_NAME], pName2[MAX_PLAYER_NAME];

    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1,"You are not Rcon Admin!");

        if(sscanf(params,"us[128]",pID,reason)) return SendClientMessage(playerid,-1, "[USAGE]:/rkick [Playerid/PartOfName] [Reason]");

        if (pID==INVALID_PLAYER_ID)SendClientMessage(playerid,-1,"[ERROR]:Player not found!");

    else if(!IsPlayerConnected(pID)) return SendClientMessage(playerid,-1,"[ERROR]:Player is not Connected!");

        else

        {

                GetPlayerName(playerid, pName1, sizeof(pName1));

                GetPlayerName(pID, pName2, sizeof(pName2));

                format(string, sizeof(string),"Rcon Admin %s has RKICK %s from this server ( Reason: %s )", pName1, pName2, reason);

        SendClientMessageToAll(-1, string);
            Kick(pID);
        }

        return 1;

}
thanks for the info;
miss scripts xD
add Kick(pID);

anyway thanks all for the comment .
Reply
#8

bug...
Reply
#9

I suggest you to make a non-RCON admin system with a INI system.
About Work: Good.
Reply
#10

Nice Admin System.
+Rep
8/10 for this cool FS.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)