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

[Any] Dev Zones (Zones Manager with natives for developers) [Updated 30-Mar-2021]


Post New Thread Reply   
 
Thread Tools Display Modes
hmmmmm
Great Tester of Whatever
Join Date: Mar 2017
Location: ...
Old 10-30-2017 , 05:04   Re: [Any] Dev Zones (with natives for developers)
Reply With Quote #121

Here's a simple one that modifies gravity on entry/exit. Only sets it once though, so if the zone is place anywhere on the map that modifies gravity there might be some issues.

As a side note, you should make the zone name strings in the forwards (and maybe natives) const so they're not modifiable.
Attached Files
File Type: sp Get Plugin or Get Source (DevZones_Gravity.sp - 147 views - 1.2 KB)
File Type: smx DevZones_Gravity.smx (4.7 KB, 113 views)
hmmmmm is offline
Domas00
Junior Member
Join Date: Feb 2016
Old 11-05-2017 , 10:51   Re: [Any] Dev Zones (with natives for developers)
Reply With Quote #122

why it doesn't create zones.txt file on workshop maps?

edit: nevermind

Last edited by Domas00; 11-07-2017 at 14:11. Reason: nevermind
Domas00 is offline
StealtHack
Member
Join Date: Jun 2013
Location: The Netherlands
Old 11-06-2017 , 08:26   Re: [Any] Dev Zones (with natives for developers)
Reply With Quote #123

Devzones_jail is really buggy. Sometimes it lets me kill in the jail, but most of the time is straights up blocks me from killing. Really weird. Not sure if it's the lack of checks. Same goes for devzones_nodamage.
StealtHack is offline
Nanochip
Senior Member
Join Date: Jan 2014
Old 11-24-2017 , 20:58   Re: [Any] Dev Zones (with natives for developers)
Reply With Quote #124

you should make it so that Zone_OnClientLeave fires when players die or disconnect from server.
__________________
Nanochip is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 12-07-2017 , 18:00   Re: [Any] Dev Zones (with natives for developers)
Reply With Quote #125

New version 2.2.4

-Fixed a possible crash in the latest csgo update.
-Fixed the description about the filter cvar.
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
rogeraabbccdd
Veteran Member
Join Date: Jun 2015
Location: de_dust2
Old 12-10-2017 , 22:30   Re: [Any] Dev Zones (with natives for developers)
Reply With Quote #126

I'm currently working on new CSGO gamemode with this, will we have new syntax update in the future?
If no, maybe I can try to do it myself and send a pr on github.
__________________

Please keep in mind, nobody have responsibility to help you, especially who don't try to Google first.
I only read messages in Chinese and English.

GitHub | Discord:Kento#2118
rogeraabbccdd is offline
PinHeaDi
Senior Member
Join Date: Jul 2013
Location: Bulgaria
Old 12-12-2017 , 06:14   Re: [Any] Dev Zones (with natives for developers)
Reply With Quote #127

Is there a way to make a zone and when you pass thought it - a knife would be given to you.

P.S: Never mind

PHP Code:
#pragma semicolon 1
#include <sourcemod>
#include <devzones>
#include <sdktools>

public int Zone_OnClientEntry(int clientchar[] zone)
{
    if(!
IsValidClient(client))
        return;

    if(
StrContains(zone"knife"false) != 0){    if(StrContains(zone"knife"false) != 0){GivePlayerItem(client"weapon_knife");}
}
public 
bool IsValidClient(int client)
{
    if (!(
<= client <= MaxClients) || !IsClientInGame(client) || !IsPlayerAlive(client))
        return 
false;

    return 
true;

However, the teleport plugin provided by you doesnt work.
__________________

Last edited by PinHeaDi; 12-12-2017 at 09:54.
PinHeaDi is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 12-26-2017 , 10:00   Re: [Any] Dev Zones (with natives for developers)
Reply With Quote #128

Quote:
Originally Posted by rogeraabbccdd View Post
I'm currently working on new CSGO gamemode with this, will we have new syntax update in the future?
If no, maybe I can try to do it myself and send a pr on github.
You (and everybody) are welcome to send pr on github to all my public plugins
Also can you tell me more details about your new csgo gamemode? here or on steam.

Quote:
Originally Posted by PinHeaDi View Post
However, the teleport plugin provided by you doesnt work.
It works, tested.
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 12-26-2017 at 10:01.
Franc1sco is offline
Send a message via MSN to Franc1sco
rogeraabbccdd
Veteran Member
Join Date: Jun 2015
Location: de_dust2
Old 12-26-2017 , 17:49   Re: [Any] Dev Zones (with natives for developers)
Reply With Quote #129

Quote:
Originally Posted by Franc1sco View Post
You (and everybody) are welcome to send pr on github to all my public plugins
Also can you tell me more details about your new csgo gamemode? here or on steam.
VIP gamemode. I know there's a plugin in this forum, but I want to create one that work with my rankme vip stats.
__________________

Please keep in mind, nobody have responsibility to help you, especially who don't try to Google first.
I only read messages in Chinese and English.

GitHub | Discord:Kento#2118
rogeraabbccdd is offline
plock
Senior Member
Join Date: Feb 2016
Location: noitacoL
Old 02-01-2018 , 15:13   Re: [Any] Dev Zones (with natives for developers)
Reply With Quote #130

Native Zone_IsClientInZone not working. I tried to verify:

if (Zone_IsClientInZone(client, "AntiCampAll", false, false))

but I changed the name of the thirdparty to AntiCampAll and didn't use a team anticamp, just a general and it was working, but if a client is inside a zone and he teleports away from it, it doesn't detect that he left it, then I wanted to verify, before slaying, if he is inside the same zone.
__________________
~tuturu

Owner/Developer at Kniv
My Steam Profile
plock is offline
Reply


Thread Tools
Display Modes

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 11:23.


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