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
#2

Isnt Deagle weapon ID 24 ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)