16.04.2015, 21:56
pawn Код:
static
PlayerExtinguisherAmmo[MAX_PLAYERS],
PlayerExtinguisherTimer[MAX_PLAYERS]
;
//...
forward ExtinguisherAmmoTimer(playerid);
public ExtinguisherAmmoTimer(playerid)
{
if (--PlayerExtinguisherAmmo <= 0) {
KillTimer(PlayerExtinguisherTimer);
//eventually change weapon to something else so he can't use extinguisher anymore
}
return 1;
}