you do not have the necessary administrative rank
#1

Hello ! I have a TheGodfather RPG server and I want to add a player in a faction . I am connected with the RCON admin level in 1337 , and still says it did not rank required.
Excuse my English, my respects !

Off Topic: You might try to help me with a good RPG gamemode ? I really need a nice gamemode with many commands. Please!

Photo :
Reply
#2

Did you try admin level 99999?
Reply
#3

Wait a minute , try now! I will come back to edit
Reply
#4

Well if it doesnt work, paste the cmd:makeleader code here.
Reply
#5

//----------------------------------[MAKELEADER]------------------------------------------------
if(strcmp(cmd, "/makeleader", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "{00E6FF}UTILIZARE:{FFFFFF} /makeleader [playerid/PartOfName] [Number(1-1]");
SendClientMessage(playerid, 0x33CCFFAA, "1.Police Departament || 2.Federal Bureau of Investigation || 3.NationalGuard || 4.Medic ");
SendClientMessage(playerid, 0x33CCFFAA, "5.The Mafia || 6.The Triads || 7.TCC || 8.Hitman || 9.News Reporter");
SendClientMessage(playerid, 0x33CCFFAA, "10.Taxi || 11.School Instructor || 12.Primar || 15.Los Santos Vagos || 16.Varrios Los Aztecas");
SendClientMessage(playerid, 0x33CCFFAA, "17.Ballas || 18.Grove Street");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(level > 18 || level < 0) { SendClientMessage(playerid, COLOR_GREY, " Dont go below number 0, or above number 18!"); return 1; }
if (PlayerInfo[playerid][pAdmin] >= 133
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
if(PlayerInfo[para1][pMember] > 0 || PlayerInfo[para1][pFMember] < 255)
{
SendClientMessage(playerid, COLOR_GREY, " That player is in a Faction / Family !");
return 1;
}
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pLeader] = level;
format(string, sizeof(string), " You have been promoted to Leader to your requested Faction by Admin %s", sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), " You have given %s control to run Faction Number %d.", giveplayer,level);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
if(level == 0) { PlayerInfo[para1][pChar] = 0; }
else if(level == 1) { PlayerInfo[para1][pChar] = 288; } //Police Force
else if(level == 2) { PlayerInfo[para1][pChar] = 286; } //FBI/ATF
else if(level == 3) { PlayerInfo[para1][pChar] = 287; } //National Guard
else if(level == 4) { PlayerInfo[para1][pChar] = 228; } //Fire/Ambulance
else if(level == 5) { PlayerInfo[para1][pChar] = 113; gTeam[para1] = 5; } //Tha Mafie
else if(level == 6) { PlayerInfo[para1][pChar] = 120; gTeam[para1] = 6;} //The Triads
else if(level == 7) { PlayerInfo[para1][pChar] = 268; } //TOW CAR COMPANY
else if(level == { PlayerInfo[para1][pChar] = 294; } //Hitmans
else if(level == 9) { PlayerInfo[para1][pChar] = 227; } //News Reporters
else if(level == 10) { PlayerInfo[para1][pChar] = 61; } //Taxi Cab Company
else if(level == 11) { PlayerInfo[para1][pChar] = 171; } //Driving/Flying School
else if(level == 12) { PlayerInfo[para1][pChar] = 147; } //Mayor
else if(level == 15) { PlayerInfo[para1][pChar] = 110; gTeam[para1] = 15; } //Vagos
else if(level == 16) { PlayerInfo[para1][pChar] = 115; gTeam[para1] = 16; } //Aztecas
else if(level == 17) { PlayerInfo[para1][pChar] = 104; gTeam[para1] = 17; } //Ballas
else if(level == 1 { PlayerInfo[para1][pChar] = 271; gTeam[para1] = 18; } //Grove
PlayerInfo[para1][pRank] = 6;
SetPlayerSkin(para1, PlayerInfo[para1][pChar]);
}
}//not connected
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "{09F7DF}DENITED: {ffffff}Nu ai rangul administrativ necesar!");
}
}
return 1;
}

