|
Take your onCreated function and move it to the serverside. Also for important flags like that, regardless of the fact that they are clientr. it' a good idea to base64encode them when you're finished with testing.
For checking if a player will die:
temp.dmg = 5; //replace 5 with desired damage
if ( clientr.hp - temp.dmg <= 0 ) //If this is true the player will die.
clientr.hp -= temp.dmg; |
Last edited by The_Kez; 02-11-2008 at 01:47 AM..
Reason: Typo
|