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

[CS:GO] MyJailbreak - warden, days, menu & more (Beta 14 - 13/08/18)


Post New Thread Reply   
 
Thread Tools Display Modes
Usernamehere
Member
Join Date: Feb 2016
Old 02-05-2017 , 22:20   Re: [CS:GO] MyJailbreak (warden, days, menu & more) [Beta 9.1 / 11-12-16]
Reply With Quote #381

Quote:
Originally Posted by 8guawong View Post
Code:
Can't open File: addons/sourcemod/configs/MyJailbreak/orders.cfg
just read the error message and you'll know whats the problem
It just doesn't work file path is right, cfg is there and it has permissions? 755. No other error, just what I pasted here.


csgo is just a broken game that requires too much care/maintenance, from what I've seen. Every plugin I use breaks. Every time there's a new sm version everything breaks it's too funny. Worst game to have servers in.
Usernamehere is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 02-05-2017 , 22:37   Re: [CS:GO] MyJailbreak (warden, days, menu & more) [Beta 9.1 / 11-12-16]
Reply With Quote #382

Quote:
Originally Posted by fraise View Post
me again, here we are, a new idea suggest by my server. For the Zombie event, put a regen for zombie. [...]
nice idea, I to put regen combined with "vampire" (get hp for kills/damage idk) to the todo issue list.

Quote:
Originally Posted by fraise View Post
annnd last edit, because i'm stupid.. i fix all of that : http://pastebin.com/2Wx6SSy2
so, here that's work. If you want to add this function to your zombie event, add this block :
[CODE]
The CreateTimer is in OnPluginStart, enjoy <3
There are some things to improve/fix in your code:
  • You shouldn't create the timer OnPluginStart. this timer will run throughout all rounds even if it's not zombie round. Create a Handle and create the timer on Event_RoundStart and close and remove the timer on Event_RoundEnd or OnAvailableLR. As an example see Handle FreezeTimer
  • You should remove the "StartZombie || "-bool from your if statement, cause this returns true as of the zombie round is set for next round.
  • You dont need the "int client"-paramenter in GiveHealth timer callback.
  • use CS_TEAM_CT instead of a 3 with GetClientTeam for better readability
  • you can shorten this part:
PHP Code:
int oldHP GetClientHealth(i);
int newHP oldHP + (10);
SetEntityHealth(inewHP); 
to this:
PHP Code:
SetEntityHealth(iGetClientHealth(i)+10); 
Quote:
Originally Posted by Usernamehere View Post
I am using warden, lastguard and ratio. warden and lastguard cfg shows they are enabled, but warden doesn't work [...]. The only errors are for warden.
[CODE]
Quote:
Originally Posted by 8guawong View Post
Code:
Can't open File: addons/sourcemod/configs/MyJailbreak/orders.cfg
just read the error message and you'll know whats the problem
This ;-)

Quote:
Originally Posted by Usernamehere View Post
and lastguard prints to chat that it's disabled
check "sm_lastguard_auto" & "sm_lastguard_minct"
__________________
coding & free software

Last edited by shanapu; 02-05-2017 at 22:43. Reason: edit:
shanapu is offline
fraise
Member
Join Date: Sep 2016
Location: Paris, France
Old 02-06-2017 , 09:39   Re: [CS:GO] MyJailbreak (warden, days, menu & more) [Beta 9.1 / 11-12-16]
Reply With Quote #383

Thanks ! In fact, i learn sourcepawn thanks to yours plugins

I've, if you are okay with it, antoher idea for the plugin. Is it possible to know Who, and in which team, open the jail (with the command, or just with the button) thanks to SJD, or not ? :s
fraise is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 02-06-2017 , 10:17   Re: [CS:GO] MyJailbreak (warden, days, menu & more) [Beta 9.1 / 11-12-16]
Reply With Quote #384

