02.12.2014, 16:50
And to give the weapon a player, I use this
Or it is something else?
And to identify the damage
EDIT: And when it connect? To give him the gun?
pawn Код:
GivePlayerWeapon(playerid, M4_AN94, 500)
And to identify the damage
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
new Float:HP;
GetPlayerHealth(playerid, HP);
if(M4_AN94 == 1) SetPlayerHealth(playerid, HP-44);
return 1;
}