Raised This Month: $32 Target: $400
 8% 

Awp Restriction Player Limit


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Shango
Junior Member
Join Date: Oct 2008
Location: Britain
Plugin ID:
579
Plugin Version:
1.0.1
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
This Plugin restricts the AWP if there are less than 8 players in the server
Old 10-11-2008 , 16:47   Awp Restriction Player Limit
Reply With Quote #1

Hi, this is my first plugin, i only started learning SourcePawn yesterday, so, be nice .
This plugin, as the Description suggests, restricts the AWP if there are less than 8 players in game.

I created this because i saw how quickly people left if there were people awping in servers that only had about 5 people in game, ( like 3v2 or whatever), so i thought, awps are good in larger games, but they don't help when trying to fill a server!

so i decided to learn how to code for SM and make this!

This plugin either requires -
Mani

OR

Source mod, and this Plugin -> https://forums.alliedmods.net/showth...light=restrict.



Thanks go to Brizad and MistaGee for answering my noob questions, you guys are the best.

Note - aSmig has made a very good improvement on my plugin, congrats to him, if you want to take a look at his if you are looking for more options in how the plugin runs on your server!
http://ta.failte.romhat.net/blog/?p=7

Code:
Changelog 1.0.0 -> 1.0.1

Added code to check if Required 'Weapon Restriction'
Plugin is installed on server. (thanks Liam)

Changelog 1.0.1 -> 1.1

Improved the code, no spam, and works for Mani also now.
Attached Files
File Type: sp Get Plugin or Get Source (awplimitms2.sp - 8692 views - 1.8 KB)

Last edited by Shango; 12-21-2008 at 13:26. Reason: Updated.
Shango is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 10-11-2008 , 17:08   Re: Awp Restriction Player Limit
Reply With Quote #2

post the .sp file
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
Shango
Junior Member
Join Date: Oct 2008
Location: Britain
Old 10-11-2008 , 17:40   Re: Awp Restriction Player Limit
Reply With Quote #3

done.
Shango is offline
Liam
SourceMod Developer
Join Date: Jan 2008
Location: Atlanta, GA
Old 10-11-2008 , 19:55   Re: Awp Restriction Player Limit
Reply With Quote #4

Whats the point of making this dependant on my plugin when my plugin already allows people to retrict awps down to a point where they want it?

*is confused*

Also, your not checking to see if my restrict.smx is loaded, and if you really want, I could make some of the calls, such as 'IsRestricted' natives so they are callable from other plugins and you can drop the spam in-game.
__________________
Please don't PM me for support of my plugins. If you have a question, reply in the appropriate thread.

Weapon Restrictions w/ Warmup
High Ping Kicker - Lite Edition
AFK Manager

Last edited by Liam; 10-11-2008 at 20:00.
Liam is offline
Shango
Junior Member
Join Date: Oct 2008
Location: Britain
Old 10-11-2008 , 20:07   Re: Awp Restriction Player Limit
Reply With Quote #5

this plugin was mainly made for a server which i admin on, but i thought i may as well release it here anyways.

The idea was, we like awps on our server, but if there are only a few people, and 1 or 2 are awping, people who join and then are killed by awpers constantly generally leave, which means its harder to fill the server.

To fix this, the plugin means that until more than 8 people are in the server, you can't use an awp.

Once there are more than 8 people in the server, you can use an awp!


Your plugin is great, but it does not give a feature like this, think of this as an addon to your plugin (unofficial addon albiet)

And yea i haven't added a check to see if your plugin is loaded, only because i don't yet know how lol, i only started coding for Sourcemod today so i don't know a whole lol haha.
Shango is offline
Liam
SourceMod Developer
Join Date: Jan 2008
Location: Atlanta, GA
Old 10-11-2008 , 20:12   Re: Awp Restriction Player Limit
Reply With Quote #6

Code:
if(FindPluginByFile(restrict.smx) == INVALID_HANDLE)
{
    SetFailState("Missing restrict.smx. Aborting.");
    return;
}
__________________
Please don't PM me for support of my plugins. If you have a question, reply in the appropriate thread.

Weapon Restrictions w/ Warmup
High Ping Kicker - Lite Edition
AFK Manager
Liam is offline
Shango
Junior Member
Join Date: Oct 2008
Location: Britain
Old 10-11-2008 , 20:13   Re: Awp Restriction Player Limit
Reply With Quote #7

Oh you didn't have to. but thank you!
btw you forgot to put restrict.smx in quotes teehee.
and Updated!

Last edited by Shango; 10-11-2008 at 20:28.
Shango is offline
Liam
SourceMod Developer
Join Date: Jan 2008
Location: Atlanta, GA
Old 10-13-2008 , 11:01   Re: Awp Restriction Player Limit
Reply With Quote #8

Yeah um so I looked at your code and its got a few problems. Try this, maybe? It should also stop the spam.

http://liam.ampaste.net/m9744ad5
__________________
Please don't PM me for support of my plugins. If you have a question, reply in the appropriate thread.

Weapon Restrictions w/ Warmup
High Ping Kicker - Lite Edition
AFK Manager

Last edited by Liam; 10-13-2008 at 11:04.
Liam is offline
Shango
Junior Member
Join Date: Oct 2008
Location: Britain
Old 10-15-2008 , 14:52   Re: Awp Restriction Player Limit
Reply With Quote #9

K, new update! now works with Mani Also!
And no spam!
__________________
"Jees I'm bored, let's learn how to code for Sourcemod"
STOP!
MIND HURTING AHEAD
"crap"
Shango is offline
Shango
Junior Member
Join Date: Oct 2008
Location: Britain
Old 11-02-2008 , 18:27   Re: Awp Restriction Player Limit
Reply With Quote #10

Ok the Plugin has been tested for several days with no problems! just thought i should let you all know!
__________________
"Jees I'm bored, let's learn how to code for Sourcemod"
STOP!
MIND HURTING AHEAD
"crap"
Shango 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 17:29.


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