20.05.2018, 13:55
if you use 2 script or even more and all of them use onplayertake damage
and u do like this for example
BAD:
return 0 will block OnPlayerTakeDamage for other scripts so it will only work in the first script
GOOD:
return 1 will allow OnPlayerTakeDamage to be called in other filterscripts
EDIT
@TadePoleMG hehe sorry my bad
FIXED!
and u do like this for example
BAD:
PHP код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
if(IsPlayerNPC(playerid)) return 0;
}
GOOD:
PHP код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
if(IsPlayerNPC(playerid)) return 1;
}
EDIT
@TadePoleMG hehe sorry my bad
FIXED!