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

[REQ] Restrict zones in map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 04-28-2012 , 10:57   [REQ] Restrict zones in map
Reply With Quote #1

[EDIT]
It might be alot easyer to start from this plugin, its the same prinicple just other things that need to happen

Hi,
I have a suggestion request plugin:

- I (Rcon admin only) want to manually highlight several zones in a map by setting 4 corners of a box (the box being one restricted zone. 1 zone can contain multiple boxes).

all boxes inside a zone will be invisible. kinda the principle of the jailbreak:football & nets plugin where only the admin can see the box highlighted in red when in building mode

- then i want to save it in 1 file organized per map with all the coordinates per zone (there can be multiple boxes per zone) so that when a player is inside one of the boxes from a restricted zone he gets slapped with 5 damage every 3 seconds.

- Once an admin has set all zones he wants and saved,
then at the beginning of each round I want to show a menu to a random CT.
that random ct may choose x (depending on cvar) zones to restrict out of a list containing all the names of the zones the admin configured.

those zones will be constantly displayed somewhere on every player's screen, so that everybody can see what zones is restricted.

when the round has ended the zones the random ct chose will be reset and a new random player of ct can choose the new zones to restrict.

- this plugin will need a menu to configure boxes and zones properly, something like this:

Zone-restrictor menu:

1. Create a new zone
2. Add a box for an existing zone
3. Remove a zone
4. Remove a box inside an existing zone




Submenu's and its functions:

----------------------------------------
1. Create a new zone

1. Make a new box
= enters the build modus to set the 4 cornes of the box, after the admin has set the
4 corners it should automaticly ask the admin if he wants to save his box or not. if he wants to save the ask him how he wants to name the box (if not possible to name every box then use autonumbering, first box = 1,...).

2. Name of the new zone
= Asks the admin on how he wants to name the zone, That name will be used later for the
random ct to choose his 2 zones to restrict.

3. Save the new zone
= Save's everything we just did and goes back the the zone restrictor menu

4. return
5. quit
----------------------------------------

----------------------------------------
2. Add a box for an existing zone

List of all the names of the zones made,
after choosing a zone automaticly go in build mode to start setting the 4 corners of the zone,
after setting the 4 corners a lil menu has to pop up to ask the admin if he wants to save it or not. if the admin wants to save it then the game has to ask how he wants to name that box (if not possible boxname = total boxes +1).


2.? return
2.? quit
----------------------------------------

----------------------------------------
3. Remove a zone

List of all the names of the zones made containing all the boxes of that zone,
after choosing a zone a lil menu has to pop up to ask the admin if he really wants to delete all the boxes inside that zone.

2.? return
2.? quit
----------------------------------------

----------------------------------------
4. Remove a box inside an existing zone

List of all the names of the zones made, after choosing a zone a new submenu shows up that holds all the boxnames inside that zone.
pressing a the key of the boxname removes it

2.? return
2.? quit
----------------------------------------

I know this is a hard plugin to make so I am willing to pay for it upon bugfree completion, name your price


cheers!

Last edited by striker07; 04-30-2012 at 08:49.
striker07 is offline
csykosoma
Member
Join Date: Dec 2011
Old 04-30-2012 , 15:53   Re: [REQ] Restrict zones in map
Reply With Quote #2

have you tried this plugin, walkgaurd?

https://forums.alliedmods.net/showthread.php?p=477672
csykosoma is offline
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 05-01-2012 , 04:45   Re: [REQ] Restrict zones in map
Reply With Quote #3

wow nice, didnt knew there was already a plugin like this
ty csykosoma, I hope I can change it to my needs .
are 3 zones the max you can set up? or is there no limit?

EDIT:
I have take a look at it i the only thing i need so that i can set it to my needs is an include,
I just made this include, could anyone tell me if this is correct?

the point of the include is to remember when a first plugin has done something that needs to enable an action inside another plugin. Will this work?

PHP Code:
 
#if defined _jbrebel_included
  #endinput
#endif
#define _jbrebel_included
 
/**
 * Returns whether a player is a rebel or not.
 *
 * @param id  Player index.
 * @return   True if he is, false otherwise.
 */
native is_user_rebel(id)
/**
 * Set's a players status to rebel.
 *
 * @param id  Player index.
 * @return   True on success, false otherwise.
 */
native set_user_rebel(id)
/**
 * Removes a player's rebelstatus.
 *
 * @param id  Player index.
 * @return   True on success, false otherwise.
 */
native remove_user_rebel(id

Last edited by striker07; 05-01-2012 at 05:17.
striker07 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:50.


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