AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Jailbreak doors (https://forums.alliedmods.net/showthread.php?t=307016)

Zyten 04-23-2018 04:47

Jailbreak doors
 
I need plugin to open jailbreak doors automaticly after cretain amount of time

potatoz 04-23-2018 11:14

Re: Jailbreak doors
 
2 Attachment(s)
This should do the trick (keep in mind that it requires Smart Jail Doors to work)

May be configured through following cvar:
sjd_auto_open_time "20" - How long after round start to open cell doors automatically (if configured), in seconds

Zyten 04-23-2018 16:31

Re: Jailbreak doors
 
thx m8 can u add if there is no ct its open right away

Zyten 04-26-2018 07:15

Re: Jailbreak doors
 
seems like myjailbreak has that door thing i just didnt figure out i need to save doors to sjd. i need thou the one that open right away if there is no one on ct team

potatoz 04-30-2018 17:15

Re: Jailbreak doors
 
2 Attachment(s)
this should do it, untested though

Zyten 04-30-2018 17:56

Re: Jailbreak doors
 
thx man that plugin is best :D

u should share it on plugin section

Zyten 07-19-2018 18:02

Re: Jailbreak doors
 
Hi can you add 5 sec delay before check if there is no one at ct?

i have had problem that sometimes its opens cells even there is cts

mug1wara 07-20-2018 03:58

Re: Jailbreak doors
 
I would do like this, (haven't even tried to compile so don't blame me if anything is wrong lol)
PHP Code:

#include <sourcemod>
#include <smartjaildoors>

#pragma semicolon 1

ConVar g_cvTimer;

bool g_bCheck;

public 
void OnPluginStart()
{
    
HookEvent("round_start"Event_Start);
    
    
g_cvTimer CreateConVar("sm_cvar_name""20");
}

public 
Action Event_Start(Event hEvent, const char[] sNamebool bDontBroadcast)
{
    if (
g_bCheck)
    {
        if (
GetTeamClientCount(3) != 0)
        {
            
CreateTimer(g_cvTimer.IntValue 1.0Timer_Doors);
        }
        
        
g_bCheck false;
    }
}

public 
Action Timer_Doors(Handle hTimer)
{
    
SJD_OpenDoors();
    
    
g_bCheck true;
    
    return 
Plugin_Continue;



ThatKidWhoGames 07-21-2018 16:15

Re: Jailbreak doors
 
Quote:

Originally Posted by mug1wara (Post 2605008)
I would do like this, (haven't even tried to compile so don't blame me if anything is wrong lol)
PHP Code:

ConVar g_cvTimer CreateTimer("sm_cvar_name""20.0"""); 


g_cvTimer should be a global handle. Also, you should be setting it equal to CreateConVar.

mug1wara 07-21-2018 18:11

Re: Jailbreak doors
 
Yeah, edited code. Better now.


All times are GMT -4. The time now is 12:43.

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