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

[ANY] Map Zones (with forwards)


Post New Thread Reply   
 
Thread Tools Display Modes
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 10-06-2014 , 05:10   Re: [ANY] Map Zones (with forwards)
Reply With Quote #121

Quote:
Originally Posted by XefolyN View Post
Great plugin, I have one problem though. I want to use this plugin to make a VIP only door for a VIP room. Only people with a specific flag can walk through it, not just admins.

Is this possible?
Use custom zones plugin and make CheckCommandAccess when player enteres zone.

Quote:
Originally Posted by fiala06 View Post
Thank you so much for this plugin. This has saved me a ton of headaches!

I was wondering if its possible to control what weps are allowed with the melee only zone. I have a boxing ring in my server and people complain about demos being able to use charge and dead ringers primarily (alternate attacks for weps). Is there any way I can block those from the zone also?
Maybe something like this will help you, but I dont have time nowadays to edit this plugin. I dont play tf2 either to test that, sorry.
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot
Root_ is offline
Ibanezez
SourceMod Donor
Join Date: Aug 2014
Location: Earth
Old 10-07-2014 , 00:39   Re: [ANY] Map Zones (with forwards)
Reply With Quote #122

I'm having some troubles using the OnEnteredProtectedZone and OnLeftProtectedZone, here is part of my code:
PHP Code:

new bool:g_bIsInZone[MAXPLAYERS 1];

public 
OnClientPostAdminCheck(iClient)
{
    
g_bIsInZone[iClient] = false;
}

public 
Action:OnEnteredProtectedZone(zoneiClient, const String:prefix[])
{
    
PrintToServer("OnEnteredProtectedZone");
    
g_bIsInZone[iClient] = true;
}

public 
Action:OnLeftProtectedZone(zoneiClient, const String:prefix[])
{
    
PrintToServer("OnLeftProtectedZone");
    
g_bIsInZone[iClient] = false;

For some reason, when I enter a zone those messages aren't getting sent, so I thought it might be a problem with the map zones plugin. Do you know if there is a way I can fix this?
__________________
Hello

Last edited by Ibanezez; 10-07-2014 at 00:57.
Ibanezez is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 10-07-2014 , 01:57   Re: [ANY] Map Zones (with forwards)
Reply With Quote #123

Quote:
Originally Posted by Ibanezez View Post
I'm having some troubles using the OnEnteredProtectedZone and OnLeftProtectedZone, here is part of my code:
PHP Code:

new bool:g_bIsInZone[MAXPLAYERS 1];

public 
OnClientPostAdminCheck(iClient)
{
    
g_bIsInZone[iClient] = false;
}

public 
Action:OnEnteredProtectedZone(zoneiClient, const String:prefix[])
{
    
PrintToServer("OnEnteredProtectedZone");
    
g_bIsInZone[iClient] = true;
}

public 
Action:OnLeftProtectedZone(zoneiClient, const String:prefix[])
{
    
PrintToServer("OnLeftProtectedZone");
    
g_bIsInZone[iClient] = false;

For some reason, when I enter a zone those messages aren't getting sent, so I thought it might be a problem with the map zones plugin. Do you know if there is a way I can fix this?
I had a similar problem in the past. This happened to me when the zones are placed around where players spawn.

the on enter zone called for each player while only a couple players would get on left zone called. The players who didnt get left zone called are then unable to trigger on enter zone.

I put this down to a noblock plugin at first. However when it was removed my problem still occured.

I pulled my hair out for weeks and the plugin author was no help what so ever.

As such. I don't use this plugin any more. I wrote my own plugin to solve my requirements in a much effective way.
__________________
Neuro Toxin is offline
iEx5
Member
Join Date: Aug 2014
Location: Saint-Petersburg
Old 10-07-2014 , 14:44   Re: [ANY] Map Zones (with forwards)
Reply With Quote #124

Sometimes plugin won't hook OnEnteredProtectedZone action,
But with that,OnLeftProtectedZone still works,
Any solutions?
iEx5 is offline
Send a message via Skype™ to iEx5
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 10-07-2014 , 15:33   Re: [ANY] Map Zones (with forwards)
Reply With Quote #125

Ibanezez, Neuro Toxin, iEx5 if you created zones within player respawn, increase Z point of first coords, because players getting spawned a bit higher than ground. Then StartTouch forward should be called, because player will 'fall' into zone obviously. Otherwise StartTouch forward wont be fired.
Having said that, plugin uses HookEntityOutput, which might be not always called (yeah I also encountered that issue a few times). Not sure if its either entity or just hooker problem.
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot
Root_ is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 10-07-2014 , 16:24   Re: [ANY] Map Zones (with forwards)
Reply With Quote #126

When this happened to me. Onstarttouch called. While onendtouch was dead for 90% of players when it occured.

Eg. Everything is fine. Round starts. Triggers call. 20 players leave spawn. End touch calls 4 times. The players that dont trigger on leave, cant trigger start touch again.

The amount of stuff I tried with your plugin to stop it was crazy. Literally weeks spent trying to fix it.

I can confirm when this happens your plugin is not getting the start touch / end touch event from the trigger multiple.
__________________

Last edited by Neuro Toxin; 10-07-2014 at 16:27.
Neuro Toxin is offline
iEx5
Member
Join Date: Aug 2014
Location: Saint-Petersburg
Old 10-09-2014 , 10:49   Re: [ANY] Map Zones (with forwards)
Reply With Quote #127

Same problem,what Neuro posted,it's working some rounds,some rounds won't,
But i don't think that's problem in your plugin,because i tried to use franc1sco plugin before and this had that problem too.
Maybe it's CS:GO bug.
(sry my bad english xD)
iEx5 is offline
Send a message via Skype™ to iEx5
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 11-02-2014 , 19:39   Re: [ANY] Map Zones (with forwards)
Reply With Quote #128

I'm testing this with TF2 - I built a zone for example and then came in as the zone is set to not allow you to shot/melee hit etc. As an Engi I just walked in and yeah I can't shot but I drop a sentry and it shots everyone. Basically the engi needs to be blocked from the sentry being able to fire while in the zone.
Horsedick is offline
kochiurun119
BANNED
Join Date: Sep 2014
Location: GB
Old 11-18-2014 , 04:51   Re: [ANY] Map Zones (with forwards)
Reply With Quote #129

Can you edit plugin for left 4 dead 2 and left 4 dead?
kochiurun119 is offline
Send a message via ICQ to kochiurun119 Send a message via AIM to kochiurun119 Send a message via Yahoo to kochiurun119 Send a message via Skype™ to kochiurun119
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 11-18-2014 , 07:11   Re: [ANY] Map Zones (with forwards)
Reply With Quote #130

Horsedick if there are a condition to disallow deploying buildings, I can easily fix that. I dont know that much about tf2 so far.
kochiurun119 AFAIK it should work on all games. I dont have l4d installed, can you tell me what is not working/what would you like to see and etc. so I can update plugin.
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot
Root_ 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:44.


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