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

[L4D2] Lethal Weapon (Charge Shot)


Post New Thread Reply   
 
Thread Tools Display Modes
PepeZukas
Member
Join Date: Oct 2015
Location: Banana Republic
Old 06-25-2017 , 12:04   Re: [L4D2] Lethal Weapon (Charge Shot)
Reply With Quote #71

Is possible enable only for admin?

Last edited by PepeZukas; 06-29-2017 at 20:30.
PepeZukas is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 06-25-2017 , 12:29   Re: [L4D2] Lethal Weapon (Charge Shot)
Reply With Quote #72

Quote:
Originally Posted by PepeZukas View Post
Can i make this for admin use only?
yes sure you can
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux is offline
PepeZukas
Member
Join Date: Oct 2015
Location: Banana Republic
Old 06-25-2017 , 14:55   Re: [L4D2] Lethal Weapon (Charge Shot)
Reply With Quote #73

Quote:
Originally Posted by Lux View Post
yes sure you can
PepeZukas is offline
Sahrechiiz
Junior Member
Join Date: Jun 2016
Old 07-05-2017 , 15:54   Re: [L4D2] Lethal Weapon (Charge Shot)
Reply With Quote #74

Is it able to be like:
If there is a teamate in xx range by the shot, then it won't do damage or cause fire...
(sorry for my poor english)
Sahrechiiz is offline
phoenix0001
Senior Member
Join Date: Apr 2010
Location: China
Old 07-19-2017 , 01:11   Re: [L4D2] Lethal Weapon (Charge Shot)
Reply With Quote #75

Quote:
Originally Posted by PepeZukas View Post
Is possible enable only for admin?
Well, yes, let ADMFLAG_KICK be used.
__________________
I like this BBS sharing of spirit

I come from China, my English is poor
phoenix0001 is offline
FatalOE71
Member
Join Date: Jun 2018
Old 06-24-2018 , 14:17   Re: [L4D2] Lethal Weapon (Charge Shot)
Reply With Quote #76

OK, so I see a couple people asked if this can be made admin only. The answer was yes. So how do you make it admin only?
FatalOE71 is offline
Natan
BANNED
Join Date: Aug 2015
Location: Usa
Old 06-25-2018 , 21:49   Re: [L4D2] Lethal Weapon (Charge Shot)
Reply With Quote #77

Quote:
Originally Posted by FatalOE71 View Post
OK, so I see a couple people asked if this can be made admin only. The answer was yes. So how do you make it admin only?
Add This (Untested)

Code:
bool:IsAdmin(client)
{
	/* Checks valid player
	if (!IsValidPlayer (client))
		return false;
	*/
	// Gets the admin id
	new AdminId:id = GetUserAdmin(client);
	
	// If player is not admin ...
	if (id == INVALID_ADMIN_ID)
		return false;
	
	if (GetAdminFlag(id, Admin_Root)||GetAdminFlag(id, Admin_Kick))
		return true;
	else
	return false;
}
Code:
public Action:Fatal0E71(Handle:timer, any:client)
{
	PrintToChat(client,"\x05Lethal Weapon only available for admins");
}
Code:
	if (!IsValidEntity(client) || !IsClientInGame(client) || !IsAdmin(client))
	{
		CreateTimer(4.0, Fatal0E71, client);
		ClientTimer[client] = INVALID_HANDLE;
		return Plugin_Stop;
	}
Natan is offline
Send a message via ICQ to Natan Send a message via AIM to Natan Send a message via Yahoo to Natan Send a message via Skype™ to Natan
Natan
BANNED
Join Date: Aug 2015
Location: Usa
Old 05-19-2019 , 19:33   Re: [L4D2] Lethal Weapon (Charge Shot)
Reply With Quote #78

Following ztar and disawar changelog....

- Added shooter identifier (name & weapon) Natan (XI)
to punish the FF´s.
Attached Files
File Type: smx fix_l4d2_lethal_weapon.smx (16.9 KB, 182 views)
File Type: sp Get Plugin or Get Source (fix_l4d2_lethal_weapon.sp - 436 views - 21.8 KB)
Natan is offline
Send a message via ICQ to Natan Send a message via AIM to Natan Send a message via Yahoo to Natan Send a message via Skype™ to Natan
Apeboy21
Junior Member
Join Date: Feb 2019
Old 01-19-2020 , 01:01   Re: [L4D2] Lethal Weapon (Charge Shot)
Reply With Quote #79

i love this plugin but cant use it because its to easy to grief with. if friendly fire could be completely disabled it would be alot better in my opinion, great plugin nonetheless
Apeboy21 is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-20-2020 , 12:58   Re: [L4D2] Lethal Weapon (Charge Shot)
Reply With Quote #80

Fork v2.1.12 by Dragokas.

Quote:
2.1.12
- Added "l4d2_lw_firelifetime" convar to control how many time should flame exist after sniper shooting.

2.1.11
- Added "l4d2_lw_useammocount" convar to set the number of ammo player spend on each lethal shoot (999 - by default).

2.1.10
- Converted to a new syntax and methodmaps

2.1.9
- Added checking for game requirements (L4d1 / L4d2).
- Added natives Lethal_SetAllowedClient(), Lethal_SetAllowedClientsAll(), Lethal_FriendlyFire().
- Added "sm_satellite_friendlyfire" ConVar to control FriendlyFire of indirect damage (explosion and fire).
- Ammo / clip offsets are corrected for L4D1.
- Now lethal sniper shoot spend all ammo.
- Fixed exploit on infinite super sniper-shoots when your bullets are not reset if you do a fast switch on pistol just right after shoot.

2.1.8
- Added IsClientInGame() check to StopSound.

2.1.7
- Added count of proper statistics for sniper super-shoot (thanks to SilverShot)
- Replaced deprecated FindSendPropOffs() and FindDataMapOffs()

2.1.6
- Added IsValidClient() check to Smash function.

2.1.5
- Added some fixes from Ludastar.

2.1.4
- Added another one check
- Added Russian translation

2.1.3
- ReleaseLock[client] = 0 is moved to a bit earlier stage for Event_Infected_Hurt and Event_Player_Hurt to prevent recurse calling bug (server crash).

2.1.2
- Added some client checkings
- Fixed bug when molotov is displayed but no longer available for player after super-shoot done
L4D2 untested.
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_lethal.sp - 534 views - 29.9 KB)
File Type: inc lethal.inc (1.3 KB, 216 views)
File Type: txt Lethal_AR.phrases.txt (162 Bytes, 274 views)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 01-20-2020 at 12:59.
Dragokas 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 16:30.


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