SA-MP Forums Archive
How i can make me 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How i can make me Admin??? (/showthread.php?tid=196722)



How i can make me Admin??? - HitmanEyE - 06.12.2010

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


Re: How i can make me Admin??? - SkizzoTrick - 06.12.2010

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


Re: How i can make me Admin??? - HitmanEyE - 06.12.2010

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


Re: How i can make me Admin??? - knackworst - 06.12.2010

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 ; )


Re: How i can make me Admin??? - HitmanEyE - 06.12.2010

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;
}
}
}
}


Re: How i can make me Admin??? - HitmanEyE - 06.12.2010

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;
}
}
}
}




Re: How i can make me Admin??? - SkizzoTrick - 06.12.2010

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


Re: How i can make me Admin??? - HitmanEyE - 06.12.2010

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;


Re: How i can make me Admin??? - SkizzoTrick - 06.12.2010

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


Re: How i can make me Admin??? - knackworst - 06.12.2010

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.