Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerText(playerid, text[])
- {
- LogarConta(playerid);
- new string[600];
- if(!strcmp(Chars, text, false) && end_reaction == 1)
- {
- format(string, sizeof(string), "[CONCURSO] {afafaf}%s[%d]: "white"venceu o concurso e recebeu "green"$10000 + 5 score", pName(playerid), playerid);
- SendClientMessageToAll(Vermelho, string);
- format(string, sizeof(string), "```[CONCURSO] %s[%d]: venceu o concurso e recebeu $10000 + 5 score```", pName(playerid), playerid);
- DCC_SendChannelMessage(g_Discord_Chat, string);
- GivePlayerMoney(playerid, 10000);
- User[playerid][accountReact]++;
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 5);
- format(Chars, sizeof Chars, "");
- end_reaction = 0;
- KillTimer(timers[2]);
- return 0;
- }
- //Sistema de Anti-DivulgacaoA
- 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
- || 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)
- {
- SendClientMessage(playerid, COR_VERMELHO, "</Anti-Cheater> Voce foi kickado por suspeita de divulgacao de Servidores!");
- return Kick(playerid), 0;
- }
- if(strfind(text, "server lixo esse", true) != -1 || strfind(text, "BMDG lixo", true) != -1 || strfind(text, "vtmnc staff", true) != -1)
- {
- Kick(playerid);
- return 0;
- }
- //Sistema de mutar
- if(User[playerid][accountMuted] == 1)
- {
- format(string, sizeof(string), "» {ffffff}Voce esta bloqueado no chat, por favor aguarde {ffaf00}%d {ffffff}segundo.", User[playerid][accountMuteSec]);
- SendClientMessage(playerid, Vermelho, string);
- return 0;
- }
- if(text[0] == ';'){ChatProximo(playerid, COLOUR_CHATPROX, text[1]);return 0;}
- format(string, sizeof(string), "```%s: %s```", pName(playerid), text);
- DCC_SendChannelMessage(g_Discord_Chat, string);
- SetPlayerChatBubble(playerid, text, 0x21DD00FF, 100.0, 10000);
- if(AdminDuty[playerid] == 1 && IsPlayerAdmin(playerid))
- {
- format(string, sizeof(string), "[{ff2400}RCON{ffffff}] %s[%d]: {afafaf}%s", pName(playerid), playerid, text);
- SendClientMessageToAll(-1, string);
- return 1;
- }
- if(User[playerid][accountAdmin] == 6 && AdminDuty[playerid] == 1)
- {
- format(string, sizeof(string), "[{ff2400}Fundador{ffffff}] %s[%d]: {afafaf}%s", pName(playerid), playerid, text);
- SendClientMessageToAll(-1, string);
- return 1;
- }
- if(User[playerid][accountAdmin] == 5 && AdminDuty[playerid] == 1)
- {
- format(string, sizeof(string), "[{FF029E}Dono{ffffff}] %s[%d]: {afafaf}%s", pName(playerid), playerid, text);
- SendClientMessageToAll(-1, string);
- return 1;
- }
- if(User[playerid][accountAdmin] == 4 && AdminDuty[playerid] == 1)
- {
- format(string, sizeof(string), "[{F6EE02}Diretor{ffffff}] %s[%d]: {afafaf}%s", pName(playerid), playerid, text);
- SendClientMessageToAll(-1, string);
- return 1;
- }
- if(User[playerid][accountAdmin] == 3 && AdminDuty[playerid] == 1)
- {
- format(string, sizeof(string), "[{44FF04}Staff{ffffff}] %s[%d]: {afafaf}%s", pName(playerid), playerid, text);
- SendClientMessageToAll(-1, string);
- return 1;
- }
- if(User[playerid][accountAdmin] == 2 && AdminDuty[playerid] == 1)
- {
- format(string, sizeof(string), "[{44FF04}Administrador{ffffff}] %s[%d]: {afafaf}%s", pName(playerid), playerid, text);
- SendClientMessageToAll(-1, string);
- return 1;
- }
- if(User[playerid][accountAdmin] == 1 && AdminDuty[playerid] == 1)
- {
- format(string, sizeof(string), "[{FF9C00}Moderador{ffffff}] %s[%d]: {afafaf}%s", pName(playerid), playerid, text);
- SendClientMessageToAll(-1, string);
- return 1;
- }
- if(AdminDuty[playerid] == 0 && IsPlayerVIP(playerid))
- {
- format(string, sizeof(string), "[{FDF400}VIP{ffffff}] %s[%d]: {afafaf}%s", pName(playerid), playerid, text);
- SendClientMessageToAll(-1, string);
- return 1;
- }
- else
- {
- format(string, sizeof(string), "%s[%d] diz: {afafaf}%s", pName(playerid), playerid, text);
- SendClientMessageToAll(-1, string);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement