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

Solved


Post New Thread Reply   
 
Thread Tools Display Modes
farhanhyper
Member
Join Date: Dec 2017
Location: Finland
Old 01-06-2019 , 03:37   Re: Revive Dead Players
Reply With Quote #11

Quote:
Originally Posted by X3. View Post
PHP Code:
#include <amxmodx>
#include <hamsandwich>

#define FLAG ADMIN_SLAY

public plugin_init()
{
    
register_plugin("Revive Players","0.1","X3")
    
register_clcmd("say /rev","ReviveFunc")
}

public 
ReviveFunc(id)
{
    if(~
get_user_flags(id) & FLAG)
        return

    new 
AdminName[32]
    
get_user_name(idAdminNamecharsmax(AdminName))

    new 
pl[32], tpl
    get_players
(pl,tpl,"b")

    for(new 
0tpli++)
    {
        
ExecuteHamBHam_CS_RoundRespawn,pl[i]);
    }
    
client_print(0,print_chat,"[ADMIN] %s: Revived All Players",AdminName)

Thank you X3 it works for dead players,but still it has a problem and its revive spectators,too.(I mean It count spectators as dead players)
can you solve this problem for me?
__________________
Never Say Never

Last edited by farhanhyper; 01-06-2019 at 04:35.
farhanhyper is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 01-06-2019 , 09:42   Re: Revive Dead Players
Reply With Quote #12

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>

#define FLAG ADMIN_SLAY

public plugin_init()
{
    
register_plugin("Revive Players","0.1","X3")
    
register_clcmd("say /rev","ReviveFunc")
}

public 
ReviveFunc(id)
{
    if(~
get_user_flags(id) & FLAG)
        return

    new 
AdminName[32]
    
get_user_name(idAdminNamecharsmax(AdminName))

    new 
pl[32], tpl
    get_players
(pl,tpl,"b")

    for(new 
0tpli++)
    {
        if(
cs_get_user_team(CS_TEAM_T <= cs_get_user_team(pl[i]) <= CS_TEAM_CT))
        
ExecuteHamBHam_CS_RoundRespawn,pl[i]);
    }
    
client_print(0,print_chat,"[ADMIN] %s: Revived All Players",AdminName)

__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
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 15:54.


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