SA-MP Forums Archive
[FilterScript] Rcon Admin System v1 (ZCMD + SSCANF2) - 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] Rcon Admin System v1 (ZCMD + SSCANF2) (/showthread.php?tid=363981)



Rcon Admin System v1 (ZCMD + SSCANF2) - Devilxz97 - 29.07.2012

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



Re: Rcon Admin System v1 (ZCMD + SSCANF2) - [MK]Man_Deep - 29.07.2012

Nice 8/10 Rep+


Re: Rcon Admin System v1 (ZCMD + SSCANF2) - Devilxz97 - 29.07.2012

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


Re: Rcon Admin System v1 (ZCMD + SSCANF2) - XStormiest - 29.07.2012

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;

}



Re: Rcon Admin System v1 (ZCMD + SSCANF2) - P<3TS - 29.07.2012

Nice work +rep


Re: Rcon Admin System v1 (ZCMD + SSCANF2) - Majed - 29.07.2012

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.


Re: Rcon Admin System v1 (ZCMD + SSCANF2) - Devilxz97 - 30.07.2012

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 .


Re: Rcon Admin System v1 (ZCMD + SSCANF2) - Shane_Kingston - 05.10.2012

bug...


Re: Rcon Admin System v1 (ZCMD + SSCANF2) - Lordzy - 05.10.2012

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


Re: Rcon Admin System v1 (ZCMD + SSCANF2) - DeadLy™ - 05.10.2012

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