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

[L4D / L4D2] VS Bug Fix (REQUEST)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
leaffan
Senior Member
Join Date: Jan 2013
Old 03-01-2021 , 06:02   [L4D / L4D2] VS Bug Fix (REQUEST)
Reply With Quote #1

First of all I apologize for my bad English. (Google Translate)

Hello friends,

I request a few regulations on the attached add-on;

1- After deleting these lines 'GOD' is deleted yes

Code:
public God(client, bool:value)
{

	if (!client || !IsClientInGame(client))
		return;
	
	if (value && IsPlayerAlive(client))
	{
		SetEntProp(client, Prop_Data, "m_takedamage", 2, 1);		
		PrintToChat(client, "\x04[OyunMod-Kontrolü] \x01%T", "GodOn", client);
	}
	else
	{
		SetEntProp(client, Prop_Data, "m_takedamage", 2, 1);
		PrintToChat(client, "\x04[OyunMod-Kontrolü] \x01%T", "GodOff", client);
	}
}
, but I want the ad to continue, how to passive the 'GOD' without deleting the lines below?

Code:
PrintToChat(client, "\x04[OyunMod-Kontrolü] \x01%T", "GodOn", client);
- - - Is there any way to disable GOD without deleting these lines? Immortality?

2- After 25 seconds, I want the boots to move even if there is no survivor team. Which sides should be fixed in the add-on?

Thanks.
Attached Files
File Type: sp Get Plugin or Get Source (l4d_sm_vsbugfix.sp - 74 views - 9.6 KB)
leaffan is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 03-01-2021 , 08:23   Re: [L4D / L4D2] VS Bug Fix (REQUEST)
Reply With Quote #2

Really bad translation, can't understand much.

Anyway, those god lines aren't doing GOD OFF or GOD ON, since they are using the same "m_takedamage" value.
Probably or both are ON or OFF.
Didn't get why do you want these lines if you wish to disable GOD (there is no point in printing "GOD" if there is no "god mode" enabled)

If you want to do something X seconds later, always use a timer. You can get some examples HERE.
__________________
Marttt is offline
leaffan
Senior Member
Join Date: Jan 2013
Old 03-01-2021 , 10:18   Re: [L4D / L4D2] VS Bug Fix (REQUEST)
Reply With Quote #3

Quote:
Originally Posted by Marttt View Post
Really bad translation, can't understand much.

Anyway, those god lines aren't doing GOD OFF or GOD ON, since they are using the same "m_takedamage" value.
Probably or both are ON or OFF.
Didn't get why do you want these lines if you wish to disable GOD (there is no point in printing "GOD" if there is no "god mode" enabled)

If you want to do something X seconds later, always use a timer. You can get some examples HERE.
I'm sorry for the translation, that's all.

That's why I want that ad to appear: 'It comes out right after the game starts: The game is ready!' an article like, I like this. That's why I want it out frankly.

2. What do you mean by timers? I want an edit from this plugin, I have no idea about coding. Couldn't it be said where the places to be arranged?

Thanks.
leaffan 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 22:31.


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