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

Request plugin FIRST BLOOD


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
endlessx
Junior Member
Join Date: Sep 2023
Old 09-28-2023 , 12:47   Request plugin FIRST BLOOD
Reply With Quote #1

I would like a plugin, so that when a player makes the first kill, a sound will be heard (if you somehow have a list of nice sounds, not necessarily FIRST KILL) and a message will appear:

Jucatorul name(with green) a facut primul KILL , speram sa supravietuiasca pana la final.

I mention that I used a similar plugin but deleted it. Someone ignorant offered it to me. But it appeared to every player that he made the first kill and the chat was filled with messages as I wrote above.
Only the first kill on the entire map regardless of the teams.
endlessx is offline
Mo3taz
Member
Join Date: Apr 2022
Location: Algeria
Old 09-28-2023 , 18:02   Re: Request plugin FIRST BLOOD
Reply With Quote #3

you can use statsx for the first blood sound
or use this code:
Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "first blood"
#define VERSION "1.0"
#define AUTHOR "bugg3r"

new g_iFirstBlood_Enable, bool:g_bFirstBlood = false//every map change

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	g_iFirstBlood_Enable = register_cvar("fb_enabled", "1")
 
	register_event("DeathMsg", "death_player", "a", "1>0")
}

public plugin_precache()
	precache_sound("misc/firstblood2_ultimate")

public death_player()
{
	new killer = read_data(1)
	new victim = read_data(2)
	
	if(get_pcvar_num(g_iFirstBlood_Enable) && killer != victim && !g_bFirstBlood)
	{
		g_bFirstBlood = true
		client_cmd(0,"spk misc/firstblood2_ultimate")
	}
}
__________________
Save Money (nvault)
DISCORD: Mo3taz#8978
Mz
Mo3taz is offline
Send a message via Yahoo to Mo3taz
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 09:51.


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