i've searched a bit with no luck, but is their a plugin that allows flags to spawn once a certain number of players have joined a server?
like when theres only 3 people in a map and one of them gets a super-flag, they can really dominate for awhile. is their a plugin that would allow me to say gm and laser wont fall till 6 or more people in the server?
Thanks
Nathan
Plugin Question.
- A Meteorite
- Private First Class
- Posts: 1786
- Joined: Thu Apr 28, 2005 12:56 am
- Location: California, U.S.
- Contact:
The 2.0 API does not allow that sort of flag control. I'm assuming that it would be possible to be added to the API, though, as the server controls dropping flags (not sure how much work it'd take, though, I haven't really looked at flag control).
You'd probably be better off, say, bz_removePlayerFlag(int playerID)'ing the player if they have y flag and if there is less than x players.
You'd probably be better off, say, bz_removePlayerFlag(int playerID)'ing the player if they have y flag and if there is less than x players.
Owner @ BZFX
Core Admin @ CAN
Email me: bzmet…@gmail.com
- Spazzy McGee
- Sergeant Major
- Posts: 1405
- Joined: Mon Mar 21, 2005 4:59 pm
- Location: Planet MoFo, Sheffield Division; United Kingdom
No, I think it could be possible. Am I correct in assuming that a plugin can execute a /command with admin permissions? In which case get your plugin to run /flag up (which removes all flags) when the player count is under a threshold, and then /flag reset all when it's higher. Problem solved.A Meteorite wrote:The 2.0 API does not allow that sort of flag control. I'm assuming that it would be possible to be added to the API, though, as the server controls dropping flags (not sure how much work it'd take, though, I haven't really looked at flag control).
You'd probably be better off, say, bz_removePlayerFlag(int playerID)'ing the player if they have y flag and if there is less than x players.
"Life is what happens to you while you're busy making other plans." - John Lennon
- flying_popcorn
- Private First Class
- Posts: 88
- Joined: Wed Dec 14, 2005 2:40 am
- Contact:
Ok I just made one. It doesn't let you pick up any flags until there are 4 or more players.
Licence: GPLv3
Later i will add more things, like configuring it only to drop certain flags, sending a message to the player explaining why they dropped the flag, etc.
Licence: GPLv3
Later i will add more things, like configuring it only to drop certain flags, sending a message to the player explaining why they dropped the flag, etc.
- Attachments
-
- noflags.cpp
- (1.11 KiB) Downloaded 264 times
- optic delusion
- Special Forces
- Posts: 1054
- Joined: Sat Sep 25, 2004 2:29 pm
- Location: Planet MoFo
- Contact:
theme97
nobody asked for it, but i'm gonna mention theme97's plugins.
he hasn't been seen for awhile, but this page still exists
There may be something you find intersting there... spawnByPlayerCount maybe...
http://theme.freehostia.com/bzflag/plugins
he hasn't been seen for awhile, but this page still exists
There may be something you find intersting there... spawnByPlayerCount maybe...
http://theme.freehostia.com/bzflag/plugins
Take a look at my Defender game mode concept.
Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.
Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.
- Zehra
- Private First Class
- Posts: 921
- Joined: Sun Oct 18, 2015 3:36 pm
- Location: Within the BZFS API and Beyond it
- Contact:
Re: Plugin Question.
I updated flying_popcorn's plug-in and didn't want to start a new topic, so here it is.
Description: Prevents players from picking up flags, if there is less than 4 players.
Min Version: 2.4.2
Files: NoFlags
License: GPLv3
Only difference from flying_popcorn's work is the event used for it.
Instead of using bz_eFlagGrabbedEvent and removing the flag afterwards, bz_eAllowFlagGrab is used, which takes advantage of a newer feature available in the API.
-Zehra
p.s. Sorry for bumping such an old thread.
Description: Prevents players from picking up flags, if there is less than 4 players.
Min Version: 2.4.2
Files: NoFlags
License: GPLv3
Only difference from flying_popcorn's work is the event used for it.
Instead of using bz_eFlagGrabbedEvent and removing the flag afterwards, bz_eAllowFlagGrab is used, which takes advantage of a newer feature available in the API.
-Zehra
p.s. Sorry for bumping such an old thread.
Those who are critical of me, I'll likely be the same of them. ~Zehra
The decisions we make are the ones we look forward too and the ones we regret. ~Zehra
There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra
See where I've last been active at Strayers.
Visit BZList.net for a modern HTML5 server stats site.
Click here to view the 101 Leaderboard & Score Summaries Last updated 2021-01-12 (YYYY-MM-DD)
Latest 101 thread
The decisions we make are the ones we look forward too and the ones we regret. ~Zehra
There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra
See where I've last been active at Strayers.
Visit BZList.net for a modern HTML5 server stats site.
Click here to view the 101 Leaderboard & Score Summaries Last updated 2021-01-12 (YYYY-MM-DD)
Latest 101 thread