Advertisement
Rei_Ayanami

OnPlayerText

May 23rd, 2021 (edited)
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.23 KB | None | 0 0
  1. public OnPlayerText(playerid, text[])
  2. {
  3. LogarConta(playerid);
  4. new string[600];
  5.  
  6. if(!strcmp(Chars, text, false) && end_reaction == 1)
  7. {
  8. format(string, sizeof(string), "[CONCURSO] {afafaf}%s[%d]: "white"venceu o concurso e recebeu "green"$10000 + 5 score", pName(playerid), playerid);
  9. SendClientMessageToAll(Vermelho, string);
  10. format(string, sizeof(string), "```[CONCURSO] %s[%d]: venceu o concurso e recebeu $10000 + 5 score```", pName(playerid), playerid);
  11. DCC_SendChannelMessage(g_Discord_Chat, string);
  12. GivePlayerMoney(playerid, 10000);
  13. User[playerid][accountReact]++;
  14. SetPlayerScore(playerid, GetPlayerScore(playerid) + 5);
  15. format(Chars, sizeof Chars, "");
  16. end_reaction = 0;
  17. KillTimer(timers[2]);
  18. return 0;
  19. }
  20.  
  21. //Sistema de Anti-DivulgacaoA
  22. if(strfind(text, "bpc", true) != -1 || strfind(text, "bpv", true) != -1 || strfind(text, "b.p.c", true) != -1 || strfind(text, "b.p.v", true) != -1 || strfind(text, ":7777", true) != -1 || strfind(text, "Brasil P", true) != -1
  23. || strfind(text, "b p c", true) != -1 || strfind(text, "b p v", true) != -1 || strfind(text, "b pc", true) != -1 || strfind(text, "NWD", true) != -1 || strfind(text, "N W D", true) != -1)
  24. {
  25. SendClientMessage(playerid, COR_VERMELHO, "</Anti-Cheater> Voce foi kickado por suspeita de divulgacao de Servidores!");
  26. return Kick(playerid), 0;
  27. }
  28. if(strfind(text, "server lixo esse", true) != -1 || strfind(text, "BMDG lixo", true) != -1 || strfind(text, "vtmnc staff", true) != -1)
  29. {
  30. Kick(playerid);
  31. return 0;
  32. }
  33.  
  34. //Sistema de mutar
  35. if(User[playerid][accountMuted] == 1)
  36. {
  37. format(string, sizeof(string), "» {ffffff}Voce esta bloqueado no chat, por favor aguarde {ffaf00}%d {ffffff}segundo.", User[playerid][accountMuteSec]);
  38. SendClientMessage(playerid, Vermelho, string);
  39. return 0;
  40. }
  41.  
  42. if(text[0] == ';'){ChatProximo(playerid, COLOUR_CHATPROX, text[1]);return 0;}
  43.  
  44. format(string, sizeof(string), "```%s: %s```", pName(playerid), text);
  45. DCC_SendChannelMessage(g_Discord_Chat, string);
  46.  
  47. SetPlayerChatBubble(playerid, text, 0x21DD00FF, 100.0, 10000);
  48. if(AdminDuty[playerid] == 1 && IsPlayerAdmin(playerid))
  49. {
  50. format(string, sizeof(string), "[{ff2400}RCON{ffffff}] %s[%d]: {afafaf}%s", pName(playerid), playerid, text);
  51. SendClientMessageToAll(-1, string);
  52. return 1;
  53. }
  54. if(User[playerid][accountAdmin] == 6 && AdminDuty[playerid] == 1)
  55. {
  56. format(string, sizeof(string), "[{ff2400}Fundador{ffffff}] %s[%d]: {afafaf}%s", pName(playerid), playerid, text);
  57. SendClientMessageToAll(-1, string);
  58. return 1;
  59. }
  60.  
  61. if(User[playerid][accountAdmin] == 5 && AdminDuty[playerid] == 1)
  62. {
  63. format(string, sizeof(string), "[{FF029E}Dono{ffffff}] %s[%d]: {afafaf}%s", pName(playerid), playerid, text);
  64. SendClientMessageToAll(-1, string);
  65. return 1;
  66. }
  67.  
  68. if(User[playerid][accountAdmin] == 4 && AdminDuty[playerid] == 1)
  69. {
  70. format(string, sizeof(string), "[{F6EE02}Diretor{ffffff}] %s[%d]: {afafaf}%s", pName(playerid), playerid, text);
  71. SendClientMessageToAll(-1, string);
  72. return 1;
  73. }
  74.  
  75. if(User[playerid][accountAdmin] == 3 && AdminDuty[playerid] == 1)
  76. {
  77. format(string, sizeof(string), "[{44FF04}Staff{ffffff}] %s[%d]: {afafaf}%s", pName(playerid), playerid, text);
  78. SendClientMessageToAll(-1, string);
  79. return 1;
  80. }
  81.  
  82. if(User[playerid][accountAdmin] == 2 && AdminDuty[playerid] == 1)
  83. {
  84. format(string, sizeof(string), "[{44FF04}Administrador{ffffff}] %s[%d]: {afafaf}%s", pName(playerid), playerid, text);
  85. SendClientMessageToAll(-1, string);
  86. return 1;
  87. }
  88.  
  89. if(User[playerid][accountAdmin] == 1 && AdminDuty[playerid] == 1)
  90. {
  91. format(string, sizeof(string), "[{FF9C00}Moderador{ffffff}] %s[%d]: {afafaf}%s", pName(playerid), playerid, text);
  92. SendClientMessageToAll(-1, string);
  93. return 1;
  94. }
  95.  
  96. if(AdminDuty[playerid] == 0 && IsPlayerVIP(playerid))
  97. {
  98. format(string, sizeof(string), "[{FDF400}VIP{ffffff}] %s[%d]: {afafaf}%s", pName(playerid), playerid, text);
  99. SendClientMessageToAll(-1, string);
  100. return 1;
  101. }
  102. else
  103. {
  104. format(string, sizeof(string), "%s[%d] diz: {afafaf}%s", pName(playerid), playerid, text);
  105. SendClientMessageToAll(-1, string);
  106. }
  107. return 1;
  108. }
  109.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement