Infected Will this work
#10

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
Код:
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]);
 }
}
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
Reply


Messages In This Thread
Infected Will this work - by Kitten - 31.10.2010, 23:04
Re: Infected Will this work - by Kitten - 31.10.2010, 23:44
Re: Infected Will this work - by Jaxson - 01.11.2010, 03:39
Re: Infected Will this work - by Zamaroht - 01.11.2010, 03:59
Re: Infected Will this work - by (SF)Noobanatior - 01.11.2010, 04:46
Re: Infected Will this work - by Kitten - 01.11.2010, 05:55
Re: Infected Will this work - by ViruZZzZ_ChiLLL - 01.11.2010, 06:03
Re: Infected Will this work - by Kitten - 01.11.2010, 06:18
Re: Infected Will this work - by ViruZZzZ_ChiLLL - 01.11.2010, 06:29
Re: Infected Will this work - by (SF)Noobanatior - 01.11.2010, 06:32

Forum Jump:


Users browsing this thread: 5 Guest(s)