GetPlayerWeapon?
#1

Hey, I tried to do this:

PHP код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
if(
Taser[Shooter] == 1)
{
if(
GetPlayerWeapon(Shooter) != 23) return 0;
ApplyAnimation(Target"CRACK""crckdeth2"4.010000);
new 
Float:H;
GetPlayerHealth(Target,H);
SetPlayerHealth(Target,5);
}
return 
1;

i want the code will work only when the player shoot with weapon id - 23 (Deagle)

it will work? if not, how to fix that? Thanks for helpers!
Reply


Messages In This Thread
GetPlayerWeapon? - by tomsalmon - 26.10.2012, 21:17
Re: GetPlayerWeapon? - by park4bmx - 26.10.2012, 21:20

Forum Jump:


Users browsing this thread: 1 Guest(s)