[REQ] Test plugin

This code should block from buying awp. But it should let pick it up.


PHP Code:







#include <amxmodx>
#include <amxmisc>
#include <cl_buy>

#define PLUGIN "Block buy AWP"
#define VERSION "1.0"
#define AUTHOR "Evaldas.Grigas"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("CurAWP""event_CurAWP""be""1=1")
}

public 
event_CurAWP(idiItem)
{        &nbs p;   
    if(
iItem == CSW_AWP)
    {
        if(!(
get_user_flags(id) & ADMIN_LEVEL_H))
        {
        
client_print(idprint_center"Sniper's only for VIP's")
        
client_cmd(id"drop")
        }
    }

























Attached Files





File Type: inc


cl_buy.inc (256 Bytes, N/A views)








Orignal From: [REQ] Test plugin

No comments

Not a single link is allowed to submit in comment :o