This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Revive in Death place plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bloodypro05
Junior Member
Join Date: Jul 2020
Location: Palestine
Old 12-13-2020 , 07:59   Revive in Death place plugin
Reply With Quote #1

Hey,
Is there any plugin for jb mod for admins only to revive dead players in the same place of death ? (i already searched and i didnt find), if not , can anyone help me finding one or creating one ?
bloodypro05 is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 12-13-2020 , 08:28   Re: Revive in Death place plugin
Reply With Quote #2

Revive a player in a certain radius
__________________
DJEarthQuake is offline
bloodypro05
Junior Member
Join Date: Jul 2020
Location: Palestine
Old 12-13-2020 , 08:42   Re: Revive in Death place plugin
Reply With Quote #3

Quote:
Originally Posted by DJEarthQuake View Post
i saw that plugin already , but i want its like , a menu that shows only dead player and i select the name to revive that player , its like the normal revive plugins , but it doesnt revive him all the way to the normal spawn , it revives him in the same place he died in
bloodypro05 is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 12-13-2020 , 08:57   Re: Revive in Death place plugin
Reply With Quote #4

PHP Code:
/*Give slain jailbreak prisoners a break if admin shot them by mistake*/

#include amxmodx
#include amxmisc
#include fun
#include hamsandwich

#define MAX_PLAYERS 32

new szVictimName[MAX_PLAYERS], szKillerName[MAX_PLAYERS];
new 
g_Origin[3], g_victimthe_menug_revive_timeout;

public 
plugin_init()
{
    
register_plugin("Admin Revive Menu","0.1","SPiNX");
    
g_revive_timeout register_cvar("revive_menu_time" "0");
    
RegisterHam(Ham_Killed"player""client_death");
}

public 
client_death(killervictim)
{
    if(!
get_pcvar_num(g_revive_timeout) || is_user_bot(killer) || !is_user_alive(killer) || !is_user_admin(killer) )
        return 
PLUGIN_HANDLED_MAIN;

    
get_user_originvictimg_Origin);
    
get_user_namevictimszVictimNamecharsmax(szVictimName) );
    
get_user_namekillerszKillerNamecharsmax(szKillerName) );

    if(
is_user_admin(killer) && get_pcvar_num(g_revive_timeout) > 5)
        
client_printkillerprint_console,"%s killed %s at [x:%i | y:%i | z:%i]"szKillerNameszVictimNameg_Origin[0],g_Origin[1],g_Origin[2]);

    new 
format[64];

    
the_menu menu_create("Revival menu""revive_menu");

    
formatex(formatcharsmax(format), "\rLeave %s dead."szVictimName)
    
menu_additem(the_menuformat"1"0);

    
formatex(formatcharsmax(format), "\yAttempt revival of %s."szVictimName)
    
menu_additem(the_menuformat"2"0);

    
menu_setprop(the_menuMPROP_EXITMEXIT_ALL);

    if(
is_user_alive(killer) && !is_user_alive(victim))
    {
        
g_victim victim;

    
#if AMXX_VERSION_NUM == 182

        
menu_display(killerthe_menu0)
        && 
set_task(get_pcvar_num(g_revive_timeout)*1.0"kill_menu"killer)

    
#else

        
menu_display(killerthe_menu0get_pcvar_num(g_revive_timeout));

    
#endif
    
}

  return 
PLUGIN_CONTINUE;

}

public 
kill_menu(killer)

    
show_menukiller0"^n");


public 
revive_menu(killerthe_menuitem)
{

    if(
item == MENU_EXIT)

    {
        
menu_destroy(the_menu);
        return 
PLUGIN_HANDLED;
    }

    new 
data[6], iName[64];
    new 
accesscallback;
    
menu_item_getinfo(the_menuitemaccessdatacharsmax(data), iNamecharsmax(iName), callback);

    new 
key str_to_num(data);

    switch(
key)

    {
        case 
1:

        {
            if(
get_pcvar_num(g_revive_timeout) > 3client_print(killer,print_center,"Leaving dead.");
        }

        case 
2:

        {
            if(
is_user_connected(g_victim))

                {

                    
ExecuteHamB(Ham_CS_RoundRespawng_victim);

                    
g_Origin[2] = g_Origin[2] + 56;

                    
set_user_origin(g_victimg_Origin);

                    if(
is_user_alive(g_victim) && get_pcvar_num(g_revive_timeout) > 3)
                        
client_print(killer,print_center,"Revial complete.")
                        && 
client_print(0print_chat,"%s revived %s"szKillerNameszVictimName);

                }


            }


        }

    
menu_destroy(the_menu);
    return 
PLUGIN_HANDLED;


CVAR revive_menu_time 0 is off | sec before menu closes.
__________________

Last edited by DJEarthQuake; 12-19-2020 at 10:04. Reason: Updated.
DJEarthQuake is offline
bloodypro05
Junior Member
Join Date: Jul 2020
Location: Palestine
Old 12-13-2020 , 09:15   Re: Revive in Death place plugin
Reply With Quote #5

its for a jailbreak server , when a prisinor gets killed by mistake , so admins can revive him in place , instead of reviving and waiting him to come all the way back to place he should be in
bloodypro05 is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 12-16-2020 , 21:31   Re: Revive in Death place plugin
Reply With Quote #6

Alright I crafted something basic you can use when the Warden gets twitchy trigger finger on my previous post. Menu automatically opens when admin shoots somebody to death and closes if ignored.
__________________
DJEarthQuake 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 14:15.


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