Hyland

OOC Chat (/o)

Dec 20th, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. CMD:o(playerid, params[])
  2. {
  3. if(gPlayerLogged{playerid} == 0)
  4. {
  5. SendClientMessageEx(playerid, COLOR_GREY, "You're not logged in.");
  6. return 1;
  7. }
  8. if ((noooc) && PlayerInfo[playerid][pAdmin] < 2 && EventKernel[EventCreator] != playerid)
  9. {
  10. SendClientMessageEx(playerid, COLOR_GRAD2, " The OOC channel has been disabled by an Admin!");
  11. return 1;
  12. }
  13. if(gOoc[playerid])
  14. {
  15. SendClientMessageEx(playerid, TEAM_CYAN_COLOR, " You have disabled OOC Chat, re-enable with /noooc");
  16. return 1;
  17. }
  18. if(isnull(params)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: (/o)oc [ooc chat]");
  19.  
  20. if(PlayerInfo[playerid][pAdmin] == 1)
  21. {
  22. new string[128];
  23. format(string, sizeof(string), "(( {FFFF00}Server Moderator{FFFFFF} %s: %s ))", GetPlayerNameEx(playerid), params);
  24. OOCOff(COLOR_OOC,string);
  25.  
  26. }
  27. if(PlayerInfo[playerid][pAdmin] == 2)
  28. {
  29. new string[128];
  30. format(string, sizeof(string), "(({00FF00} Junior Admin{FFFFFF} %s: %s ))", GetPlayerNameEx(playerid), params);
  31. OOCOff(COLOR_OOC,string);
  32.  
  33.  
  34. }
  35. if(PlayerInfo[playerid][pAdmin] == 3)
  36. {
  37. new string[128];
  38. format(string, sizeof(string), "(({00FF00} General Admin{FFFFFF} %s: %s ))", GetPlayerNameEx(playerid), params);
  39. OOCOff(COLOR_OOC,string);
  40.  
  41. }
  42. if(PlayerInfo[playerid][pAdmin] == 4)
  43. {
  44. new string[128];
  45. format(string, sizeof(string), "(({{EE9A4D}} Senior Admin{FFFFFF} %s: %s ))", GetPlayerNameEx(playerid), params);
  46. OOCOff(COLOR_OOC,string);
  47.  
  48. }
  49. if(PlayerInfo[playerid][pAdmin] == 1337)
  50. {
  51. new string[128];
  52. format(string, sizeof(string), "(({{FF0000}}Head Admin{FFFFFF} %s: %s ))", GetPlayerNameEx(playerid), params);
  53. OOCOff(COLOR_OOC,string);
  54.  
  55. }
  56. if(PlayerInfo[playerid][pAdmin] == 1338)
  57. {
  58. new string[128];
  59. format(string, sizeof(string), "(({298EFF} Lead Head Admin{FFFFFF} %s:%s ))", GetPlayerNameEx(playerid), params);
  60. OOCOff(COLOR_OOC,string);
  61.  
  62. }
  63. if(PlayerInfo[playerid][pAdmin] == 99999)
  64. {
  65. new string[128];
  66. format(string, sizeof(string), "(({298EFF} Executive Admin{FFFFFF} %s: %s ))", GetPlayerNameEx(playerid), params);
  67. OOCOff(COLOR_OOC,string);
  68.  
  69. }
  70.  
  71. else if(PlayerInfo[playerid][pHelper] >= 2)
  72. {
  73. new string[128];
  74. format(string, sizeof(string), "(( {33CCCC}Community Advisor {FFFFFF}%s: %s ))", GetPlayerNameEx(playerid), params);
  75. OOCOff(COLOR_OOC,string);
  76. return 1;
  77. }
  78. else if(PlayerInfo[playerid][pAdmin] < 1 && PlayerInfo[playerid][pHelper] <= 2)
  79. {
  80. new string[128];
  81. format(string, sizeof(string), "(( Player %s:{FFFFFF} %s ))", GetPlayerNameEx(playerid), params);
  82. OOCOff(COLOR_OOC,string);
  83. return 1;
  84. }
  85. return 1;
  86. }
Advertisement
Add Comment
Please, Sign In to add comment