OnPlayerGiveDamage Grenades problem
#10

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(playeridissueridFloatamountweaponid)
{
    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;

Reply


Messages In This Thread
OnPlayerGiveDamage Grenades problem - by RedFusion - 11.08.2012, 14:11
Re: OnPlayerGiveDamage Grenades problem - by [MM]RoXoR[FS] - 11.08.2012, 15:16
Re: OnPlayerGiveDamage Grenades problem - by RedFusion - 11.08.2012, 15:26
Re: OnPlayerGiveDamage Grenades problem - by RedFusion - 11.08.2012, 17:58
Re: OnPlayerGiveDamage Grenades problem - by RedFusion - 12.08.2012, 11:21
Re: OnPlayerGiveDamage Grenades problem - by playbox12 - 12.08.2012, 12:04
Re: OnPlayerGiveDamage Grenades problem - by RedFusion - 12.08.2012, 14:00
Re: OnPlayerGiveDamage Grenades problem - by RedFusion - 12.08.2012, 17:42
Re: OnPlayerGiveDamage Grenades problem - by playbox12 - 12.08.2012, 21:02
Re: OnPlayerGiveDamage Grenades problem - by new121 - 12.08.2012, 21:26

Forum Jump:


Users browsing this thread: 1 Guest(s)