forward OnPlayerWeaponShot( .... );
#4

pawn Код:
public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ )
{
    switch( hittype )
    {
        case BULLET_HIT_TYPE_OBJECT:
        {
            if( IsValidObject( hitid ) )
            {
                SendClientMessage( playerid, -1, "You shot an object and it was destroyed !" );

                DestroyObject( hitid );
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
forward OnPlayerWeaponShot( .... ); - by Kyance - 16.01.2014, 16:13
Re: forward OnPlayerWeaponShot( .... ); - by Vince - 16.01.2014, 16:15
Re: forward OnPlayerWeaponShot( .... ); - by Kyance - 16.01.2014, 16:39
Re: forward OnPlayerWeaponShot( .... ); - by IstuntmanI - 16.01.2014, 16:43
Re: forward OnPlayerWeaponShot( .... ); - by Kyance - 16.01.2014, 16:45
Re: forward OnPlayerWeaponShot( .... ); - by IstuntmanI - 16.01.2014, 16:48
Re: forward OnPlayerWeaponShot( .... ); - by Kyance - 16.01.2014, 16:51
Re: forward OnPlayerWeaponShot( .... ); - by MA_proking - 16.01.2014, 17:15
Re: forward OnPlayerWeaponShot( .... ); - by iZN - 16.01.2014, 17:17
Re: forward OnPlayerWeaponShot( .... ); - by Stepashka - 16.01.2014, 17:17

Forum Jump:


Users browsing this thread: 2 Guest(s)