06.02.2017, 20:46
(
Последний раз редактировалось GlobitoPawn; 06.02.2017 в 23:58.
)
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.
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; }