[ROZWIĄZANE] Shop COD MW2
totoff
15.10.2011
Witam,
Chciałbym doprowadzić do trybu menu COD MW2 kupowaćgranaty i błyskowym. Kto może mi pomóc dziękuję
Chciałbym doprowadzić do trybu menu COD MW2 kupowaćgranaty i błyskowym. Kto może mi pomóc dziękuję
Hiroshima
15.10.2011
Automatyczna wiadomość
Ten temat został przeniesiony z forum:
AMX Mod X → Szukam pluginu
do
AMX Mod X → Multilingual
Hiroshima
15.10.2011
try this:
http://amxx.pl/topic...p-by-rpk-shark/
or
http://amxx.pl/topic...-by-nothing-10/
there is more option than flashbang or hegren but if you don't like you can delete them from the source and recompile the plugin
http://amxx.pl/topic...p-by-rpk-shark/
or
http://amxx.pl/topic...-by-nothing-10/
there is more option than flashbang or hegren but if you don't like you can delete them from the source and recompile the plugin
totoff
16.10.2011
I can not compile it for my COD MW mod is changed.
Who do I insert it in my COD MW mod please?
Who do I insert it in my COD MW mod please?
Hiroshima
16.10.2011
I don't understand what you're trying to do..
try this:
cod_shop.amxx 3,17 KB
3 Ilość pobrań
try this:
#include <amxmodx>
#include <codmod>
#include <engine>
#include <cstrike>
#include <fun>
public plugin_init()
{
register_plugin("CodShop by MieTeK", "1.0", "MieTeK");
register_clcmd("say /shop", "Sklep");
register_clcmd("say /buy", "Sklep");
}
public Sklep(id)
{
new tytul[25];
format(tytul, 24, "\rSklep by \yRPK. Shark");
new menu = menu_create(tytul, "Sklep_Handler");
menu_additem(menu, "HeGren \r[HE Grenade] \yPrice: \r3000$");//6
menu_additem(menu, "Flasbang \r[Flash Grenade] \yPrice: \r5000$");//7
menu_display(id, menu);
}
public Sklep_Handler(id, menu, item)
{
if(!is_user_alive(id) || !is_user_connected(id))
return PLUGIN_CONTINUE;
new kasa = cs_get_user_money(id);
if(item == MENU_EXIT)
{
menu_destroy(menu);
return PLUGIN_CONTINUE;
}
switch(item)
{
case 0:
{
if(kasa >= 3000)
{
cod_give_weapon(id, CSW_HEGRENADE);
cs_set_user_money(id, kasa-3000);
client_print(id, print_chat, "[COD:MW] You've bought HeGrenade!");
}
if(kasa < 3000)
client_print(id, print_chat, "[COD:MW] You don't have enough money!");
}
case 1:
{
if(kasa >= 5000)
{
cod_give_weapon(id, CSW_FLASHBANG);
cs_set_user_money(id, kasa-5000);
client_print(id, print_chat, "[COD:MW] You've bought flashbang!");
}
if(kasa < 5000)
client_print(id, print_chat, "[COD:MW] You don't have enough money!");
}
}
return PLUGIN_CONTINUE;
}
cod_shop.amxx 3,17 KB
3 Ilość pobrań
totoff
16.10.2011
Hiroshima
16.10.2011
Hiroshima
16.10.2011
I gave you shop here: http://amxx.pl/topic...post__p__308903
You've said that you want to have flashbang and hegrenade in this shop so there it is, in a seperate plugin.
You've said that you want to have flashbang and hegrenade in this shop so there it is, in a seperate plugin.
Hiroshima
16.10.2011
Wiadomość wygenerowana automatycznie
Ten temat został zamknięty przez moderatora.
Powód: Solved
Jeśli się z tym nie zgadzasz,
raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.
Z pozdrowieniami,
Zespół AMXX.PL
Ten temat został zamknięty przez moderatora.
Powód: Solved
Jeśli się z tym nie zgadzasz,
raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.Z pozdrowieniami,
Zespół AMXX.PL




