What's wrong!? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: What's wrong!? (
/showthread.php?tid=588800)
What's wrong!? -
AhmedElGaml - 12.09.2015
What 's wrong with this code?
PHP код:
OnPlayerTakeDamage(playerid, issuerid, Float:amount)
{
if(playerid is a zombie)
{
new Float:hp;
GetPlayerHealth(issuerid, hp);
SetPlayerHealth(issuerid, hp - 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
Re: What's wrong!? -
Sellize - 12.09.2015
How about you explain what you're trying to do first
Re: What's wrong!? -
AhmedElGaml - 12.09.2015
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
Re: What's wrong!? -
AhmedElGaml - 13.09.2015
deleted
Re: What's wrong!? -
Threshold - 13.09.2015
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.
Re: What's wrong!? -
sanamalik400 - 09.10.2015
i made this code,,but sadly saying this ,,u lied with me,,i.was have code,
Re: What's wrong!? -
sanamalik400 - 09.10.2015
OnPlayerWeaponShot,,,
OPSP