lili2009 发表于 2010-3-24 01:32:02

烟花插件

public plugin_init() {
        register_plugin("Fireworks++","2.5","Twilight Suzuka")

        register_menucmd(register_menuid("Fireworks Menu:"),1023,"fireworks_keys")

        register_think("nrm_fireworks","fireworks_think");
        register_think("firework_rc","fireworks_think");
        register_think("firework_rv","fireworks_think");
        register_think("firework_normal","fireworks_think");

        register_touch("*","firework_rc","fireworks_touch");
        register_touch("*","firework_rv","fireworks_touch");
        register_touch("*","firework_normal","fireworks_touch");
        register_touch("*","nrm_fireworks","fireworks_touch");

        register_concmd("say","handle_say")
        register_srvcmd("set_lights","changelights")
        register_concmd("firework","spawn_firework")
        register_concmd("firework_rv","spawn_firework")
        register_concmd("firework_rc","spawn_firework")

        register_concmd("firework_shooter","spawn_shooter")
        register_concmd("shoot_fireworks","shoot_firework")

        register_concmd("fireworks_password","check_password")

        register_concmd("remove_fireworks","remove_fireworks")
        register_concmd("remove_shooters","remove_shooters")

        register_concmd("amx_remove_fireworks","amx_remove_fireworks")
        register_concmd("amx_remove_shooters","amx_remove_shooters")

        register_cvar("fireworks_enable","1")
        register_cvar("fireworks_flare_count","30")
        register_cvar("fireworks_maxcount","4")
        register_cvar("fireworks_amaxcount","16")
        register_cvar("fireworks_colortype","0")
        register_cvar("fireworks_multiplier","2")

        register_cvar("fireworks_xvelocity","100")
        register_cvar("fireworks_yvelocity","100")

        register_cvar("fireworks","tsx")

czdczdczd 发表于 2010-7-21 03:50:56

这个我要了,刚下了个烟花插件,不会用

tianyuchen 发表于 2010-7-24 13:34:22

这个怎么用啊

Caiiy 发表于 2010-9-5 18:32:15

是啊,咋用啊…

popbily 发表于 2011-12-19 16:08:02

不会用啊

ckn911 发表于 2012-1-27 15:44:34

效果图什么样的··
页: [1]
查看完整版本: 烟花插件