02.12.2009, 15:28
notec, your code was already fine
ryder, your code would stop the server from working (infinity loop)
your only problem was that you have no clue how to use a function like GetPlayerHealth, check the wiki page => CLICK
but you should create the health variable before the loop because if it would be in, it would create it each time the loop starts again (that would be 500 (MAX_PLAYER) times)
and you should check if the player is online, apply animations on ghosts is quite useless and only waste time
ryder, your code would stop the server from working (infinity loop)
your only problem was that you have no clue how to use a function like GetPlayerHealth, check the wiki page => CLICK
but you should create the health variable before the loop because if it would be in, it would create it each time the loop starts again (that would be 500 (MAX_PLAYER) times)
and you should check if the player is online, apply animations on ghosts is quite useless and only waste time