kulkos
Re: kulkos
Code: Select all
new weapon_id = give_item(id "weapon_deagle")if(weapon_id) cs_set_weapon_ammo(weapon_id, 1);
Last edited by addinol on 2011 May 10 15:23, edited 1 time in total.
Re: kulkos
>addinol wrote:Code: Select all
give_item(id "weapon_deagle") new weapon_id = find_ent_by_owner(-1, "weapon_deagle", id);
Code: Select all
new weapon_id = give_item(id "weapon_deagle")
Re: kulkos
na taip, bet turiu omeny, kad ne tiek duotų, bet rodytų vieną skaičių, o būtų kitas.. nes man dabar serveryje problema atsirado, kad kulkų normaliai nerodo.. rodo kad 0 turiu, bet iš tikrujų 30..hleV wrote:>addinol wrote:Code: Select all
give_item(id "weapon_deagle") new weapon_id = find_ent_by_owner(-1, "weapon_deagle", id);
Code: Select all
new weapon_id = give_item(id "weapon_deagle")
Re: kulkos
Aš tik parodžiau addinol, kad galima optimizuot kodą.
Tavo atveju reiktų keist kažkurio message'o kažkurį argumentą, gal AmmoX ar panašiai. Pasižiūrėk AMXX wiki Half-Life event'us ir susirask tinkamą.
EDIT: Manau šitas, tik nelabai žinau, kaip gaut ammo ID. Gal yra cstrike.inc kas nors. Bet gali būt kad čia rodys ne BP ammo, o kad paėmei ammo.
Tavo atveju reiktų keist kažkurio message'o kažkurį argumentą, gal AmmoX ar panašiai. Pasižiūrėk AMXX wiki Half-Life event'us ir susirask tinkamą.
EDIT: Manau šitas, tik nelabai žinau, kaip gaut ammo ID. Gal yra cstrike.inc kas nors. Bet gali būt kad čia rodys ne BP ammo, o kad paėmei ammo.
Who is online
Users browsing this forum: No registered users and 4 guests