Problema con anticheat
#7

Es porque la variable la guardas al desconectarte, no hay problema en eso.
Y en cuanto al cуdigo ese estб demбs la condiciуn, es innecesaria.
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
  new Float:vida; 
  GetPlayerHealth(playerid, vida);
  if(vida > Jugador[playerid][Salud]) //Antes de actualizar chequea si no se aumentу la vida.
   {
    SetTimerEx("KickBan",1000,false,"d", playerid); 
   } else {  //Si no se aumentу la vida se actualiza la variable a la vida actual.
    Jugador[playerid][Salud] = vida; //Actualizamos la variable.
   }
  return 1;
}
Reply


Messages In This Thread
Problema con anticheat - by Martin100200300 - 06.02.2017, 19:57
Respuesta: Problema con anticheat - by Whyd - 06.02.2017, 19:59
Respuesta: Problema con anticheat - by jhgr16 - 06.02.2017, 20:00
Re: Problema con anticheat - by Martin100200300 - 06.02.2017, 20:06
Re: Problema con anticheat - by GlobitoPawn - 06.02.2017, 20:17
Re: Problema con anticheat - by Martin100200300 - 06.02.2017, 20:36
Re: Problema con anticheat - by GlobitoPawn - 06.02.2017, 20:46
Re: Problema con anticheat - by Martin100200300 - 06.02.2017, 21:13
Re: Problema con anticheat - by GlobitoPawn - 06.02.2017, 23:27
Respuesta: Problema con anticheat - by Whillyrez - 06.02.2017, 23:48

Forum Jump:


Users browsing this thread: 1 Guest(s)