01.11.2010, 06:32
its tricky to see what player is attacking who b4 they die
so you would need to check for players that are real close and if there health changes when you stab them,then infect them
something like
then check in a few seconds if the health has gone down if so infect them
an easer way to do it would be if you just infect them if there health is low and they are near you would have pretty much the same effect
^^^^NOT WORKING CODE just a example
so you would need to check for players that are real close and if there health changes when you stab them,then infect them
something like
Код:
new float:zx,float:zy,float:zz; GetPlayerPoz(playerid,zx,zy,zz); for new(z=0;z<MAX_PLAYERS,z++){ if(!IsPlayerConnected(z))continue; if(IsPlayerInRangeOfPoint(z,zx,zy,zz){ GetPlayerHealth(z,zh[playerid]); } }
an easer way to do it would be if you just infect them if there health is low and they are near you would have pretty much the same effect
^^^^NOT WORKING CODE just a example