04.06.2014, 19:02
Hello everyone,
I have a problem with my nickname color part.
Players are able to change there nickname color. Works fine.
I have a color for admins only, works fine to. But Admins level 3 to level 8 have there own color. And level 9 to 10 must be have another color.
Wel I tried a lot, but admins level 8 can still use the level 9 and 10 admin color.
This is the part:
Hope anyone can learn me whats wrong with it.
Thanks.
I have a problem with my nickname color part.
Players are able to change there nickname color. Works fine.
I have a color for admins only, works fine to. But Admins level 3 to level 8 have there own color. And level 9 to 10 must be have another color.
Wel I tried a lot, but admins level 8 can still use the level 9 and 10 admin color.
This is the part:
pawn Код:
CMD:bosscolor(playerid, params[])
{
if(PlayerAcc[playerid][Log] == 1)
PlayerAcc[playerid][UseColor] = 1;
PlayerAcc[playerid][SaveColor] = COLOR_BOSS;
SetPlayerColor(playerid, PlayerAcc[playerid][SaveColor]);
if(PlayerAcc[playerid][Log] == 0) return SendClientMessage(playerid, COLOR_RED, "** You are not logged in, please login first.");
if(PlayerAcc[playerid][Admin] == 0) return SendClientMessage(playerid, -1,""orange"** Sorry, only admins level 9+ can use that command!");
if(PlayerAcc[playerid][Admin] == 1) return SendClientMessage(playerid, -1,""orange"** Sorry, only admins level 9+ can use that command!");
if(PlayerAcc[playerid][Admin] == 2) return SendClientMessage(playerid, -1,""orange"** Sorry, only admins level 9+ can use that command!");
if(PlayerAcc[playerid][Admin] == 3) return SendClientMessage(playerid, -1,""orange"** Sorry, only admins level 9+ can use that command!");
if(PlayerAcc[playerid][Admin] == 4) return SendClientMessage(playerid, -1,""orange"** Sorry, only admins level 9+ can use that command!");
if(PlayerAcc[playerid][Admin] == 5) return SendClientMessage(playerid, -1,""orange"** Sorry, only admins level 9+ can use that command!");
if(PlayerAcc[playerid][Admin] == 6) return SendClientMessage(playerid, -1,""orange"** Sorry, only admins level 9+ can use that command!");
if(PlayerAcc[playerid][Admin] == 7) return SendClientMessage(playerid, -1,""orange"** Sorry, only admins level 9+ can use that command!");
if(PlayerAcc[playerid][Admin] == 8) return SendClientMessage(playerid, -1,""orange"** Sorry, only admins level 9+ can use that command!");
if(PlayerAcc[playerid][Admin] >= 9)
{
{
SetPlayerColor(playerid, COLOR_BOSS);
SendClientMessage(playerid, COLOR_YELLOW, "** You have succesfully changed your nickname color in the Management/Owner color.");
}
}
else return ErrorMessages(playerid, 7);
return 1;
}
Thanks.