31.12.2015, 12:18
Ola alguem pode me ajudar nesse error,eu pesquisei mas esse erro depende de cada GM alguem me AJUDA.
Linha que da Erro
Me Ajuda.
Linha que da Erro
PHP код:
if(hittype == BULLET_HIT_TYPE_PLAYER && IsPlayerConnected(hitid) && !IsPlayerNPC(hitid);
PHP код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
switch(weaponid){ case 0..18, 38..54: return 1;}//invalid weapons
if(hittype == BULLET_HIT_TYPE_PLAYER && IsPlayerConnected(hitid) && !IsPlayerNPC(hitid);
{
new Float:Shot[3], Float:Hit[3];
GetPlayerLastShotVectors(playerid, Shot[0], Shot[1], Shot[2], Hit[0], Hit[1], Hit[2]);
new playersurf = GetPlayerSurfingVehicleID(playerid);
new hitsurf = GetPlayerSurfingVehicleID(hitid);
new Float:targetpackets = NetStats_PacketLossPercent(hitid);
new Float:playerpackets = NetStats_PacketLossPercent(playerid);
if(~(playersurf) && ~(hitsurf) && !IsPlayerInAnyVehicle(playerid) && !IsPlayerInAnyVehicle(hitid))
{
if(!IsPlayerAimingAtPlayer(playerid, hitid) && !IsPlayerInRangeOfPoint(hitid, 5.0, Hit[0], Hit[1], Hit[2]))
{
new string[128], issuer[24];
GetPlayerName(playerid, issuer, 24);
AimbotWarnings[playerid] ++;
if(AimbotWarnings[playerid] > 2)
{
if(targetpackets < 1.2 && playerpackets < 1.2) return Kick(playerid);
else
{
SendClientMessage(playerid, -1, "Vocк foi kikado por suspeita de aimbot!");
format(string, sizeof(string), "%s foi kikado por suspeita de aimbot!", issuer);
ABroadCast(0x33CCFFAA, string, 1);
Kick(playerid);
}
}