Zombie infection
#1

Hi, I'm next in till finish with one of my new gamemode but I've got some problem too.. I don't know how I should do when a Zombie do damages to a human that the human transferee to an Zombie..


Also, Zombie attack human - human will then be a Zombie. Would look forward to see a script exemple if someone have... Thanks!

This just make so when a human(SWAT) loose HP than he will be a zombie... suck..
pawn Код:
public OnPlayerUpdate(playerid)
{
  new Float: NewHealth;
  new Float: OldHealth;
  OldHealth = 100;
  GetPlayerHealth(playerid,NewHealth);

  if(gTeam[playerid] == 0){
  if(NewHealth < OldHealth){

  SetPlayerSkin(playerid,162);
  gTeam[playerid] = 1;
  GameTextForPlayer(playerid, "~r~infected!", 5000,5);
  TogglePlayerControllable(playerid,1);
 
  SendClientMessage(playerid,RED,"DEBUG: TEST!!!");
  }
    }
    return 1;
}
Reply


Messages In This Thread
Zombie infection - by Goobiiify - 15.01.2010, 18:51
Re: Zombie infection - by timmehhh - 15.01.2010, 18:58
Re: Zombie infection - by Goobiiify - 15.01.2010, 19:01
Re: Zombie infection - by timmehhh - 15.01.2010, 19:03
Re: Zombie infection - by Goobiiify - 15.01.2010, 19:04
Re: Zombie infection - by jameskmonger - 15.01.2010, 19:05
Re: Zombie infection - by Goobiiify - 15.01.2010, 19:11
Re: Zombie infection - by jameskmonger - 15.01.2010, 19:16
Re: Zombie infection - by Goobiiify - 15.01.2010, 19:17
Re: Zombie infection - by jameskmonger - 15.01.2010, 19:18

Forum Jump:


Users browsing this thread: 1 Guest(s)