Question About Zombie Script
#1

Hey,
How to make that if Zombie kills Human then Human will turn into an zombie in Only one sec and without Dieng? Answer Quickly! Please!
Reply
#2

Quote:
Originally Posted by Jackass123
Hey,
How to make that if Zombie kills Human then Human will turn into an zombie in Only one sec and without Dieng? Answer Quickly! Please!
Impossible.
Reply
#3

Quote:
Originally Posted by WackoX
Quote:
Originally Posted by Jackass123
Hey,
How to make that if Zombie kills Human then Human will turn into an zombie in Only one sec and without Dieng? Answer Quickly! Please!
Impossible.
Isn`t
Reply
#4

Quote:
Originally Posted by Jackass123
Quote:
Originally Posted by WackoX
Quote:
Originally Posted by Jackass123
Hey,
How to make that if Zombie kills Human then Human will turn into an zombie in Only one sec and without Dieng? Answer Quickly! Please!
Impossible.
Isn`t
Lol, this is just an idea..


Код:
public OnPlayerDeath(playerid);
{ SetPlayerSkin(playerid,zombieskinid);
  SetPlayerHealth(playerid,1000);
  SendClientMessage(playerid,0xFFFFF,"You we're eaten by a zoimbie!
  return 1;
}
EDIT: I think the zombie skin ID you want is 162.
Reply
#5

Well if you're desperate for it, you can have a timer that checks for the human player's healths. If they're health goes below , say 10, they become a zombie. Just change the skin of the player and change the team.

The reason to check if the human players health goes below some value is that they are most probably being attacked by zombies. You can also check if a zombie is very near the human player when the health decreases.

It won't be very accurate, but good to do something than to wait for a native function.


EDIT:

Quote:
Originally Posted by XtremE_
Код:
public OnPlayerDeath(playerid);
{ SetPlayerSkin(playerid,zombieskinid);
  SetPlayerHealth(playerid,1000);
  SendClientMessage(playerid,0xFFFFF,"You we're eaten by a zoimbie!
  return 1;
}
Fisrlt: You are setting the player's health to 1000 when the max value is 100.0
Scondly: He wants to change before death and not on death.
Reply
#6

Quote:
Originally Posted by DJDhan
Well if you're desperate for it, you can have a timer that checks for the human player's healths. If they're health goes below , say 10, they become a zombie. Just change the skin of the player and change the team.

The reason to check if the human players health goes below some value is that they are most probably being attacked by zombies. You can also check if a zombie is very near the human player when the health decreases.

It won't be very accurate, but good to do something than to wait for a native function.
Example..


Under OnGamemodeInit:

pawn Код:
SetTimer(zombie,6000,1);

Any where in the script not in a callback tho:


pawn Код:
forward zombie(playerid);
public zombie(playerid)
{
 
     new Float:health
     
     GetPlayerHealth(playerid,health);
     if(health <30)
     {
     SetPlayerSkin(playerid,162);
     GameTextForPlayer(playerid,"~r~ZOMBIE!!!",1000,5);
     }
    }
  }
Reply
#7

At least change the function name "AutoRepair" lol

EDIT: Yes that's what I'm talking about.
The health values are high. Max is 100.0
Reply
#8

Quote:
Originally Posted by DJDhan
At least change the function name "AutoRepair" lol

EDIT: Yes that's what I'm talking about.
The health values are high. Max is 100.0
Ye

I changed my autorepair..

Code from my gm to it so thats why..

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)