public Sklep(id) { { new text[513] format(text, 512, "\ySklep - ^n\w0. Lekarstwo [Leczy 30hp] - \r$1000^n\w9. Zamknij") new keys = (1<<0) show_menu(id, keys, text) return PLUGIN_HANDLED } public select_rune_menu2(id, key) { switch(key) { case 0: { if (!UTIL_Buyformoney(id,1000)) return PLUGIN_HANDLED new ammount=30 if (get_user_health(id)+ammount>race_heal[klasa_gracza[id]]+zdrowie_gracza[id]) return PLUGIN_HANDLED new hp = get_user_health(id) set_user_health(id, hp + ammount) } case 9: { return PLUGIN_HANDLED } }
Zrobilem takie cos w CoD od peyote ktos mi powie czy to bedzie all dzialalo?? Chodzi mi o to zeby uleczalo 30hp temu kto kliknie 0
Dodalem jeszcze takie cos tutaj:
register_clcmd("say /klasa", "WybierzKlase"); register_clcmd("say /klasy", "OpisKlasy"); register_clcmd("say /przedmiot", "OpisPrzedmiotu"); register_clcmd("say /item", "OpisPrzedmiotu"); register_clcmd("say /drop", "WyrzucPrzedmiot"); register_clcmd("say /rune", "Sklep"); register_clcmd("say /wyrzuc", "WyrzucPrzedmiot"); register_clcmd("say /reset", "KomendaResetujPunkty"); register_clcmd("fullupdate", "BlokujKomende");
Użytkownik Pawex edytował ten post 03.05.2010 13:03