15.01.2010, 18:51
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..
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;
}