else if(PlayerInfo[playerid][pAdmin] >= 2) { new string[128]; format(string, sizeof(string), "(( Administrator %s: %s ))", GetPlayerNameEx(playerid), params); OOCOff(COLOR_OOC,string); } |
stock GetAdminLvlName(playerid)
{
new str[64];
if (PlayerInfo[playerid][pAdmin] == 2) str = ("Junior Administrator");
if (PlayerInfo[playerid][pAdmin] == 3) str = ("General Administrator");
if (PlayerInfo[playerid][pAdmin] == 1337) str = ("Co-Head Administrator");
if (PlayerInfo[playerid][pAdmin] == 1338) str = ("Head Administrator");
if (PlayerInfo[playerid][pAdmin] == 99998) str = ("Co-Executive Administrator");
if (PlayerInfo[playerid][pAdmin] == 99999) str = ("Executive Administrator");
return str;
}
CMD:o(playerid,params[]) // CMD for ooc chat
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
new sendername[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(isnull(params)) return SendClientMessage(playerid,-1,"USAGE: /(o)oc [text]");
format(string, sizeof(string), "(( [%s] %s: %s ))", GetAdminLvlName(playerid), sendername, params);
OOCOff(COLOR_OOC,string);
}
else SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use this command !");
return 1;
}
CMD:ooc(playerid, params[]) return cmd_o(playerid, params);
Its not working and i say with colors
soo someone can give me what i say? [ Work! ] |