12.09.2015, 17:18
What 's wrong with this code?
if players kill any zombie on spawn point..set human health to 0
I want to make a code for this if anyone can make all code ty
PHP код:
OnPlayerTakeDamage(playerid, issuerid, Float:amount)
{
if(playerid is a zombie)
{
new Float:hp;
GetPlayerHealth(issuerid, hp);
SetPlayerHealth(issuerid, hp - amount);
}
// ...
}
I want to make a code for this if anyone can make all code ty