Raised This Month: $ Target: $400
 0% 

Plugin CSDM only awp for awp maps


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
daNzEt
Senior Member
Join Date: Sep 2010
Location: Romania
Old 02-01-2014 , 09:58   Plugin CSDM only awp for awp maps
Reply With Quote #1

Hello,

I need a plugin that give players at spawn only awp (for Csdm respawn).
This is only for awp maps awp_

i found this but need some changes i think

http://forums.alliedmods.net/showthread.php?p=845731
daNzEt is offline
Send a message via Yahoo to daNzEt Send a message via Skype™ to daNzEt
caked
Member
Join Date: Dec 2012
Old 02-01-2014 , 17:34   Re: Plugin CSDM only awp for awp maps
Reply With Quote #2

What do you want the bpammo for AWP?

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fun>
 
#define PLUGIN "Spawn AWP"
#define VERSION "1.0"
#define AUTHOR "caked"
 
public plugin_init() {
register_plugin(PLUGINVERSIONAUTHOR)
 
RegisterHamHam_Spawn"player""SpawnAWP");
}
 
public 
SpawnAWP(id)
{
give_itemid"weapon_knife");
give_itemid"weapon_awp"); 


Last edited by caked; 02-01-2014 at 17:42.
caked is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 02-01-2014 , 17:55   Re: Plugin CSDM only awp for awp maps
Reply With Quote #3

@caked

No
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
wTf.
Senior Member
Join Date: Aug 2011
Location: This important?
Old 02-01-2014 , 19:14   Re: Plugin CSDM only awp for awp maps
Reply With Quote #4

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fun>
#include <cstrike>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "wTf."

new map[32];
public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
get_mapname(map,charsmax(map));
    if((
containi(map,"awp") == -1) && (containi(map,"awp_") == -1)) return  
    
    
RegisterHam(Ham_Spawn"player""FwdPlayerSpawnPost",1)
}
public 
FwdPlayerSpawnPost(id) {
    if(!
is_user_alive(id)) return;
    
    
strip_user_weapons(id)
    
give_item(id"weapon_knife")
    
give_item(id"weapon_awp")
    
cs_set_user_bpammo(idCSW_AWP30)

wTf. is offline
daNzEt
Senior Member
Join Date: Sep 2010
Location: Romania
Old 02-02-2014 , 08:56   Re: Plugin CSDM only awp for awp maps
Reply With Quote #5

This is ok

Quote:
Originally Posted by wTf. View Post
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fun>
#include <cstrike>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "wTf."

new map[32];
public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
get_mapname(map,charsmax(map));
    if((
containi(map,"awp") == -1) && (containi(map,"awp_") == -1)) return  
    
    
RegisterHam(Ham_Spawn"player""FwdPlayerSpawnPost",1)
}
public 
FwdPlayerSpawnPost(id) {
    if(!
is_user_alive(id)) return;
    
    
strip_user_weapons(id)
    
give_item(id"weapon_knife")
    
give_item(id"weapon_awp")
    
cs_set_user_bpammo(idCSW_AWP30)

It gives awp + knife to players, but with de meniul with weapons from CSDM? how can i deactivate it because players can buy all weapons on awp maps ...
daNzEt is offline
Send a message via Yahoo to daNzEt Send a message via Skype™ to daNzEt
daNzEt
Senior Member
Join Date: Sep 2010
Location: Romania
Old 02-15-2014 , 07:10   Re: Plugin CSDM only awp for awp maps
Reply With Quote #6

Bump!
daNzEt is offline
Send a message via Yahoo to daNzEt Send a message via Skype™ to daNzEt
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 02-17-2014 , 11:43   Re: Plugin CSDM only awp for awp maps
Reply With Quote #7

So you want to disable the CSDM menu on awp maps?
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
daNzEt
Senior Member
Join Date: Sep 2010
Location: Romania
Old 02-23-2014 , 09:24   Re: Plugin CSDM only awp for awp maps
Reply With Quote #8

Theoretic i want to disable menu with weapons when map is awp_
daNzEt is offline
Send a message via Yahoo to daNzEt Send a message via Skype™ to daNzEt
daNzEt
Senior Member
Join Date: Sep 2010
Location: Romania
Old 03-30-2014 , 03:26   Re: Plugin CSDM only awp for awp maps
Reply With Quote #9

Help?
daNzEt is offline
Send a message via Yahoo to daNzEt Send a message via Skype™ to daNzEt
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 03-30-2014 , 04:06   Re: Plugin CSDM only awp for awp maps
Reply With Quote #10

maybe..
Quote:
Originally Posted by ANTICHRISTUS View Post
read this to understand how to do it with specific maps: 6.2 Map Config Files and 6.3 Map Specific Plugins.
__________________
ANTICHRISTUS is offline
Reply



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 06:03.


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