Health
#1

When I shot a player with a weapon,his health is always 100,what can be the problem ? Sorry for my bad English.
Reply
#2

Show your OnPlayerTakeDamage and OnPlayerWeaponShot
Reply
#3

Код:
public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ )
{
    if( hittype != BULLET_HIT_TYPE_NONE )
    {
        if( !( -1000.0 <= fX <= 1000.0 ) || !( -1000.0 <= fY <= 1000.0 ) || !( -1000.0 <= fZ <= 1000.0 ) )
        {
		   Kicksaporukom(playerid);
        }
        return 0;
    }
    return 1;
}
I don't have OnPlayerTakeDamage in my script.
Reply
#4

pawn Код:
public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ )
{
    if( hittype != BULLET_HIT_TYPE_NONE )
    {
        if( !( -1000.0 <= fX <= 1000.0 ) || !( -1000.0 <= fY <= 1000.0 ) || !( -1000.0 <= fZ <= 1000.0 ) )
        {
            Kicksaporukom(playerid);
            return 0;
        }
    }
    return 1;
}
Reply
#5

Thanks a lot.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)