Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:g(playerid, params[])
- {
- if(gPlayerLogged{playerid} == 0)
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You're not logged in.");
- return 1;
- }
- if ((noooc) && (PlayerInfo[playerid][pAdmin] < 2 && !OOCPower[playerid]))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "The OOC channel has been disabled by an Admin!");
- return 1;
- }
- if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: (/g)lobal chat [global chat]");
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- new string[128];
- format(string, sizeof(string), "((Admin %s: {FFFFFF}%s ))", GetPlayerNameEx(playerid), params);
- OOCOff(OOC_Color,string);
- }
- else if(PlayerInfo[playerid][pAdmin] < 1 && PlayerInfo[playerid][pAdviser] < 2)
- {
- new string[128];
- format(string, sizeof(string), "(( %s: {FFFFFF}%s ))", GetPlayerNameEx(playerid), params);
- OOCOff(OOC_Color,string);
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment