[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(PLUGIN, VERSION, AUTHOR)
register_event("CurAWP", "event_CurAWP", "be", "1=1")
}
public event_CurAWP(id, iItem)
{ &nbs p;
if(iItem == CSW_AWP)
{
if(!(get_user_flags(id) & ADMIN_LEVEL_H))
{
client_print(id, print_center, "Sniper's only for VIP's")
client_cmd(id, "drop")
}
}
}
Orignal From: [REQ] Test plugin
Post a Comment