I think that for the sake of say, KERS, we would need a command interface for knowing when a player hit a button, or if we don't get that, then we would have to be able to send console type commands to the server in much the same way that we send admin commands. This would mean that we can bind a button to do the command `/kers_on` and then have another button for `/kers_off`, or make the function circular so it binds `/kers_on` but once you depress the button it sends the command, then binds `/kers_off` to that button, once you press `/kers_off` then it binds `/kers_on` again.
You would then programmaticlly intercept this within the program were it would detect the keypress, or the sent command, and simply add 80BHP to the engine for X number of seconds. (While the key is pressed, while the command is sent, or one time, while the kers_off command has not yet been sent.) From here, the code is a simple as:
<?php
onKersActivation(PLID) {
new currentHP, newHP;
currentHP = getPlayerHP(PLID);
newHP = currentHP + 80;
setPlayerHP(PLID, newHP);
}
onKersDeactivation(PLID) {
new currentHP, newHP;
currentHP = getPlayerHP(PLID);
newHP = currentHP - 80;
setPlayerHP(PLID, newHP);
}
?>
I'm going to split this topic now ... Because we are getting very off topic.