13.02.2012, 15:18
Oque pode lagar um gm? os player estao teleportando muinto ping do serve 130~190
isso causa lag /\ , muintas texts causam lag ? , muintas linhas no gm causa lag ? ,
pawn Код:
public OnPlayerText(playerid, text[])
{
if(text[0] == '!') {
new name[24];
GetPlayerName(playerid, name, 24);
format(stringx, sizeof(stringx), "(TEAM-CHAT): %s:{FFFFFF} %s", name, text[1]);
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)) {
if(Gang[i] == Gang[playerid])
SendClientMessage(i, GetPlayerColor(playerid), stringx);
}
else if(GetPlayerTeam(i) == GetPlayerTeam(playerid)) {
SendClientMessage(i, GetPlayerColor(playerid), stringx);
}
}
return 0;
}
if(Mute[playerid] == 1) {
SendClientMessage(playerid, COLOR_RED, "{00FFFF}[INFO]: {FFFFFF}Vocк nгo pode falar enquanto estб mudo!");
return 0;
}
if(PoderFalar[playerid] == 0) {
PoderFalar[playerid] = 1;
SetTimerEx("TempoChat", 3000, 0, "i", playerid);
}
else {
SendClientMessage(playerid, -1, "{EE3B3B}[FLOOD]: {FFFFFF}Aguarde {EE3B3B}3 {FFFFFF}segundos para digitar novamente.");
return 0;
}
UpperToLower(text);
fixchars(text);
if(strfind(text, "189.", true) != -1 || strfind(text, "201.", true) != -1 || strfind(text, "200.", true) != -1 || strfind(text, "69.", true) != -1 || strfind(text, "187.", true) != -1 || strfind(text, ":7777", true)!= -1 || strfind(text, ":7780", true)!= -1 || strfind(text, ":7782", true)!= -1 || strfind(text, ":7774", true)!= -1 || strfind(text, ":2021", true)!= -1 || strfind(text, ":7794", true)!= -1
|| strfind(text, "64.31.28.76:2021", true)!= -1 || strfind(text, "64.", true)!= -1 || strfind(text, "208.", true)!= -1|| strfind(text, ":7905", true)!= -1 || strfind(text, "64.31.28.70:7780", true)!= -1 || strfind(text, "192 .", true)!= -1 || strfind(text, "201 .", true)!= -1 || strfind(text, "187 .", true || strfind(text, "64 .", true)!= -1)!= -1 || strfind(text, "178 .", true)!= -1 || strfind(text, "178.", true)!= -1
|| strfind(text, ":7778", true)!= -1 || strfind(text, "topglobal", true)!= -1 || strfind(text, "servegame.", true)!= -1 || strfind(text, "CSF", true)!= -1 || strfind(text, "CSA", true)!= -1 || strfind(text, "Bloody", true)!= -1 || strfind(text, "Mata Mata", true)!= -1 || strfind(text, "matamata", true)!= -1 || strfind(text, "mata mata", true)!= -1 || strfind(text, "mata mata 2012", true)!= -1
|| strfind(text, "mata-mata", true)!= -1 || strfind(text, "gta torcida", true)!= -1 || strfind(text, "184.", true)!= -1) {
SendClientMessage(playerid,0xFFFF00AA,"Vocк tentou divulgar e foi kickado pelo sistema.");
new pName[24];
GetPlayerName(playerid, pName, sizeof(pName));
format(stringx, sizeof(stringx), "{F9FAF5}[Anti-Divulger]: {F7AF05}%s[ID:%d] tentou divulgar e foi kickado." ,pName,playerid);
SendClientMessageToAll(0xFFFF00AA, stringx);
Kick(playerid);
return 0;
}
if(strlen(text) > 100) {
SendClientMessage(playerid, 0xAA3333AA, "Desculpe, Seu texto passou do limite de digitos cujo й 100!");
return 0;
}
new string[128];
format(string,sizeof(string),"[ID:%d]: %s",playerid,text);
SendPlayerMessageToAll(playerid,string);
return 0;
}