How to detect the highest vehicle health ?
#5

Quote:
Originally Posted by Sascha
Посмотреть сообщение
I've set the "new Float:maxx = 0;" and "new winner = -1;", as well as the "if(winner != -1)..,...." out of the "Foreach"
if I'm right it won't work if you put it into the foreach, as it would detect each player as winner (except if he isn't in a vehicle or the vehicle has the health 0.0000)
ah ok,
Well i tested it, and we were with 2 players ... me and another one x) i didn't 'drive' ... so i didn't lost health but the other bumped against the wall ... and who wins ... THE BUMPER xD
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)