03.02.2018, 16:27
Quote:
I knew it but i don't know where to put it.
WAIT, AIN'T YOU THE SAME PERSON WHO HELPED ME TO FIX THE PROBLEMS IN MY OTHER THREADS? WHOA! |
place this code like this
PHP код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
// we need this code at the top of the callback OnPlayerTakeDamage.
if(Death[playerid] == 1) //u must place your death script here, for example let it be Death[playerid];
{
new Float:HP;
GetPlayerHealth(playerid,HP);
SetPlayerHealth(playerid,HP+amount);
return 1;
}