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

[ANY] Map Zones (with forwards)


Post New Thread Reply   
 
Thread Tools Display Modes
lordoflort
Member
Join Date: Dec 2010
Old 02-08-2014 , 16:05   Re: [ANY] Map Zones (with forwards)
Reply With Quote #61

I changed name to the zone I have, and it said "You have entered zone"
With default color

#edit

and I cannot shoot + it doesn't go away when I leave the zone
__________________

Last edited by lordoflort; 02-08-2014 at 16:08.
lordoflort is offline
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 02-08-2014 , 17:03   Re: [ANY] Map Zones (with forwards)
Reply With Quote #62

lordoflort, Alright, I'll try to fix that as soon as possible.
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot
Root_ is offline
lordoflort
Member
Join Date: Dec 2010
Old 02-08-2014 , 17:06   Re: [ANY] Map Zones (with forwards)
Reply With Quote #63

Much appreciated, thanks
__________________
lordoflort is offline
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 02-08-2014 , 19:26   Re: [ANY] Map Zones (with forwards)
Reply With Quote #64

Seems like I can't push >1 strings in a global forward... I will fix this tomorrow.
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot
Root_ is offline
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 02-09-2014 , 03:52   Re: [ANY] Map Zones (with forwards)
Reply With Quote #65

So I've fixed a bug with forwards. Now it passes zones index as well as player index, so you can do whatever you want with custom zone now (AcceptIntputs, set or retrive properites and etc.)

lordoflort I've tested this plugin and it worked fine for me. Can you also test and confirm that?
Spoiler
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot
Root_ is offline
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 02-09-2014 , 04:03   Re: [ANY] Map Zones (with forwards)
Reply With Quote #66

omg nice!! always needed something like this for amx ^^
__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]
striker07 is offline
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 02-09-2014 , 04:16   Re: [ANY] Map Zones (with forwards)
Reply With Quote #67

Quote:
Originally Posted by striker07 View Post
omg nice!! always needed something like this for amx ^^
You are welcome
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot
Root_ is offline
captaindeterprimary
AlliedModders Donor
Join Date: Sep 2012
Old 02-10-2014 , 14:47   Re: [ANY] Map Zones (with forwards)
Reply With Quote #68

I have tried specifying a new case for God mode, as I am not really sure how to specify the difference between the custom calls. I plan on making a plugin to change player gravity while in the skybox, one to remove sentry targeting, and one to teleport back to spawn.

However I have the issue shown in the bellow video.

Fork

__________________
Last edited by ; Today at 08:20 AM. Reason: Get rid of s

Last edited by captaindeterprimary; 02-10-2014 at 14:50.
captaindeterprimary is offline
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 02-10-2014 , 15:56   Re: [ANY] Map Zones (with forwards)
Reply With Quote #69

Why not just create a zone called 'god', set it as custom punishment and edit testsample plugin like that?
Code:
public Plugin:myinfo = {     name        = "SM God Zone",     author      = "Root, vman315",     description = "Makes players invulinable within specified zone",     version     = "1.0",     url         = "http://www.dodsplugins.com/" } public Action:OnEnteredProtectedZone(zone, client, const String:prefix[]) {     static Handle:ShowZones   = INVALID_HANDLE;     if (!ShowZones) ShowZones = FindConVar("sm_zones_show_messages");     if (1 <= client <= MaxClients)     {         decl String:m_iName[MAX_NAME_LENGTH*2];         GetEntPropString(zone, Prop_Data, "m_iName", m_iName, sizeof(m_iName));         // Skip the first 8 characters of zone name to avoid comparing the "sm_zone " prefix.         if (StrEqual(m_iName[8], "god", false))         {             ServerCommand("sm_god #%i 1", GetClientUserId(client))             if (GetConVarBool(ShowZones))             {                 PrintToChat(client, "%sYou have entered \"%s\" zone.", prefix, m_iName[8]);             }         }     } } public Action:OnLeftProtectedZone(zone, client, const String:prefix[]) {     static Handle:ShowZones   = INVALID_HANDLE;     if (!ShowZones) ShowZones = FindConVar("sm_zones_show_messages");     if (1 <= client <= MaxClients)     {         decl String:m_iName[MAX_NAME_LENGTH*2];         GetEntPropString(zone, Prop_Data, "m_iName", m_iName, sizeof(m_iName));         // I compare with 'god' zone         if (StrEqual(m_iName[8], "god", false))         {             ServerCommand("sm_god #%i 1", GetClientUserId(client))             // It's also called whenever player dies within a zone, so dont show a message if player died there             if (GetConVarBool(ShowZones) && IsPlayerAlive(client))             {                 PrintToChat(client, "%sYou have left \"%s\" zone.", prefix, m_iName[8]);             }         }     } }
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot
Root_ is offline
captaindeterprimary
AlliedModders Donor
Join Date: Sep 2012
Old 02-10-2014 , 16:18   Re: [ANY] Map Zones (with forwards)
Reply With Quote #70

Can I make 6 zones and call them all God?
__________________
Last edited by ; Today at 08:20 AM. Reason: Get rid of s
captaindeterprimary 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 15:58.


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