Quote:
Originally Posted by san12345
Yes. I tried. But there r so many commands like + 15hp etc.
I just want awp for admi. No other commands in that plugin
|
PHP Code:
#include <amxmodx>
#define ADMIN_FLAG ADMIN_BAN
public plugin_init() register_event("WeapPickup", "Event_AWP", "b", "1=18" )
public Event_AWP(id)
{
if( get_user_flags( id ) | ADMIN_FLAG )
{
static Affected = read_data( 0 )
client_cmd( Affected,"weapon_awp;wait;wait;wait;drop" )
client_print( Affected, print_center, "AWPs are only for admins." )
}
}
__________________