Help with turning a survivor into a zombie!
#1

well this is my onplayerdeath...
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  if(killerid == INVALID_PLAYER_ID) {
    SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
  }
  else {
    if(gTeam[playerid] == TEAM_HUMAN) {
      if(gTeam[killerid] == TEAM_ZOMBIE)
        SetTimer("INFECTED", 900, 0);
      GivePlayerMoney(killerid, 1000);
    }
    if(gTeam[playerid] == TEAM_ZOMBIE) {
      if(gTeam[killerid] == TEAM_HUMAN)
        GivePlayerMoney(killerid, 1000);
    }
  }
  return 1;
}
Well when someone kills me i just dont turn in to a zombie
for the infected timer aka
Код:
SetTimer("INFECTED", 900, 0);
This is the func

Код:
public INFECTED(playerid)
{
  TogglePlayerControllable(playerid, true);
  SpawnPlayer(playerid);
  SetSpawnInfo(playerid, TEAM_ZOMBIE, 137, 1305.0315,-1806.6390,13.5469,112.9055, 4, 1, 0, 0, 0, 0);
}
Can someone help me!
Reply


Messages In This Thread
Help with turning a survivor into a zombie! - by Lorenc_ - 13.02.2010, 23:39
Re: Help with turning a survivor into a zombie! - by dice7 - 13.02.2010, 23:47
Re: Help with turning a survivor into a zombie! - by Lorenc_ - 14.02.2010, 00:01
Re: Help with turning a survivor into a zombie! - by DiddyBop - 14.02.2010, 01:04
Re: Help with turning a survivor into a zombie! - by Lorenc_ - 14.02.2010, 01:35

Forum Jump:


Users browsing this thread: 2 Guest(s)