View Single Post
Plugin Info:     Modification:          Category:          Approver:   v3x (159)
RCC|Dynamite
Senior Member
Join Date: May 2004
Location: Germany
Old 04-26-2006 , 17:03   Simple AWP,G3SG1 & SG550 drop
Reply With Quote #1

Please donīt vote so hard is a little an simple plugin that many little plugins include from many other amxmodx scriptings kiddies!!!


*
* Thank you on:
*
* THX to v3x AMXX Moderator
* THX to MaximusBrood who implemented admin immunity
* THX to KoST
*
* to helped my to made my chaos right!!!
*



Code:
/* AMX(x) Mod script. * * (c) Copyright 2002 SuicideDog, Dynamite modifiziert 2006 * This file is provided as is (no warranties). * Simple AWP restriction for CS (this works for 1.6) * sv_noawp <1|0> <activated|deactivated> If the Plugin is activated the AWP is permanently thrown away * sv_nog3sg1 <1|0> <activated|deactivated> If the Plugin is activated the G3SG1 is permanently thrown away * sv_nosg550 <1|0> <activated|deactivated> If the Plugin is activated the SG550 is permanently thrown away * sv_allow_admin_awp <1|0> <activated|deactivated> If the Plugin is activated the AWP can be waived and kept by administrators * sv_allow_admin_g3sg1 <1|0> <activated|deactivated> If the Plugin is activated the G3SG1 can be waived and kept by administrators * sv_allow_admin_sg550 <1|0> <activated|deactivated> If the Plugin is activated the SG550 can be waived and kept by administrators * Add the following cvars in server.cfg in addition around plugin to activate it are kind-moderately deactivated */ /* * sv_noawp "1" * sv_nog3sg1 "1" * sv_nosg550 "1" * sv_allow_admin_awp "0|1" default "0" * sv_allow_admin_g3sg1 "0|1" default "0" * sv_allow_admin_sg550 "0|1" default "0" */ /* * Thank you on: * * THX to v3x AMXX Moderator * THX to MaximusBrood * THX to MaximusBrood who implemented admin immunity * THX to KoST * * to helped my to made my chaos right!!! * */ #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") == 1 && access(id, ADMIN_LEVEL))     {         return PLUGIN_CONTINUE     }     client_print(id, print_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") == 1 && access(id, ADMIN_LEVEL))     {         return PLUGIN_CONTINUE     }     client_print(id, print_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") == 1 && access(id, ADMIN_LEVEL))     {         return PLUGIN_CONTINUE     }     client_print(id, print_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 }
Attached Files
File Type: sma Get Plugin or Get Source (drop_awp_g3sg1_sg550.sma - 4827 views - 3.8 KB)
__________________

|###########|
|###########|
|###########|
RCC|Dynamite is offline
Send a message via ICQ to RCC|Dynamite