Rcon command, that makes you admin.
#1

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

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;
}
Reply
#3

I'm using strcmp
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)