Proszę o napisanie parę itemków do pluginu Ammo Pack v2.0 PL
Sklep na AP sam rozróżnia.:
Human:
1. Podwójny skok (6 AP)
2. Granat freeze (4 AP)
3. Granat fire (5 AP)
4. 50HP (8 AP)
5. M4A1 (15 AP)
6. Dla Vipa. (Aktywne tylko gdy masz flage t)
Zombie:
1. 1000 HP (7 AP)
2. 3000 HP (14 AP)
3. Antidote (17 AP)
4. Auto BH (8 AP)
VIP:
1. Bazooka
PRZYKŁAD:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <ammopacks.inc> // dolaczamy inc z natywem i forwardem #include <fun> #define PLUGIN "Item_nr2" #define VERSION "1.0" #define AUTHOR "G[o]Q" new item new koszt new team public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) koszt=register_cvar("Nazwa_cvara_odpowiedzialnego_za_koszt","domyslna_wartosc") team=register_cvar("Nazwa_cvara_odpowiedzialnego_za_team","domyslna_wartosc") //0 - ALL //1 - ZOMBIE //2 - HUMAN new tkoszt=get_pcvar_num(koszt) new tteam =get_pcvar_num(team) item=dodaj_extra_item("+AP",tkoszt,tteam) //rejestrujemy nowy item - nazwa - koszt -team(1 - Zombie,2 - Human,0 - All } public wybrano_item(id,item_id){// co ma sie stac po kupieniu itemy if(item_id==item){// sprawdzamy czy gracz kupil item zarejestrowany wczesniej set_user_armor(id,500) } } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil\\ fcharset0 Tahoma;}}\n{\\ colortbl ;\\ red0\\ green0\\ blue0;}\n\\ viewkind4\\ uc1\\ pard\\ cf1\\ lang1045\\ f0\\ fs16 \n\\ par } */
Osobiście mogę się odwdzięczyć +, albo pomocą przy Paintballu / CodModzie.