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

[Plugin Request] Alive Dead


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
QuickDroLLL
Senior Member
Join Date: Dec 2021
Location: AMX Mod X Land
Old 04-26-2023 , 11:32   [Plugin Request] Alive Dead
Reply With Quote #1

Hello everyone so basicly iam loking for plugin that when someone died when he type /ghost he will return from death and he can look around the map and moving like alive players but he cant prees buttons or holding weapons and he can only attack the other alive dead players and alive players can see them or touch them and when one tr stil alive they will all return to death

Last edited by QuickDroLLL; 04-26-2023 at 11:33.
QuickDroLLL is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 04-26-2023 , 12:45   Re: [Plugin Request] Alive Dead
Reply With Quote #2

That will take too much time mate. Maybe you can find a kind soul to do it or you can try yourself.
If you want to try yourself i can give you all the steps.
- Create a bool for g_IsGhost[33]
- On command set the bool true g_IsGhost[id] = true
- Respawn the player
- Check if player has the bool true on Ham_Spawn
- Strip his weapons
- set no footsteps
- block him from picking up weapons from ground if has the bool
- everytime someone dies check how many Ts are alive without the bool and if only 1 kill all the players with the bool

Edit:
You will also need to make a semiclip for players that have the bool
__________________

Last edited by Jhob94; 04-26-2023 at 12:52.
Jhob94 is offline
QuickDroLLL
Senior Member
Join Date: Dec 2021
Location: AMX Mod X Land
Old 04-26-2023 , 16:18   Re: [Plugin Request] Alive Dead
Reply With Quote #3

Quote:
Originally Posted by Jhob94 View Post
That will take too much time mate. Maybe you can find a kind soul to do it or you can try yourself.
If you want to try yourself i can give you all the steps.
- Create a bool for g_IsGhost[33]
- On command set the bool true g_IsGhost[id] = true
- Respawn the player
- Check if player has the bool true on Ham_Spawn
- Strip his weapons
- set no footsteps
- block him from picking up weapons from ground if has the bool
- everytime someone dies check how many Ts are alive without the bool and if only 1 kill all the players with the bool

Edit:
You will also need to make a semiclip for players that have the bool
thank you very much for your advices <3
QuickDroLLL is offline
QuickDroLLL
Senior Member
Join Date: Dec 2021
Location: AMX Mod X Land
Old 04-28-2023 , 09:32   Re: [Plugin Request] Alive Dead
Reply With Quote #4

Quote:
Originally Posted by Jhob94 View Post
That will take too much time mate. Maybe you can find a kind soul to do it or you can try yourself.
If you want to try yourself i can give you all the steps.
- Create a bool for g_IsGhost[33]
- On command set the bool true g_IsGhost[id] = true
- Respawn the player
- Check if player has the bool true on Ham_Spawn
- Strip his weapons
- set no footsteps
- block him from picking up weapons from ground if has the bool
- everytime someone dies check how many Ts are alive without the bool and if only 1 kill all the players with the bool

Edit:
You will also need to make a semiclip for players that have the bool
the hardest part is make the players with bool can attack only other players with bool and players with bool can see other players with bool but players without the bool cant see players with bool hope you understand me
QuickDroLLL is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 04-28-2023 , 09:35   Re: [Plugin Request] Alive Dead
Reply With Quote #5

You want them to kill each other?
__________________
Jhob94 is offline
QuickDroLLL
Senior Member
Join Date: Dec 2021
Location: AMX Mod X Land
Old 04-28-2023 , 10:41   Re: [Plugin Request] Alive Dead
Reply With Quote #6

Quote:
Originally Posted by Jhob94 View Post
You want them to kill each other?
yeah and when they kill each other the one who died will go to death again and cant type /ghost again
until next round

Last edited by QuickDroLLL; 04-28-2023 at 11:31.
QuickDroLLL is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 04-28-2023 , 12:21   Re: [Plugin Request] Alive Dead
Reply With Quote #7

You will need to hook addtofullpack
__________________
Jhob94 is offline
QuickDroLLL
Senior Member
Join Date: Dec 2021
Location: AMX Mod X Land
Old 04-28-2023 , 12:35   Re: [Plugin Request] Alive Dead
Reply With Quote #8

Quote:
Originally Posted by Jhob94 View Post
You will need to hook addtofullpack
Can you give me example ?
QuickDroLLL is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 04-28-2023 , 13:09   Re: [Plugin Request] Alive Dead
Reply With Quote #9

On plugin_init
Code:
register_forward(FM_AddToFullPack, "Fw__AddToFullPack", 1)
Hooking
Code:
public Fw__AddToFullPack(es, e, iEntity, iHost, iHostFlags, iPlayer, pSet)
{
	if(iPlayer && get_orig_retval() && is_user_alive(iEntity) && g_bHasGhost[iEntity] && !g_bHasGhost[iHost])
	{
		set_es(es, ES_RenderMode, kRenderTransAdd)
		set_es(es, ES_RenderAmt, 0.0)
	}
}
__________________
Jhob94 is offline
QuickDroLLL
Senior Member
Join Date: Dec 2021
Location: AMX Mod X Land
Old 04-28-2023 , 14:55   Re: [Plugin Request] Alive Dead
Reply With Quote #10

Quote:
Originally Posted by Jhob94 View Post
On plugin_init
Code:
register_forward(FM_AddToFullPack, "Fw__AddToFullPack", 1)
Hooking
Code:
public Fw__AddToFullPack(es, e, iEntity, iHost, iHostFlags, iPlayer, pSet)
{
	if(iPlayer && get_orig_retval() && is_user_alive(iEntity) && g_bHasGhost[iEntity] && !g_bHasGhost[iHost])
	{
		set_es(es, ES_RenderMode, kRenderTransAdd)
		set_es(es, ES_RenderAmt, 0.0)
	}
}
oh ok thanks so this code maks the only ghosts fights each other?

Last edited by QuickDroLLL; 04-28-2023 at 14:56.
QuickDroLLL 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 07:53.


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