27.10.2015, 15:13
Код:
issuerid=65535
To fix this use:
PHP код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID)
{
//your onplayertakedamage code
}
return 1;
}
PHP код:
public OnPlayerGiveDamage(playerid, damageid, Float:amount, weaponid, bodypart)
{
if(damageid != INVALID_PLAYER_ID)
{
//your onplayergivedamage code
}
return 1;
}