What's wrong!?
#1

What 's wrong with this code?
PHP код:
OnPlayerTakeDamage(playeridissueridFloat:amount)
{
if(
playerid is a zombie)
{
new 
Float:hp;
GetPlayerHealth(issueridhp);
SetPlayerHealth(issueridhp amount);
}
// ...

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
Reply
#2

How about you explain what you're trying to do first
Reply
#3

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
Reply
#4

deleted
Reply
#5

Use OnPlayerGiveDamage instead of OnPlayerTakeDamage if you're trying to stop people shooting others on the spawn point. OnPlayerWeaponShot is also another option, but not all weapons are covered by that callback.
Reply
#6

i made this code,,but sadly saying this ,,u lied with me,,i.was have code,
Reply
#7

OnPlayerWeaponShot,,, OPSP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)