Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
- {
- 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 /noooc");
- return 1;
- }
- if(isnull(params)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: (/o)oc [ooc chat]");
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- new string[128];
- format(string, sizeof(string), "(( {FFFF00}Server Moderator{FFFFFF} %s: %s ))", GetPlayerNameEx(playerid), params);
- OOCOff(COLOR_OOC,string);
- }
- if(PlayerInfo[playerid][pAdmin] == 2)
- {
- new string[128];
- format(string, sizeof(string), "(({00FF00} Junior Admin{FFFFFF} %s: %s ))", GetPlayerNameEx(playerid), params);
- OOCOff(COLOR_OOC,string);
- }
- if(PlayerInfo[playerid][pAdmin] == 3)
- {
- new string[128];
- format(string, sizeof(string), "(({00FF00} General Admin{FFFFFF} %s: %s ))", GetPlayerNameEx(playerid), params);
- OOCOff(COLOR_OOC,string);
- }
- if(PlayerInfo[playerid][pAdmin] == 4)
- {
- new string[128];
- format(string, sizeof(string), "(({{EE9A4D}} Senior Admin{FFFFFF} %s: %s ))", GetPlayerNameEx(playerid), params);
- OOCOff(COLOR_OOC,string);
- }
- if(PlayerInfo[playerid][pAdmin] == 1337)
- {
- new string[128];
- format(string, sizeof(string), "(({{FF0000}}Head Admin{FFFFFF} %s: %s ))", GetPlayerNameEx(playerid), params);
- OOCOff(COLOR_OOC,string);
- }
- if(PlayerInfo[playerid][pAdmin] == 1338)
- {
- new string[128];
- format(string, sizeof(string), "(({298EFF} Lead Head Admin{FFFFFF} %s:%s ))", GetPlayerNameEx(playerid), params);
- OOCOff(COLOR_OOC,string);
- }
- if(PlayerInfo[playerid][pAdmin] == 99999)
- {
- new string[128];
- format(string, sizeof(string), "(({298EFF} Executive Admin{FFFFFF} %s: %s ))", GetPlayerNameEx(playerid), params);
- OOCOff(COLOR_OOC,string);
- }
- else if(PlayerInfo[playerid][pHelper] >= 2)
- {
- new string[128];
- format(string, sizeof(string), "(( {33CCCC}Community Advisor {FFFFFF}%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), "(( Player %s:{FFFFFF} %s ))", GetPlayerNameEx(playerid), params);
- OOCOff(COLOR_OOC,string);
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment