Removed testing KeyDown EventHandler
This commit is contained in:
parent
83daeec0ae
commit
08e430e275
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user