12.08.2012, 21:26
There was no need to set all players to the same team, this snippet will disable gun damage, but nades will still kill people.
PHP код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(issuerid != INVALID_PLAYER_ID && GetPlayerWeapon(playerid) != 16)
{
return 0;//if they take damage from another player, and it is not from a nade the update isn't synced.
}
return 1;
}