if(strcmp(cmd, "/makeclubleader", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{00E6FF}UTILIZARE:{FFFFFF} /makeclubleader [playerid/PartOfName] [Number1-2]");
SendClientMessage(playerid, COLOR_GRAD2, "1.NFS CLUB");
SendClientMessage(playerid, COLOR_GRAD2, "2.NRG CLUB");
SendClientMessage(playerid, COLOR_GRAD2, "3.Bikers CLUB");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(level > 3 || level < 0) { SendClientMessage(playerid, COLOR_GREY, " Dont go below number 0, or above number 3!"); return 1; }
if (PlayerInfo[playerid][pAdmin] >= 133
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
if(PlayerInfo[para1][pClubMember] > 0)
{
SendClientMessage(playerid, COLOR_GREY, " That player is in a Club !");
return 1;
}
else
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pClubLeader] = level;
format(string, sizeof(string), " You have been promoted to Leader to your requested Club by Admin %s", sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), " You have given %s control to run Club Number %d.", giveplayer,level);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
PlayerInfo[para1][pClubRank] = 6;
}
}
}//not connected
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " {09F7DF}DENITED: {ffffff}Nu ai rangul administrativ necesar!");
}
}
return 1;
}
if(strcmp(cmd, "/forceskin", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{00E6FF}UTILIZARE:{FFFFFF} /forceskin [playerid/PartOfName]");
return 1;
}
new para1;
para1 = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 4)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
if(PlayerInfo[para1][pMember] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " That player is not in a Family / Force !");
return 1;
}
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* You are forced to Change your Skin by Admin %s.", sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* You have forced %s To change his Skin.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
if(PlayerInfo[para1][pMember] == 1) { PlayerInfo[para1][pTeam] = 5; ChosenSkin[para1] = 59; }
else if(PlayerInfo[para1][pMember] == 2) { PlayerInfo[para1][pTeam] = 6; ChosenSkin[para1] = 121; }
else if(PlayerInfo[para1][pMember] == 3) { PlayerInfo[para1][pTeam] = 7; ChosenSkin[para1] = 98; }
else if(PlayerInfo[para1][pMember] == 4) { PlayerInfo[para1][pTeam] = 8; ChosenSkin[para1] = 46; }
else if(PlayerInfo[para1][pMember] == 5) { PlayerInfo[para1][pTeam] = 9; ChosenSkin[para1] = 174; }
else if(PlayerInfo[para1][pMember] == 6) { PlayerInfo[para1][pTeam] = 2; ChosenSkin[para1] = 280; }
else if(PlayerInfo[para1][pMember] == 7) { PlayerInfo[para1][pTeam] = 2; ChosenSkin[para1] = 164; }
else if(PlayerInfo[para1][pMember] == { PlayerInfo[para1][pTeam] = 10; ChosenSkin[para1] = 186; }
else { return 1; }
SetPlayerInterior(para1,0);
new rand = random(sizeof(gInviteSpawns));
SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
TogglePlayerControllable(para1, 0);
SelectChar[para1] = 255;
SelectCharID[para1] = PlayerInfo[para1][pMember];
SelectCharPlace[para1] = 1;
PlayerInfo[para1][pModel] = ChosenSkin[para1];
PlayerInfo[para1][pChar] = ChosenSkin[para1];
SendClientMessage(para1, COLOR_LIGHTRED, "* Use 'next' to Select the char you want to use.");
SendClientMessage(para1, COLOR_LIGHTRED, "* If you've found the Char you want to use, type 'done'.");
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "{09F7DF}DENITED: {ffffff}Nu ai rangul administrativ necesar!");
}
}
return 1;
}
Reply
#6

Oh lol. Set your admin level to 1338 instead. Also you can use [pwn] next time and tick no smileys pls.
Reply
#7

i try now 1338
Reply
#8

hmm , now I level in 1338 , works to give leadership to give rank but does not work , what does ?

