Heey,
ich habe mir gerade eben CitY-Roleplay geladen, ich finde es ist ein super Script. Okay, MEIN_Name.ini gesucht, ADMLVL geändert in 1337 und wollt mal /makeleader machen. von wegen: youre not authorized to use this command:
//----------------------------------[MAKELEADER]------------------------------------------------
if(strcmp(cmd, "/makeleader", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /makeleader [playerid/PartOfName] [Number(1-16)]");
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] >= 1339)
{
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] = 283; } //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] = 276; } //Fire/Ambulance
else if(level == 5) { PlayerInfo[para1][pChar] = 113; } //La Cosa Nostra
else if(level == 6) { PlayerInfo[para1][pChar] = 120 && 59; } //Yakuza
else if(level == 7) { PlayerInfo[para1][pChar] = 147; } //Mayor
else if(level == 8) { PlayerInfo[para1][pChar] = 165; } //Hitmans
else if(level == 9) { PlayerInfo[para1][pChar] = 147; } //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] = 269; } //Bloods
else if(level == 13) { PlayerInfo[para1][pChar] = 271; } //Crips
else if(level == 14) { PlayerInfo[para1][pChar] = 110; } //Vagos
else if(level == 15) { PlayerInfo[para1][pChar] = 124; } //Atzecas
else if(level == 16) { PlayerInfo[para1][pChar] = 285; } //Swat
else if(level == 17) { PlayerInfo[para1][pChar] = 71; } //Zoll
else if(level == 18) { PlayerInfo[para1][pChar] = 115; } //Bloodz
gTeam[para1] = 11;
PlayerInfo[para1][pTeam] = 11;
SetPlayerSkin(para1, PlayerInfo[para1][pChar]);
}
}//not connected
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
}
}
return 1;
}
Es wäre nett, wenn jemand mir helfen könnte