[Ajuda] Chat Erro
#5

PHP код:
public OnPlayerText(playeridtext[])
{
new 
string[256];
new 
aname[MAX_PLAYER_NAME];
GetPlayerName(playeridanameMAX_PLAYER_NAME);
format(filesizeof(file), PASTA_CONTASaname);
if(
PlayerInfo[playerid][Logged] == 0)
{
SendClientMessage(playeridVermelho"Logue-se antes.");
return 
0;
}
if(
Mute[playerid] == 1)
{
SendClientMessage(playeridVermelho"|_ ANTI-FLOOD _| Vocк nгo pode falar enquanto estб mudo!");
return 
0;
}
if(
AFK[playerid] == 1)
{
SendClientMessage(playeridVermelho"{FFFFFF}Para voltar ao jogo digite {00FF00}/on");
return 
0;
}
if(
NaFaculdade[playerid] == 1)
{
Conversa[playerid] = Conversa[playerid]++;
if(
Conversa[playerid] == 3)
{
minutos[playerid] = 0;
NaFaculdade[playerid] = 0;
SpawnPlayer(playerid);
SendClientMessage(playeridVermelho"Vocк conversou muito e foi expulso da biblioteca!");
}
format(stringsizeof(string), "Vocк estб conversando. Vocк recebeu um aviso, agora vocк estб com %d/3 aviso(s)."Conversa[playerid]);
SendClientMessage(playeridAvisostring);
return 
0;
}
if(
GetTickCount() > FloodTimer[playerid])
{
FloodAlert[playerid] = 0;
}
FloodTimer[playerid] = GetTickCount() +TimerFlood;
FloodAlert[playerid]++;
if(
FloodAlert[playerid] > && FloodAlert[playerid] < AlertFlood-1)
{
format(stringsizeof(string), "|_ ANTI-FLOOD _| Vocк tem %d/%d avisos."FloodAlert[playerid], AlertFlood);
SendClientMessage(playeridAmarelostring);
}
else if(
FloodAlert[playerid] == AlertFlood-1)
{
format(stringsizeof(string), "|_ ANTI-FLOOD _| Vocк tem %d/%d avisos. Mais um e vocк serб kickado."FloodAlert[playerid], AlertFlood);
SendClientMessage(playeridAmarelostring);
}
else if(
FloodAlert[playerid] == AlertFlood)
{
format(stringsizeof(string), "O(A) jogador(a) %s foi kickado(a) por BPSBot. Motivo: Flood Chat"GetPlayerNameEx(playerid));
SendClientMessageToAll(Amarelostring);
KickLog(string);
Kick(playerid);
return 
0;
}
if(!(
pAdmin[playerid] >= 1))
{
for(new 
0sizeof Palavroesp++)
{
new 
fp strfind(textPalavroes[p], true);
while(
fp != -1)
{
for(new 
0strlen(Palavroes[p]); i++)
{
text[fp i] = '_';
}
fp strfind(textPalavroes[p], true);
}
}
if(
VBIsIP(text))
{
SendClientMessage(playeridAmarelo"|_ ANTI-SPAM _| Vocк nгo pode fazer spam no servidor.");
return 
0;
}
}
if(
InCall[playerid] == 1)
{
format(str3128" [Celular] %s (%d): %s"GetPlayerNameEx(playerid), playeridtext);
SendClientMessage(gcBLUEWHITEstr3);
format(str3128" [Celular] %s (%d): %s"GetPlayerNameEx(playerid), playeridtext);
SendClientMessage(senderBLUEWHITEstr3);
return 
0;
}
if(
dini_Int(file"Entrevista") == 1)
{
format(string,sizeof(string), "[»] O entrevistado %s responde: %s"anametext);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 
0;
}
if(
dini_Int(file"Entrevista") == 2)
{
format(string,sizeof(string), "[»] O reporter %s pergunta: %s"anametext);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 
0;
}
SetPlayerChatBubble(playeridtextAzul50.010000);
if(
pAdmin[playerid] == 1)
{
format(stringsizeof(string), "[ID: %d] :::. {F34F00}Auxiliar {FFFFFF}.:::™ {00FF80}%s"playeridtext);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 
0;
}
if(
pAdmin[playerid] == 2)
{
format(stringsizeof(string), "[ID: %d] :::. {6A5ACD}Moderador {FFFFFF}.:::™ {00FF80}%s"playeridtext);
SendPlayerMessageToAll(playerid,string);
return 
0;
}
if(
pAdmin[playerid] == 3)
{
format(stringsizeof(string), "[ID: %d] :::. {00FF80}Master {FFFFFF}.:::™ {00FF80}%s"playeridtext);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 
0;
}
if(
pAdmin[playerid] == 4)
{
format(stringsizeof(string), "[ID: %d] :::. {D7DF01}Anti-Cheat {FFFFFF}.:::™ %s"playeridtext);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 
0;
}
if(
pAdmin[playerid] ==5)
{
format(stringsizeof(string), "[ID: %d] :::. {00FFFF}Coord {FFFFFF}.:::™ %s"playeridtext);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 
0;
}
if(
pAdmin[playerid] == 6)
{
format(stringsizeof(string), "[ID: %d] :::. {01DF01}Sub-Dono {FFFFFF}.:::™ {045FB4}%s"playeridtext);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 
0;
}
if(
pAdmin[playerid] == 7)
{
format(stringsizeof(string), "[ID: %d] :::. {FFCA86}Scripter {FFFFFF}.:::™ %s"playeridtext);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 
0;
}
if(
pAdmin[playerid] == 8)
{
format(stringsizeof(string), "[ID: %d] :::. {1602F4}Dono {FFFFFF}.:::™ {00FF80}%s"playeridtext);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 
0;
}
if(
vip[playerid] == 1)
{
format(stringsizeof(string), "[ID: %d] {FF0000}[PREMIUM]: {FF8000}%s"playeridtext);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 
0;
}
if(
Chatlb == 1)
{
format(stringsizeof(string), "[{DF0101}ID: {2E9AFE}%d{FFFFFF}] %s"playeridtext);
SendClientMessageToAll(GetPlayerColor(playerid),string);
}
else
{
ChatProximo(playeridtext);
}
return 
0;

SendClientMessageToAll

@Off

Sempre use [pawn*] Cуdigo [/pawn*] (tire os *), ficarб assim:
pawn Код:
Cуdigo
Reply


Messages In This Thread
Chat Erro - by lucas3366 - 22.04.2018, 02:25
Re: Chat Erro - by AllanSG - 22.04.2018, 02:47
Re: Chat Erro - by lucas3366 - 22.04.2018, 15:14
Re: Chat Erro - by lucas3366 - 23.04.2018, 02:19
Re: Chat Erro - by AllanSG - 23.04.2018, 03:35
Re: Chat Erro - by arakuta - 23.04.2018, 11:13
Re: Chat Erro - by lucas3366 - 24.04.2018, 02:20
Re: Chat Erro - by AllanSG - 24.04.2018, 03:04
Re: Chat Erro - by lucas3366 - 24.04.2018, 03:32
Re: Chat Erro - by AllanSG - 24.04.2018, 16:07

Forum Jump:


Users browsing this thread: 3 Guest(s)