Raised This Month: $ Target: $400
 0% 

for d2 only


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jackas
Senior Member
Join Date: Feb 2011
Old 12-04-2011 , 16:38   for d2 only
Reply With Quote #1

Can someone edit this plugin that will work in de_dust2 only?
PHP 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 who implemented admin immunity
* THX to KoST
*
* to helped my to made my chaos right!!!
*/
/* Id of weapons in CS */
#define CSW_P228 1
#define CSW_SCOUT 3
#define CSW_HEGRENADE 4
#define CSW_XM1014 5
#define CSW_C4 6
#define CSW_MAC10 7
#define CSW_AUG 8
#define CSW_SMOKEGRENADE 9
#define CSW_ELITE 10
#define CSW_FIVESEVEN 11
#define CSW_UMP45 12
#define CSW_SG550 13
#define CSW_GALI 14
#define CSW_GALIL 14
#define CSW_FAMAS 15
#define CSW_USP 16
#define CSW_GLOCK18 17
#define CSW_AWP 18
#define CSW_MP5NAVY 19
#define CSW_M249 20
#define CSW_M3 21
#define CSW_M4A1 22
#define CSW_TMP 23
#define CSW_G3SG1 24
#define CSW_FLASHBANG 25
#define CSW_DEAGLE 26
#define CSW_SG552 27
#define CSW_AK47 28
#define CSW_KNIFE 29
#define CSW_P90 30

#include <amxmodx>
#include <amxmisc>
#define ADMIN_LEVEL ADMIN_CHAT

public check_awp() 

    if (!
get_cvar_num("sv_noawp")) return PLUGIN_HANDLED 
    
    
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")) return PLUGIN_HANDLED 
     
    
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")) return PLUGIN_HANDLED 
     
    
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

I tried this link but not working..
__________________
For our new family member's in alliedmods
Quote:
Originally Posted by bo0m View Post
Ok, there are a couple ways to find this, here are about 5:
1. Search
2. Search again
3. If you don't find it, then search again.
4. After searching the 3rd time, search again
5. Then when you are tired of searching, just search some more!!!!
jackas is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 12-04-2011 , 16:48   Re: for d2 only
Reply With Quote #2

Use per-map configs.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
jackas
Senior Member
Join Date: Feb 2011
Old 12-04-2011 , 17:43   Re: for d2 only
Reply With Quote #3

how? any link?
__________________
For our new family member's in alliedmods
Quote:
Originally Posted by bo0m View Post
Ok, there are a couple ways to find this, here are about 5:
1. Search
2. Search again
3. If you don't find it, then search again.
4. After searching the 3rd time, search again
5. Then when you are tired of searching, just search some more!!!!
jackas is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 12-04-2011 , 19:41   Re: for d2 only
Reply With Quote #4

Read this.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.

Last edited by wickedd; 12-04-2011 at 20:34.
wickedd is offline
jackas
Senior Member
Join Date: Feb 2011
Old 12-04-2011 , 20:20   Re: for d2 only
Reply With Quote #5

I think this for cvar only...it's useless for me
__________________
For our new family member's in alliedmods
Quote:
Originally Posted by bo0m View Post
Ok, there are a couple ways to find this, here are about 5:
1. Search
2. Search again
3. If you don't find it, then search again.
4. After searching the 3rd time, search again
5. Then when you are tired of searching, just search some more!!!!
jackas is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 12-04-2011 , 20:29   Re: for d2 only
Reply With Quote #6

Quote:
Originally Posted by jackas View Post
I think this for cvar only...it's useless for me
Try what I posted again.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.

Last edited by wickedd; 12-04-2011 at 20:35.
wickedd is offline
jackas
Senior Member
Join Date: Feb 2011
Old 12-05-2011 , 06:01   Re: for d2 only
Reply With Quote #7

Quote:
Originally Posted by wickedd View Post
Try what I posted again.
Yes, i already tried this link [Link given in my thread also] but not working...1st I made a .ini file called plugins-de_dust2.ini then added drop_awp_g3sg1_sg550.amxx on it but it executed on all maps...so not working !!!
__________________
For our new family member's in alliedmods
Quote:
Originally Posted by bo0m View Post
Ok, there are a couple ways to find this, here are about 5:
1. Search
2. Search again
3. If you don't find it, then search again.
4. After searching the 3rd time, search again
5. Then when you are tired of searching, just search some more!!!!

Last edited by jackas; 12-05-2011 at 06:06.
jackas is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 12-05-2011 , 06:51   Re: for d2 only
Reply With Quote #8

Quote:
Originally Posted by jackas View Post
Yes, i already tried this link [Link given in my thread also] but not working...1st I made a .ini file called plugins-de_dust2.ini then added drop_awp_g3sg1_sg550.amxx on it but it executed on all maps...so not working !!!
You probably forgot to remove that plugin from your original plugins.ini then.
Erox902 is offline
jackas
Senior Member
Join Date: Feb 2011
Old 12-05-2011 , 07:08   Re: for d2 only
Reply With Quote #9

Quote:
Originally Posted by Erox902 View Post
You probably forgot to remove that plugin from your original plugins.ini then.
yeah i removed drop_awp_g3sg1_sg550.amxx from plugins.ini
__________________
For our new family member's in alliedmods
Quote:
Originally Posted by bo0m View Post
Ok, there are a couple ways to find this, here are about 5:
1. Search
2. Search again
3. If you don't find it, then search again.
4. After searching the 3rd time, search again
5. Then when you are tired of searching, just search some more!!!!

Last edited by jackas; 12-05-2011 at 07:10.
jackas is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 12-05-2011 , 07:17   Re: for d2 only
Reply With Quote #10

Where did you save the .ini file ?

It needs to be in configs/maps/plugins-de_dust2.ini.

It will be executed every time when it is in configs folder.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
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 20:46.


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