Quote:
Originally Posted by The Knight
PHP код:
new Float: kVida;
#define kArmas( %0 ) ( ID == %0 || ID == %0 || ID == %0 || ID == %0 )
public OnPlayerShootPlayer( shooter, target, Float: damage )
{
static kWeapons;
kWeapons = GetPlayerWeapon( shooter );
if( kArmas( kWeapons ) )
{
GetPlayerHealth( target, kVida );
SetPlayerHealth( target, kVida-10 );
return true;
}
return true;
}
|
Esse й o velho OPSP, vк na thread, tem umas vars novas. =)