Quote:
Originally Posted by fraise View Post
... Is it possible to know Who, and in which team, open the jail (with the command, or just with the button) thanks to SJD, or not ? :s
When you use the !open command of warden, is clear who used it.
To see the name of the player who pushed the button, papero requested the
SJD_ButtonPressed forward from kailo. just take a look to last page of the sjd thread
__________________
coding & free software
shanapu is offline
fraise
Member
Join Date: Sep 2016
Location: Paris, France
Old 02-06-2017 , 10:23   Re: [CS:GO] MyJailbreak (warden, days, menu & more) [Beta 9.1 / 11-12-16]
Reply With Quote #385

That's what i tried, but i can't put SJD_Opendoors() in condition. That said to me "empty statement"

my code : http://pastebin.com/W9CsBpBa
fraise is offline
fraise
Member
Join Date: Sep 2016
Location: Paris, France
Old 02-06-2017 , 11:28   Re: [CS:GO] MyJailbreak (warden, days, menu & more) [Beta 9.1 / 11-12-16]
Reply With Quote #386

sooo there is a problem with this, when we play a zombie day, next will not have any regen :s
fraise is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 02-06-2017 , 15:37   Re: [CS:GO] MyJailbreak (warden, days, menu & more) [Beta 9.1 / 11-12-16]
Reply With Quote #387

Quote:
Originally Posted by fraise View Post
That's what i tried, but i can't put SJD_Opendoors() in condition. That said to me "empty statement"
my code : http://pastebin.com/W9CsBpBa
Just use this, should do the job (untested):
PHP Code:
#include <sourcemod>
 
public Plugin myinfo = {
    
name "Button Spotted",
    
author "Pookie",
    
description "Indique le joueur qui a ouvert les jails",
    
version "1.0",
    
url "http://www.involved-gaming.com/forum/index.php"
};

public 
void SJD_ButtonPressed(int client)
{
    
PrintToChatAll("Team number: %i - Nickname: %N"GetClientTeam(client), client);

Quote:
Originally Posted by fraise View Post
sooo there is a problem with this, when we play a zombie day, next will not have any regen :s
Show us your current code.
__________________
coding & free software
shanapu is offline
fraise
Member
Join Date: Sep 2016
Location: Paris, France
Old 02-06-2017 , 17:14   Re: [CS:GO] MyJailbreak (warden, days, menu & more) [Beta 9.1 / 11-12-16]
Reply With Quote #388

zombie regen : http://pastebin.com/7Z4hfrPN
__________________
\o/
fraise is offline
fraise
Member
Join Date: Sep 2016
Location: Paris, France
Old 02-06-2017 , 17:23   Re: [CS:GO] MyJailbreak (warden, days, menu & more) [Beta 9.1 / 11-12-16]
Reply With Quote #389

tested... didn't work :/ no message are print (i've tried every button to check, no one does anything), but thanks to trying =)
__________________
\o/
fraise is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 02-08-2017 , 10:56   Re: [CS:GO] MyJailbreak (warden, days, menu & more) [Beta 9.1 / 11-12-16]
Reply With Quote #390

Quote:
Originally Posted by fraise View Post
sooo there is a problem with this, when we play a zombie day, next will not have any regen :s [...] http://pastebin.com/7Z4hfrPN
Fast look through you edits, seems good. what is the problem? First ZombieDay the ReGen works and a second ZombieDay don't work?

Quote:
Originally Posted by shanapu View Post
Just use this, should do the job (untested):
PHP Code:
public void SJD_ButtonPressed(int client)
{
    
PrintToChatAll("Team number: %i - Nickname: %N"GetClientTeam(client), client);

Quote:
Originally Posted by fraise View Post
tested... didn't work :/ no message are print (i've tried every button to check, no one does anything), but thanks to trying =)
This works fine for me. Remember this will only show the smart jail doors button not the map buttons. For map buttons you need an other plugin ThatOneGuy & franug made one(use search).
__________________
coding & free software

Last edited by shanapu; 02-08-2017 at 10:57. Reason: typo
shanapu 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 10:21.


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