Quote:
Originally Posted by iSlayer
alright now last question if I fire the spell fast enough I go into negative values, how can i stop that
|
PHP Code:
player.clientr.mudmp = max(0, player.clientr.mudmp - 5);
You should check serverside before firing the spell anyway.
Also don't enclose numbers in quotes--"5" and 5 are not the same thing, although they may work interchangeably. It's bad practice.