if(strcmp(cmd, "/givebounty", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{00E6FF}UTILIZARE:{FFFFFF} /givebounty [playerid/PartOfName] [points]");
return 1;
}
new playa;
new money;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
money = strval(tmp);
if (PlayerInfo[playerid][pClubLeader] == 1)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
GiveBounty(playa, money);
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s a primit %d Bounty Points de la %s.", giveplayer,money,sendername);
SendClubMessage(1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "%s a primit %d Bounty Points de la %s.", giveplayer,money,sendername);
ABroadCast(COLOR_LIGHTBLUE,string,1);
}
}
}
else if (PlayerInfo[playerid][pClubLeader] == 2)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
GiveBounty(playa, money);
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s a primit %d Bounty Points de la %s.", giveplayer,money,sendername);
SendClubMessage(2, COLOR_LIGHTBLUE, string);
}
}
}
else if (PlayerInfo[playerid][pClubLeader] == 3)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
GiveBounty(playa, money);
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s a primit %d Bounty Points de la %s.", giveplayer,money,sendername);
SendClubMessage(3, COLOR_LIGHTBLUE, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " {09F7DF}DENITED: {ffffff}Nu ai rangul administrativ necesar!");
}
}
return 1;
}
if(strcmp(cmd, "/clubgiverank", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{00E6FF}UTILIZARE:{FFFFFF} /clubgiverank [playerid/PartOfName] [Number(1-6)]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(level > 6 || level < 0) { SendClientMessage(playerid, COLOR_GREY, " Dont go below number 0, or above number 6!"); return 1; }
if(PlayerInfo[playerid][pClubLeader] == 1 && PlayerInfo[para1][pClubMember] != 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "Access denied!");
return 1;
}
if(PlayerInfo[playerid][pClubLeader] == 2 && PlayerInfo[para1][pClubMember] != 2)
{
SendClientMessage(playerid, COLOR_GRAD2, "Access denied!");
return 1;
}
if(PlayerInfo[playerid][pClubLeader] == 3 && PlayerInfo[para1][pClubMember] != 3)
{
SendClientMessage(playerid, COLOR_GRAD2, "Access denied!");
return 1;
}
if (PlayerInfo[playerid][pClubLeader] >= 1)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
if(level > PlayerInfo[para1][pClubRank])
{
if(level == 2)
{
if(PlayerInfo[para1][pBounty] >= 50000)
{
GiveBounty(para1, -50000);
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new rank = PlayerInfo[para1][pClubRank];
PlayerInfo[para1][pClubRank] = level;
format(string, sizeof(string), " You have been demoted to a lower Rank by Leader %s", sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), " You have given %s Club Rank %d.", giveplayer,level);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, 128, "{DC0C0C}[Info:] {FFFFFF}%s {FFFFFF}has given {33FF33}%s {FFFFFF}Club Rank {33FF33}%d - Old Rank: %d.", sendername,giveplayer,level,rank);
ABroadCast(COLOR_YELLOW,string,1);
}
else { SendClientMessage(playerid, COLOR_GRAD2, "Playerul nu are destule Bounty Points pentru acest rank!"); }
}
if(level == 3)
{
if(PlayerInfo[para1][pBounty] >= 100000)
{
GiveBounty(para1, -100000);
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new rank = PlayerInfo[para1][pClubRank];
PlayerInfo[para1][pClubRank] = level;
format(string, sizeof(string), " You have been demoted to a lower Rank by Leader %s", sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), " You have given %s Club Rank %d.", giveplayer,level);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, 128, "{DC0C0C}[Info:] {FFFFFF}%s {FFFFFF}has given {33FF33}%s {FFFFFF}Club Rank {33FF33}%d - Old Rank: %d.", sendername,giveplayer,level,rank);
ABroadCast(COLOR_YELLOW,string,1);
}
else { SendClientMessage(playerid, COLOR_GRAD2, "Playerul nu are destule Bounty Points pentru acest rank!"); }
}
if(level == 4)
{
if(PlayerInfo[para1][pBounty] >= 200000)
{
GiveBounty(para1, -200000);
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new rank = PlayerInfo[para1][pClubRank];
PlayerInfo[para1][pClubRank] = level;
format(string, sizeof(string), " You have been demoted to a lower Rank by Leader %s", sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), " You have given %s Club Rank %d.", giveplayer,level);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, 128, "{DC0C0C}[Info:] {FFFFFF}%s {FFFFFF}has given {33FF33}%s {FFFFFF}Club Rank {33FF33}%d - Old Rank: %d.", sendername,giveplayer,level,rank);
ABroadCast(COLOR_YELLOW,string,1);
}
else { SendClientMessage(playerid, COLOR_GRAD2, "Playerul nu are destule Bounty Points pentru acest rank!"); }
}
if(level == 5)
{
if(PlayerInfo[para1][pBounty] >= 400000)
{
GiveBounty(para1, -400000);
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new rank = PlayerInfo[para1][pClubRank];
PlayerInfo[para1][pClubRank] = level;
format(string, sizeof(string), " You have been demoted to a lower Rank by Leader %s", sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), " You have given %s Club Rank %d.", giveplayer,level);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, 128, "{DC0C0C}[Info:] {FFFFFF}%s {FFFFFF}has given {33FF33}%s {FFFFFF}Club Rank {33FF33}%d - Old Rank: %d.", sendername,giveplayer,level,rank);
ABroadCast(COLOR_YELLOW,string,1);
}
else { SendClientMessage(playerid, COLOR_GRAD2, "Playerul nu are destule Bounty Points pentru acest rank!"); }
}
}
else
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pClubRank] = level;
format(string, sizeof(string), " You have been demoted to a lower Rank by Leader %s", sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), " You have given %s Club Rank %d.", giveplayer,level);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, 128, "{DC0C0C}[Info:] {FFFFFF}%s {FFFFFF}has given {33FF33}%s {FFFFFF}Club Rank {33FF33}%d - Old Rank: %d.", sendername,giveplayer,level);
ABroadCast(COLOR_YELLOW,string,1);
}
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Nu esti autorizat sa folosesti aceasta comanda(Club Leaders Only)!");
}
}
return 1;
}
Reply
#9

First of all this is the wrong section.

Secondly, use [pawn] and insert your code in there.
Reply
#10

Quote:
Originally Posted by DaniceMcHarley
Посмотреть сообщение
First of all this is the wrong section.

Secondly, use [pawn] and insert your code in there.
Actually, its the correct section because this isnt a scripting error, rather leaning on knowledge.

If you want to give club rank or faction's, you need to make yourself the leader of said faction. Obviously however if you demoted yourself you wont be able to rank yourself back up without giving urself leadership again.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)