15.09.2016, 03:24
(
Last edited by XandyMello; 24/03/2018 at 04:05 AM.
)
PHP Code:
PlayerName(playerid)
{
static Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
return Name;
}
new VerificarAC[MAX_PLAYERS];
public OnPlayerUpdate(playerid)
{
static time;
time = gettime();
if(VerificarAC[playerid] < time)//Intervalo de 1 seg
{
AntiXiter(playerid);
VerificarAC[playerid] = time;
}
return true;
}
forward AntiXiter(playerid);
public AntiXiter(playerid)
{
static
string[100],
Float:x,
Float:y,
Float:z
;
if(GetPlayerWeapon(playerid) != WEAPON_PARACHUTE)
{
switch(GetPlayerAnimationIndex(playerid))
{
case 974, 968, 974, 959, 1539: {} //
default:
{
if(kickado[playerid] == 0)
{
kickado[playerid]++;
format(string, sizeof(string), "[ANTI-CHEAT]: %s foi kickado [Motivo: Skin Bug]", PlayerName(playerid));
SendClientMessageToAll(-1, string);
SetTimerEx("rkick", 500, false, "i", playerid);
print(string);
}
if(!IsPlayerInWater(playerid)
{
GetPlayerPos(playerid, x, y, z);
if(z > 14)
{
if(kickado[playerid] == 0)
{
kickado[playerid]++;
format(string, sizeof(string), "[ANTI-CHEAT]: %s foi kickado [Motivo: Fly]", PlayerName(playerid));
SendClientMessageToAll(-1, string);
SetTimerEx("rkick", 500, false, "i", playerid);
print(string);
}
}
}
}
}
}
}