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

[CSGO] Jailbreak Open cell got something problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
acrenactive
New Member
Join Date: Apr 2017
Old 04-22-2017 , 02:16   [CSGO] Jailbreak Open cell got something problem
Reply With Quote #1

Hey!

The fact is that I have a problem with opening the jail doors. The script works but it is just that it not only opening up the doors. It opens the secrets and all the other doors. It should only open cell doors. But I do not want to use the smartjaildoors plugin. Want this script to work in any way, is there any here who are willing to help me ?

PHP Code:
#include <sourcemod>
#include <sdktools>

#pragma semicolon 1

new iEnt;
new const 
String:EntityList[][] = { "func_door""func_movinglinear" };


public 
OnPluginStart()
{
    
RegConsoleCmd("sm_opengaming"OnOpenCommand);
    
RegConsoleCmd("sm_close"OnCloseCommand);
}

public 
Action:OnOpenCommand(clientargs)
{
    for(new 
0sizeof(EntityList); i++)
        while((
iEnt FindEntityByClassname(iEntEntityList[i])) != -1)
            
AcceptEntityInput(iEnt"Open");

    return 
Plugin_Handled;
}

public 
Action:OnCloseCommand(clientargs)
{
    for(new 
0sizeof(EntityList); i++)
        while((
iEnt FindEntityByClassname(iEntEntityList[i])) != -1)
            
AcceptEntityInput(iEnt"Close");

    return 
Plugin_Handled;

acrenactive is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 04-22-2017 , 03:23   Re: [CSGO] Jailbreak Open cell got something problem
Reply With Quote #2

b/c the secret doors are called func_door , etc. as well
8guawong is offline
acrenactive
New Member
Join Date: Apr 2017
Old 04-22-2017 , 03:41   Re: [CSGO] Jailbreak Open cell got something problem
Reply With Quote #3

I would like to be able to do so to write the names on the doors and not their "func_door"

Check out the image, want to do something like this make it is possible to write "zelle_ISO_door"
acrenactive is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 04-22-2017 , 06:20   Re: [CSGO] Jailbreak Open cell got something problem
Reply With Quote #4

Why you don't wanna use smartjaildoors? What's the reason? SJD is perfect for this.
__________________
coding & free software
shanapu is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 04-22-2017 , 06:44   Re: [CSGO] Jailbreak Open cell got something problem
Reply With Quote #5

add
Code:
decl String:strName[50];
GetEntPropString(index, Prop_Data, "m_iName", strName, sizeof(strName));
8guawong 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 01:12.


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