View Single Post
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 06-09-2008 , 02:25   Re: creating lightmap plugin
Reply With Quote #2

Yup. That's correct.

PHP Code:
/* Script generated by Pawn Studio */

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

#define PLUGIN    "light map"
#define AUTHOR    "Alucard"
#define VERSION    "1.0"

#define fm_set_lights(%1) engfunc(EngFunc_LightStyle, 0, "%1")

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_concmd("nv_lightmap""set_lights"ADMIN_SLAY"<a-z> ")
}

public 
set_lights(idlevelcid)
{
    if (!
cmd_access(idlevelcid2))
        return 
PLUGIN_HANDLED

    
new style[4]
    
read_argv(1style3)

    
fm_set_lights(style)
    
    return 
PLUGIN_HANDLED    

__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline