Posts: 20
Threads: 5
Joined: Mar 2013
Reputation:
0
Hi, I have this problem with my serve, I cant make myself an 1338 admin.When i modify my user file it says incorrect password when I login.The /rcon login method doesen`t work either, it says I don`t have acces tothat command.Please help me with that!
Posts: 166
Threads: 25
Joined: Jul 2013
Reputation:
0
When you are editing the user file, make sure you are logged off the server.
Posts: 20
Threads: 5
Joined: Mar 2013
Reputation:
0
I am logged off.I shutdown the server also because it is hosted on my computer.
Posts: 154
Threads: 26
Joined: Aug 2013
Reputation:
0
check for The rcon Pass :
and if you puted The Right Numbers Or Deleted Some Thing -.-
Posts: 20
Threads: 5
Joined: Mar 2013
Reputation:
0
the password is correct because it says "You are succesfull logged as an admin now" but I have no acces to the /makeadmin command.
Posts: 232
Threads: 4
Joined: Apr 2013
You must show /makeadmin command here
Posts: 232
Threads: 4
Joined: Apr 2013
Change it to:
pawn Код:
if(strcmp(cmd, "/makeadmin", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (IsPlayerAdmin(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /makeadmin [playerid/PartOfName] [level(1-1339)]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pAdmin] = level;
printf("AdminInfo: %s has promoted %s to a level %d admin", sendername, giveplayer, level);
format(string, sizeof(string), "You have been promoted to a level %d admin by %s", level, sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "You have promoted %s to a level %d admin.", giveplayer,level);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "AdmInfo: {33CCFF}%s {FFFF00}has promoted {33CCFF}%s {FFFF00}to a level {33CCFF}%d {FFFF00}admin", sendername, giveplayer, level);
SendAdminMessage(COLOR_YELLOW, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_ORANGE, "DENIED: {FFFFFF}You are not authorized to use that command.");
}
}
return 1;
}
And rcon login and use /makeadmin
Posts: 20
Threads: 5
Joined: Mar 2013
Reputation:
0
but in this case wouldn`t any player make himself admin?