Raised This Month: $12 Target: $400
 3% 

Simple AWP,G3SG1 & SG550 drop


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands        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 - 4817 views - 3.8 KB)
__________________

|###########|
|###########|
|###########|
RCC|Dynamite is offline
Send a message via ICQ to RCC|Dynamite
Dark Killer
Senior Member
Join Date: May 2005
Location: Kowloon, Hong Kong
Old 04-29-2006 , 08:01  
Reply With Quote #2

I think using
Code:
    if (!get_cvar_num("sv_noawp")) return PLUGIN_HANDLED     if (!get_cvar_num("sv_nog3sg1")) return PLUGIN_HANDLED     if (!get_cvar_num("sv_nosg550")) return PLUGIN_HANDLED
instead of
Code:
    if (get_cvar_num("sv_noawp") != 1)         return PLUGIN_CONTINUE     if (get_cvar_num("sv_nog3sg1") != 1)         return PLUGIN_CONTINUE     if (get_cvar_num("sv_nosg550") != 1)         return PLUGIN_CONTINUE
Would be better.
__________________
Dark Killer is offline
RCC|Dynamite
Senior Member
Join Date: May 2004
Location: Germany
Old 04-29-2006 , 13:32  
Reply With Quote #3

I replaced it
__________________

|###########|
|###########|
|###########|
RCC|Dynamite is offline
Send a message via ICQ to RCC|Dynamite
allenwr
Veteran Member
Join Date: Jan 2006
Location: The place where the karm
Old 04-29-2006 , 13:46  
Reply With Quote #4

i thought about posting the same idea, only it replaces the weapons, not drops them...
__________________
Don't ever place an order with Vee Servers. This is why.
allenwr is offline
Send a message via ICQ to allenwr Send a message via Yahoo to allenwr
RCC|Dynamite
Senior Member
Join Date: May 2004
Location: Germany
Old 04-29-2006 , 19:59  
Reply With Quote #5

Like buy a AWP, get a MAC10

gg nice idea
__________________

|###########|
|###########|
|###########|
RCC|Dynamite is offline
Send a message via ICQ to RCC|Dynamite
allenwr
Veteran Member
Join Date: Jan 2006
Location: The place where the karm
Old 04-30-2006 , 16:50  
Reply With Quote #6

awp gets scout
ct autosniper gets tmp
t autosniper gets mac10
__________________
Don't ever place an order with Vee Servers. This is why.
allenwr is offline
Send a message via ICQ to allenwr Send a message via Yahoo to allenwr
balder84
Member
Join Date: Mar 2006
Location: Rostock
Old 07-24-2006 , 13:28   Re: Simple AWP,G3SG1 & SG550 drop
Reply With Quote #7

there is a error in your code :-) ( i think it is one ^^ )

Quote:
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
}
but it must be

client_cmd(id, "weapon_awp;wait;wait;wait;drop")
balder84 is offline
Send a message via ICQ to balder84 Send a message via MSN to balder84 Send a message via Yahoo to balder84
KiN | SuicideDog
Senior Member
Join Date: Mar 2004
Old 07-28-2006 , 16:11   Re: Simple AWP,G3SG1 & SG550 drop
Reply With Quote #8

Hmm I wonder why this plugin looks SO familiar.

"AWP's are not allowed. Find a real gun!"

Nice line.. where did you get that?

http://djeyl.net/forum/index.php?showtopic=17547

It's an oldey but goody. Nice to see it get converted/updated.

SuicideDog
KiN | SuicideDog is offline
mvdv25
Member
Join Date: Mar 2005
Location: The Netherlands
Old 04-16-2007 , 09:19   Re: Simple AWP,G3SG1 & SG550 drop
Reply With Quote #9

here the fix what balder84 already said..
Attached Files
File Type: amxx drop_awp_g3sg1_sg550.amxx (3.1 KB, 846 views)
mvdv25 is offline
Send a message via MSN to mvdv25
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 01-15-2010 , 11:40   Re: Simple AWP,G3SG1 & SG550 drop
Reply With Quote #10

I've made some minor modifications/optmizations to fit my surf server, I'm uploading it.

EDIT: drop_scoped.txt is saved under UTF-8 without BOM, if you modify, remember to save it in this encoding.
Attached Files
File Type: sma Get Plugin or Get Source (drop_scoped.sma - 1676 views - 1.8 KB)
File Type: txt drop_scoped.txt (139 Bytes, 612 views)
Seta00 is offline
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 07:38.


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