How i can make me Admin???
#1

Hello Guys
Im new and i have now The South-West Roleplay Gamemode
But i have a BAAD Problem
I cant make me Admin.
When i Change the .ini i cant log in because they say my password is wrong.
I have try`d so many things but nothing works.
Can please anyone help me
Reply
#2

That's a GF problem.
Try to login as RCON,then /makeadmin or wichever is your cmd
Reply
#3

its not working
anyone else who have this gamemode can say me how
Reply
#4

Well, you have to go into the admin script, and change the command to make someone admin into RCON admin, how to do this?
well, gimme the code of the /makeadmin command, then I quick make it that you can become admin in your server easly ; )
Reply
#5

Quote:
Originally Posted by knackworst
Посмотреть сообщение
Well, you have to go into the admin script, and change the command to make someone admin into RCON admin, how to do this?
well, gimme the code of the /makeadmin command, then I quick make it that you can become admin in your server easly ; )
if(strcmp(cmd, "/makeadmin", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "[CMDINFO]: /makeadmin [playerid] [Level]");
return 1;
}
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
new level = strval(tmp);
if(level < 0 || level > 4) { SendClientMessage(playerid, COLOR_RED, "[ERROR:] 0-10 = Valid Levels."); return 1; }
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
format(string, sizeof(string), "%s has made %s a server admin", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
Adminmsg(string);

format(string, sizeof(string), "%s has made you a server admin level %d, congratulations. Your commands are /admcmds (or /ah, or /acmds)", GetPlayerNameEx(playerid), level, GetPlayerNameEx(giveplayerid));
SendClientMessage(giveplayerid, COLOR_RED, string);
PlayerInfo[giveplayerid][pAdmin] = level;
return 1;
}
}
}
}
Reply
#6

Ok please make this
Quote:

if(strcmp(cmd, "/makeadmin", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "[CMDINFO]: /makeadmin [playerid] [Level]");
return 1;
}
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
new level = strval(tmp);
if(level < 0 || level > 4) { SendClientMessage(playerid, COLOR_RED, "[ERROR:] 0-10 = Valid Levels."); return 1; }
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
format(string, sizeof(string), "%s has made %s a server admin", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
Adminmsg(string);

format(string, sizeof(string), "%s has made you a server admin level %d, congratulations. Your commands are /admcmds (or /ah, or /acmds)", GetPlayerNameEx(playerid), level, GetPlayerNameEx(giveplayerid));
SendClientMessage(giveplayerid, COLOR_RED, string);
PlayerInfo[giveplayerid][pAdmin] = level;
return 1;
}
}
}
}

Reply
#7

pawn Код:
if(strcmp(cmd, "/makeadmin", true) == 0)
        {
                     if(IsPlayerAdmin(playerid))
                      {
                        format(string, sizeof(string), "%s has made %s a server admin", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
                        Adminmsg(string);

                        format(string, sizeof(string), "%s has made you a server admin level %d, congratulations. Your commands are /admcmds (or /ah, or /acmds)", GetPlayerNameEx(playerid), level, GetPlayerNameEx(giveplayerid));
                        SendClientMessage(giveplayerid, COLOR_RED, string);
                        PlayerInfo[giveplayerid][pAdmin] = level;
                        }
            if(PlayerInfo[playerid][pAdmin] >= 4)
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_WHITE, "[CMDINFO]: /makeadmin [playerid] [Level]");
                    return 1;
                }
                giveplayerid = ReturnUser(tmp);
                tmp = strtok(cmdtext, idx);
                new level = strval(tmp);
                if(level < 0 || level > 4) { SendClientMessage(playerid, COLOR_RED, "[ERROR:] 0-10 = Valid Levels."); return 1; }
                if(IsPlayerConnected(giveplayerid))
                {
                    if(giveplayerid != INVALID_PLAYER_ID)
                    {
                         if(IsPlayerAdmin(playerid))
                        {
                        format(string, sizeof(string), "%s has made %s a server admin", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
                                  Adminmsg(string);

                             format(string, sizeof(string), "%s has made you a server admin level %d, congratulations. Your commands are /admcmds (or /ah, or /acmds)", GetPlayerNameEx(playerid), level, GetPlayerNameEx(giveplayerid));
                                  SendClientMessage(giveplayerid, COLOR_RED, string);
                             PlayerInfo[giveplayerid][pAdmin] = level;
                        }
                        format(string, sizeof(string), "%s has made %s a server admin", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
                        Adminmsg(string);

                        format(string, sizeof(string), "%s has made you a server admin level %d, congratulations. Your commands are /admcmds (or /ah, or /acmds)", GetPlayerNameEx(playerid), level, GetPlayerNameEx(giveplayerid));
                        SendClientMessage(giveplayerid, COLOR_RED, string);
                        PlayerInfo[giveplayerid][pAdmin] = level;
                        return 1;
                    }
                }
            }
        }
Do this...and login as RCON,then use /makeadmin
Reply
#8

In this Part are two errors
format(string, sizeof(string), "%s has made you a server admin level %d, congratulations. Your commands are /admcmds (or /ah, or /acmds)", GetPlayerNameEx(playerid), level, GetPlayerNameEx(giveplayerid));
SendClientMessage(giveplayerid, COLOR_RED, string);
PlayerInfo[giveplayerid][pAdmin] = level;
Reply
#9

Quote:
Originally Posted by HitmanEyE
Посмотреть сообщение
In this Part are two errors
format(string, sizeof(string), "%s has made you a server admin level %d, congratulations. Your commands are /admcmds (or /ah, or /acmds)", GetPlayerNameEx(playerid), level, GetPlayerNameEx(giveplayerid));
SendClientMessage(giveplayerid, COLOR_RED, string);
PlayerInfo[giveplayerid][pAdmin] = level;
Show me your error log
Reply
#10

Quote:
Originally Posted by HitmanEyE
Посмотреть сообщение
In this Part are two errors
format(string, sizeof(string), "%s has made you a server admin level %d, congratulations. Your commands are /admcmds (or /ah, or /acmds)", GetPlayerNameEx(playerid), level, GetPlayerNameEx(giveplayerid));
SendClientMessage(giveplayerid, COLOR_RED, string);
PlayerInfo[giveplayerid][pAdmin] = level;
what errors?

This forum requires that you wait 120 seconds between posts. Please try again in 43 seconds.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)