29.03.2014, 17:05
Quote:
What I can do is:
If the ammo type runs out in the gun, automatically set it to the standard rounds. |
Anyways i think using OnPlayerWeapon shoot itself you can prevent other players to get hit by returning specific value inside function (like 0 or 1 ,unsure).
e.g:
pawn Код:
OnPlayerWeaponShot(...)
{
// get ammo and stuff
if( ammo < 2 )
{
if( hitid == ONE THAT IS TREATED AS PLAYER HIT )
{
//he hitted with his last ammo to a player and make to make it isnt counted as a hit return 0 / 1;
return 0;
}
//give player one ammo;
}
}