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 , 15:23   Re: [ANY] Map Zones (with forwards)
Reply With Quote #51

Code:
/groups/sourcemod/upload_tmp/text4LV7nR.sp(11) : warning 217: loose indentation /groups/sourcemod/upload_tmp/text4LV7nR.sp(11) : error 017: undefined symbol "SDKHook" /groups/sourcemod/upload_tmp/text4LV7nR.sp(27) : warning 217: loose indentation /groups/sourcemod/upload_tmp/text4LV7nR.sp(27) : error 017: undefined symbol "SDKUnhook"

When I try to compile
__________________
lordoflort is offline
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 02-08-2014 , 15:26   Re: [ANY] Map Zones (with forwards)
Reply With Quote #52

Whoops I forgot to include sdkhooks.
Code:
#include <sdkhooks> public Action:OnEnteredProtectedZone(client, const String:name[], const String:prefix[]) {     static Handle:ShowZones   = INVALID_HANDLE;     if (!ShowZones) ShowZones = FindConVar("sm_zones_show_messages");     if (1 <= client <= MaxClients)     {         if (StrEqual(name, "myzone", false) && GetConVarBool(ShowZones))         {             PrintToChat(client, "%sYou have entered \"%s\" zone.", prefix, name);             SDKHook(client, SDKHook_PreThink, OnPreThink);         }     } } public Action:OnLeftProtectedZone(client, const String:name[], const String:prefix[]) {     static Handle:ShowZones   = INVALID_HANDLE;     if (!ShowZones) ShowZones = FindConVar("sm_zones_show_messages");     if (1 <= client <= MaxClients)     {         // It's also called whenever player dies within a zone, so dont show a message if player died there         if (StrEqual(name, "myzone", false) && GetConVarBool(ShowZones) && IsPlayerAlive(client))         {             PrintToChat(client, "%sYou have left \"%s\" zone.", prefix, name);             SDKUnhook(client, SDKHook_PreThink, OnPreThink);         }     } } public OnPreThink(client) {     SetEntPropFloat(client, Prop_Send, "m_flNextAttack", GetGameTime() + 0.5); }
__________________


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 , 15:29   Re: [ANY] Map Zones (with forwards)
Reply With Quote #53

Code:
/groups/sourcemod/upload_tmp/texttF4qz5.sp(12) : warning 217: loose indentation /groups/sourcemod/upload_tmp/texttF4qz5.sp(28) : warning 217: loose indentation
__________________
lordoflort is offline
lordoflort
Member
Join Date: Dec 2010
Old 02-08-2014 , 15:34   Re: [ANY] Map Zones (with forwards)
Reply With Quote #54

nvm it compiled, but nothing happens
__________________
lordoflort is offline
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 02-08-2014 , 15:36   Re: [ANY] Map Zones (with forwards)
Reply With Quote #55

Neither message nor punishment?
__________________


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 , 15:37   Re: [ANY] Map Zones (with forwards)
Reply With Quote #56

Nope
__________________
lordoflort is offline
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 02-08-2014 , 15:41   Re: [ANY] Map Zones (with forwards)
Reply With Quote #57

Weird. Try this one and report if it works (also check error logs).
Attached Files
File Type: sp Get Plugin or Get Source (noshoot.sp - 143 views - 1.2 KB)
__________________


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 , 15:43   Re: [ANY] Map Zones (with forwards)
Reply With Quote #58

still with custom punishment?
__________________
lordoflort is offline
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 02-08-2014 , 15:53   Re: [ANY] Map Zones (with forwards)
Reply With Quote #59

Can you try those two plugins?
Attached Files
File Type: sp Get Plugin or Get Source (sm_zones.sp - 129 views - 75.1 KB)
File Type: sp Get Plugin or Get Source (noshoot.sp - 146 views - 1.1 KB)
__________________


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 , 15:58   Re: [ANY] Map Zones (with forwards)
Reply With Quote #60

I suppose I need to change the zonename in noshoot to the name I want?
__________________
lordoflort 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 23:37.


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