SA-MP Forums Archive
Rcon command, that makes you admin. - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Rcon command, that makes you admin. (/showthread.php?tid=398707)



Rcon command, that makes you admin. - Robinn - 10.12.2012

Can someone give me a /Rcon command that makes you admin after doing /rcon login please.


Re: Rcon command, that makes you admin. - HireMe - 10.12.2012

pawn Код:
CMD:makemeadmin
{
    if(IsPlayerAdmin(playerid)) // checks if you are rcon admin
    {
        PlayerInfo[playerid][admin] = level; // edit this to your admin system and replace level for the admin rank level
    }
    else
        {
                return SendClientMessage(playerid, C_RED, "WARNING: You do not have access to this command.");
    }
    return 1;
}



Re: Rcon command, that makes you admin. - Robinn - 10.12.2012

I'm using strcmp


Re: Rcon command, that makes you admin. - Mr.Anonymous - 11.12.2012

Quote:
Originally Posted by HireMe
Посмотреть сообщение
pawn Код:
CMD:makemeadmin
{
    if(IsPlayerAdmin(playerid)) // checks if you are rcon admin
    {
        PlayerInfo[playerid][admin] = level; // edit this to your admin system and replace level for the admin rank level
    }
    else
        {
                return SendClientMessage(playerid, C_RED, "WARNING: You do not have access to this command.");
    }
    return 1;
}
That's not a RCON command. It's not even proper.

Robinn: As far as I know, there is no RCON command to set yourself admin. Visit here to view all RCON commands:
https://sampwiki.blast.hk/wiki/RCON#RCON_Commands