Raised This Month: $32 Target: $400
 8% 

Simple AWP,G3SG1 & SG550 drop


Post New Thread Reply   
 
Thread Tools Display Modes
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 01-15-2010 , 11:46   Re: Simple AWP,G3SG1 & SG550 drop
Reply With Quote #11

Isn't it better block buying these weapons with "Restrict Weapons" plugin?
__________________
"There is no knowledge, that is not power"
fezh is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 01-15-2010 , 12:58   Re: Simple AWP,G3SG1 & SG550 drop
Reply With Quote #12

It's better to block buy and block equip with both Restrict Weapons and this plugin xD
Seta00 is offline
igreen
Member
Join Date: Jul 2013
Location: Lithuania, country of se
Old 12-22-2013 , 16:10   Simple AWP,G3SG1 & SG550 drop
Reply With Quote #13

Hello, this plugin http://forums.alliedmods.net/showthread.php?p=235695 is somehow approved....

On my server sometimes admins don't get those weapons.. Sometimes they do.. All cvars are set how they should be. Anyone that can optimize this code? It's actually very useful plugin.

PHP Code:
#include <amxmodx>
#include <amxmisc>
#define ADMIN_LEVEL ADMIN_CHAT

public check_awp() 

    if (
get_cvar_num("sv_noawp") != 1
        return 
PLUGIN_CONTINUE 
    
    
new id read_data(0)

    if(
get_cvar_num("sv_allow_admin_awp") == && access(idADMIN_LEVEL))
    {
        return 
PLUGIN_CONTINUE
    
}

    
client_print(idprint_center"AWP's are not allowed. Find a real gun!"
    
client_cmd(id"weapon_g3sg1;wait;wait;wait;drop")

    return 
PLUGIN_CONTINUE 

public 
check_g3sg1() 

    if (
get_cvar_num("sv_nog3sg1") != 1
        return 
PLUGIN_CONTINUE
     
    
new id read_data(0)    

    if(
get_cvar_num("sv_allow_admin_auto") == && access(idADMIN_LEVEL))
    {
        return 
PLUGIN_CONTINUE
    
}

    
client_print(idprint_center"G3SG1's are not allowed. Find a real gun!"
    
client_cmd(id"weapon_g3sg1;wait;wait;wait;drop")

    return 
PLUGIN_CONTINUE 

public 
check_sg550() 

    if (
get_cvar_num("sv_nosg550") != 1
        return 
PLUGIN_CONTINUE
     
    
new id read_data(0)    

    if(
get_cvar_num("sv_allow_admin_sg550") == && access(idADMIN_LEVEL))
    {
        return 
PLUGIN_CONTINUE
    
}

    
client_print(idprint_center"SG550's are not allowed. Find a real gun!"
    
client_cmd(id"weapon_g3sg1;wait;wait;wait;drop")

    return 
PLUGIN_CONTINUE 
}
public 
plugin_init(){
   
register_plugin("Drop Awp","1.1c","Dynamite")
   
register_event("WeapPickup","check_awp","b","1=18")
   
register_event("WeapPickup","check_g3sg1","b","1=24")
   
register_event("WeapPickup","check_sg550","b","1=13")
   
register_cvar("sv_allow_admin_g3sg1""0")
   
register_cvar("sv_allow_admin_sg550""0"
   
register_cvar("sv_allow_admin_awp""0")
   
register_cvar("sv_nog3sg1","1")
   
register_cvar("sv_nosg550","1"
   
register_cvar("sv_noawp","1")

   return 
PLUGIN_CONTINUE

Also i've changed some bugs by myself like here
PHP Code:
client_print(idprint_center"SG550's are not allowed. Find a real gun!"
    
client_cmd(id"weapon_g3sg1;wait;wait;wait;drop"
weapon g3sg1 everywhere... But still admins sometimes don't recieve weapons.

Thanks to everyone who wants to help.
__________________
Lithuanian server owner which needs help

Last edited by igreen; 12-22-2013 at 16:11.
igreen is offline
Send a message via Skype™ to igreen
Old 12-22-2013, 16:20
igreen
This message has been deleted by YamiKaitou. Reason: bump
Reply


Thread Tools
Display Modes

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 21:00.


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