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

be able to buy only 1 awp per team each round


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
conn
Member
Join Date: Dec 2013
Old 10-04-2017 , 21:22   be able to buy only 1 awp per team each round
Reply With Quote #1

hello guys, ive been looking for this plugin for a while but i cant find nothing like what im actually looking for

I want a plugin that make each team (CT/TT) to buy only 1 awp per round, when this person is killed and drops the awp, nobody can grab it.

also when the server changes to maps like awp_ disable the plugin, and when it changes back to normal maps like dust2 inferno, make the plugin work again, i found this, but im not totally sure if it gives awp to all players when map changes to awp_ maps
https://forums.alliedmods.net/showth...ight=awp+round

Last edited by conn; 10-04-2017 at 21:22.
conn is offline
WhiteFang1319
Senior Member
Join Date: Jan 2017
Old 10-05-2017 , 05:10   Re: be able to buy only 1 awp per team each round
Reply With Quote #2

Add this in plugin_init() of the plugin you have:
Code:
	new mapname[32]; 
	get_mapname(mapname, charsmax(mapname));	
	
	new maps[][] = { "awp", "aim", "35hp" };
	for(new i; i < sizeof maps; i++){
		if(containi(mapname, maps[i]) != -1){
			pause("ad");
			return;
		}
	}
You can add other map prefixes too or just remove and keep awp
WhiteFang1319 is offline
WhiteFang1319
Senior Member
Join Date: Jan 2017
Old 10-05-2017 , 05:17   Re: be able to buy only 1 awp per team each round
Reply With Quote #3

I guess this one is better for you.

Cvars:
PHP Code:
awp_players_low "8" // If players are less than online cvar then at the end of the round awp is dropped and banned. (To disable it, set it to 0) [default: when online is less than 8]
awp_limit "1" // Enable | Disable the awp limit [Standard: Enabled]
awp_limit_max "2" // How many AWPs are permitted at the limit [Standard by 2 awp per command] | If PERCENT_PLAYERS is unraveled, then enter here the necessary percentage [ Check #define PERCENT_PLAYERS]
awp_limit_immun "1" // Enable | Disable the immunity from the limit (People with the flag does not take into account at all) [Standard Enabled] 
This plugin is turned off in awp,aim and 35hp maps.
You also need the colorchat.inc for compiling the plugin
Attached Files
File Type: sma Get Plugin or Get Source (hlds_awp_off.sma - 538 views - 9.7 KB)
File Type: inc colorchat.inc (4.9 KB, 85 views)

Last edited by WhiteFang1319; 10-05-2017 at 05:19.
WhiteFang1319 is offline
conn
Member
Join Date: Dec 2013
Old 10-05-2017 , 22:11   Re: be able to buy only 1 awp per team each round
Reply With Quote #4

Quote:
Originally Posted by WhiteFang1319 View Post
I guess this one is better for you.

Cvars:
PHP Code:
awp_players_low "8" // If players are less than online cvar then at the end of the round awp is dropped and banned. (To disable it, set it to 0) [default: when online is less than 8]
awp_limit "1" // Enable | Disable the awp limit [Standard: Enabled]
awp_limit_max "2" // How many AWPs are permitted at the limit [Standard by 2 awp per command] | If PERCENT_PLAYERS is unraveled, then enter here the necessary percentage [ Check #define PERCENT_PLAYERS]
awp_limit_immun "1" // Enable | Disable the immunity from the limit (People with the flag does not take into account at all) [Standard Enabled] 
This plugin is turned off in awp,aim and 35hp maps.
You also need the colorchat.inc for compiling the plugin

TYSM im going to try this for sure!
conn 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 10:52.


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