Problem with /o chat
#1

When I go in game and chat in /o it does not come up with your Admin Rank, it only said 'Administrator', can anyone help me to get this set to the correct player rank!?

Code:
Quote:

CMD: o(playerid, params[])
{
if(gPlayerLogged{playerid} == 0)
{
SendClientMessageEx(playerid, COLOR_GREY, "You're not logged in.");
return 1;
}
if ((noooc) && (PlayerInfo[playerid][pAdmin] < 2 && EventKernel[EventCreator] != playerid && PlayerInfo[playerid][pDonateRank] < 6 && !OOCPower[playerid] && PlayerInfo[playerid][pHelper] < 4))
{
SendClientMessageEx(playerid, COLOR_GRAD2, " The OOC channel has been disabled by an Admin!");
return 1;
}
if(gOoc[playerid])
{
SendClientMessageEx(playerid, TEAM_CYAN_COLOR, " You have disabled OOC Chat, re-enable with /togooc!");
return 1;
}
if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: (/o)oc [ooc chat]");

if(PlayerInfo[playerid][pAdmin] == 1)
{
new string[128];
format(string, sizeof(string), "(( Moderator %s: %s ))", GetPlayerNameEx(playerid), params);
OOCOff(COLOR_OOC,string);
}
else if(PlayerInfo[playerid][pAdmin] >= 2)
{
new string[128];
format(string, sizeof(string), "(( Administrator %s: %s ))", GetPlayerNameEx(playerid), params);
OOCOff(COLOR_OOC,string);
}
else if(PlayerInfo[playerid][pAdmin] >= 999999)
{
new string[128];
format(string, sizeof(string), "(( Server Owner %s: %s ))", GetPlayerNameEx(playerid), params);
OOCOff(COLOR_OOC,string);
}
else if(PlayerInfo[playerid][pHelper] >= 2)
{
new string[128];
format(string, sizeof(string), "(( Community Advisor %s: %s ))", GetPlayerNameEx(playerid), params);
OOCOff(COLOR_OOC,string);
return 1;
}
else if(PlayerInfo[playerid][pDonateRank] == 6)
{
new string[128];
format(string, sizeof(string), "(( Special Moderator %s: %s ))", GetPlayerNameEx(playerid), params);
OOCOff(COLOR_OOC,string);
return 1;
}
else if(PlayerInfo[playerid][pAdmin] < 1 && PlayerInfo[playerid][pHelper] <= 2)
{
new string[128];
format(string, sizeof(string), "(( %s: %s ))", GetPlayerNameEx(playerid), params);
OOCOff(COLOR_OOC,string);
return 1;
}
return 1;
}

Reply


Messages In This Thread
Problem with /o chat - by JordanSmith - 19.07.2014, 22:28
Respuesta: Problem with /o chat - by Xabi - 19.07.2014, 22:34
Re : Problem with /o chat - by S4t3K - 19.07.2014, 22:35
Re: Problem with /o chat - by [CG]Milito - 19.07.2014, 22:36
Re: Problem with /o chat - by JordanSmith - 19.07.2014, 22:43
Re : Problem with /o chat - by S4t3K - 19.07.2014, 23:10
Re: Problem with /o chat - by JordanSmith - 19.07.2014, 23:22
Re: Problem with /o chat - by sammp - 19.07.2014, 23:36
Re: Problem with /o chat - by JordanSmith - 20.07.2014, 12:38

Forum Jump:


Users browsing this thread: 1 Guest(s)