case Twoja_Klasa:
{
show_hudmessage(id, "Dostales naboje.")
fm_give_item(id, "ammo_357sig")
fm_give_item(id, "ammo_762nato")
fm_give_item(id, "ammo_45acp")
fm_give_item(id, "ammo_556nato")
fm_give_item(id, "ammo_9mm")
fm_give_item(id, "ammo_57mm")
fm_give_item(id, "ammo_45acp")
fm_give_item(id, "ammo_556nato")
fm_give_item(id, "ammo_338magnum")
fm_give_item(id, "ammo_556natobox")
fm_give_item(id, "ammo_50ae")
fm_give_item(id, "ammo_357sig")
fm_give_item(id, "ammo_762nato")
fm_give_item(id, "ammo_45acp")
fm_give_item(id, "ammo_556nato")
fm_give_item(id, "ammo_9mm")
fm_give_item(id, "ammo_57mm")
fm_give_item(id, "ammo_45acp")
fm_give_item(id, "ammo_556nato")
fm_give_item(id, "ammo_338magnum")
fm_give_item(id, "ammo_556natobox")
fm_give_item(id, "ammo_50ae")
fm_give_item(id, "ammo_357sig")
fm_give_item(id, "ammo_762nato")
fm_give_item(id, "ammo_45acp")
fm_give_item(id, "ammo_556nato")
fm_give_item(id, "ammo_9mm")
fm_give_item(id, "ammo_57mm")
fm_give_item(id, "ammo_45acp")
fm_give_item(id, "ammo_556nato")
fm_give_item(id, "ammo_338magnum")
fm_give_item(id, "ammo_556natobox")
fm_give_item(id, "ammo_50ae")
}
to jest do d*py
po pierwsze nie odnawia ammo, tylko uzupelnia pozostale magazynki, nie ten ktorego uzywasz
po drugie to jest tak mega niesamowicie nie.optymalny, że głowa mnie boli
Miczu, geniusz, pomyślał troche i zrobił funkce refill_ammo, która odnawia magazynek, ten który jest używany - oraz armor do 200
kod:
case Twoja_Klasa:
{
set_hudmessage(0, 255, 0, -1.0, 0.26, 0, 6.0, 12.0)
show_hudmessage(id, "Uzupełniłeś magazynek")
refill_ammo(id)
}