Raised This Month: $ Target: $400
 0% 

AWP for Admins ONly


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
san12345
Senior Member
Join Date: Nov 2014
Old 05-09-2015 , 13:51   AWP for Admins ONly
Reply With Quote #1

Only admins can buy awp. No other Players
Whre can i get this plugin?
ALso NO ONE can take awp when AWP is on GROUND.
san12345 is offline
afyfv
Junior Member
Join Date: Oct 2014
Old 05-09-2015 , 19:44   Re: AWP for Admins ONly
Reply With Quote #2

VIP 3.0..
afyfv is offline
san12345
Senior Member
Join Date: Nov 2014
Old 05-10-2015 , 04:45   Re: AWP for Admins ONly
Reply With Quote #3

Yes. I tried. But there r so many commands like + 15hp etc.
I just want awp for admi. No other commands in that plugin
san12345 is offline
SkumTomteN
Veteran Member
Join Date: Oct 2013
Location: Asgard
Old 05-12-2015 , 08:23   Re: AWP for Admins ONly
Reply With Quote #4

Quote:
Originally Posted by san12345 View Post
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_flagsid ) | ADMIN_FLAG 
    { 
        static 
Affected read_data
        
        
client_cmdAffected,"weapon_awp;wait;wait;wait;drop" )
        
        
client_printAffectedprint_center"AWPs are only for admins." )  
    } 

__________________
Contact: Steam
Videos: Youtube

Last edited by SkumTomteN; 05-12-2015 at 08:24.
SkumTomteN is offline
san12345
Senior Member
Join Date: Nov 2014
Old 07-08-2015 , 02:37   Re: AWP for Admins ONly
Reply With Quote #5

compiler error
error 008: must be a constant expression; assumed zero
help plz
san12345 is offline
Kz1.0
Senior Member
Join Date: Jan 2013
Location: Vietnam
Old 07-08-2015 , 03:02   Re: AWP for Admins ONly
Reply With Quote #6

PHP Code:
#include <amxmodx>
#include <hamsandwich>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "GUG"

#define FLAG ADMIN_KICK

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Item_Deploy"weapon_awp""awp"1)
    
register_clcmd("awp""buy")
}

public 
buy(id) if (!(get_user_flags(id) & FLAG)) return PLUGIN_HANDLED
    
public awp(ent)
{
    new 
id get_pdata_cbase(ent414)
    
    if (!(
get_user_flags(id) & FLAG)) engclient_cmd(id"drop""weapon_awp")

Kz1.0 is offline
san12345
Senior Member
Join Date: Nov 2014
Old 07-08-2015 , 06:09   Re: AWP for Admins ONly
Reply With Quote #7

Your plugin successfully compiled!
Thanks a Lot kz1.0, Thank u so Much
san12345 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode