17.10.2009, 13:24
1st of all if you have that public on a timer i'm sure somebody's game will eventually crash as every time you call it and their health is below what you have set it will create a new 3d text everytime so why not just create 1 3dtext like
new 3DText:Player[MAX_PLAYERS]
then on player spawn just create their 3dtext and just give it a blank name so you can't see it untill necessary and just update their 3d text instead of creating new ones..
also change the public from playerid to
so then it will call upon every player but set it to those only with hp less than wat ever
new 3DText:Player[MAX_PLAYERS]
then on player spawn just create their 3dtext and just give it a blank name so you can't see it untill necessary and just update their 3d text instead of creating new ones..
also change the public from playerid to
Код:
for(new i=0; i < MAX_PLAYERS; i++) {