28.01.2014, 23:38
Quote:
pawn Код:
|
pawn Код:
if(GetTickCount() > FloodTimer[playerid])
{
FloodAlert[playerid] = 0;
}
FloodTimer[playerid] = GetTickCount() +TimerFlood;
FloodAlert[playerid]++;
if(FloodAlert[playerid] > 1 && FloodAlert[playerid] < AlertFlood-1)
{
format(string, sizeof(string), "|_ ANTI-KILL-FLOOD _| Vocк tem %d/%d avisos.", FloodAlert[playerid], AlertFlood);
SendClientMessage(playerid, Amarelo, string);
}
else if(FloodAlert[playerid] == AlertFlood-1)
{
format(string, sizeof(string), "|_ ANTI-KILL-FLOOD _| Vocк tem %d/%d avisos. Mais um e vocк serб kickado.", FloodAlert[playerid], AlertFlood);
SendClientMessage(playerid, Amarelo, string);
}
else if(FloodAlert[playerid] == AlertFlood)
{
format(string, sizeof(string), "O(A) jogador(a) %s foi kickado(a) por Need_Ziinho-Bot. Motivo: FloodKill", GetPlayerNameEx(playerid));
SendClientMessageToAll(Amarelo, string);
KickLog(string);
Kicka(playerid);
return 1;
}
switch(reason)
{
case 0..46: if(GetPlayerWeapon(killerid) != reason) return Kicka(playerid);
}
SetPVarInt(playerid, "Morte", gettime() + 3);
if(killerid == INVALID_PLAYER_ID) return 1;
if(GetPVarInt(playerid, "Morte") > gettime()) return BanEx(playerid, "Fake Kill");
if(playerid == killerid) return BanEx(playerid, "Fake Kill");
if(!IsPlayerStreamedIn(killerid, playerid)) return Kicka(playerid);
if(GetPlayerTeam(playerid) != NO_TEAM)
if(GetPlayerTeam(playerid) == GetPlayerTeam(killerid)) return BanEx(playerid, "Fake Kill");