AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   AWP for Admins ONly (https://forums.alliedmods.net/showthread.php?t=262646)

san12345 05-09-2015 13:51

AWP for Admins ONly
 
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.

afyfv 05-09-2015 19:44

Re: AWP for Admins ONly
 
VIP 3.0..

san12345 05-10-2015 04:45

Re: AWP for Admins ONly
 
Yes. I tried. But there r so many commands like + 15hp etc.
I just want awp for admi. No other commands in that plugin

SkumTomteN 05-12-2015 08:23

Re: AWP for Admins ONly
 
Quote:

Originally Posted by san12345 (Post 2295136)
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." )  
    } 



san12345 07-08-2015 02:37

Re: AWP for Admins ONly
 
compiler error
error 008: must be a constant expression; assumed zero
help plz

Kz1.0 07-08-2015 03:02

Re: AWP for Admins ONly
 
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")



san12345 07-08-2015 06:09

Re: AWP for Admins ONly
 
Your plugin successfully compiled!
Thanks a Lot kz1.0, Thank u so Much


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

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