Removed testing KeyDown EventHandler

This commit is contained in:
Fierelier 2018-05-15 10:02:19 +02:00
parent 83daeec0ae
commit 08e430e275
1 changed files with 0 additions and 19 deletions

View File

@ -10,7 +10,6 @@ namespace pdHealth
public pdHealth()
{
this.Tick += new EventHandler(this.doHealthTick);
//this.KeyDown += new GTA.KeyEventHandler(this.keyDownHandler);
}
//Settings:
@ -92,23 +91,5 @@ namespace pdHealth
Game.DisplayText("Health:\n " +pl.Health.ToString(), 1000);
Wait(tickTime);
}
//Testing
private void keyDownHandler(object sender, GTA.KeyEventArgs e)
{
if (e.Key == Keys.B) {
Ped pl = Player.Character;
pl.Invincible = true;
pl.Health = -1;
return;
}
if (e.Key == Keys.N) {
Ped pl = Player.Character;
pl.Invincible = false;
pl.Health = -100;
return;
}
}
}
}