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

[REQ] plugin respwan


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 01-22-2020 , 00:58   [REQ] plugin respwan
Reply With Quote #1

hi,I want a plugin to hit
(respawn)
say /rev = All the dead are resurrected
say /revall = All the dead and the living will be resurrected

Last edited by alferd; 01-22-2020 at 00:59.
alferd is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 01-22-2020 , 04:52   Re: [REQ] plugin respwan
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?p=675468
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 01-22-2020 , 08:19   Re: [REQ] plugin respwan
Reply With Quote #3

Tested and it works.

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <hamsandwich>

#define PLUGIN "Revive"
#define VERSION "1.0"
#define AUTHOR "NapoleoN#"

new iFlags;
new 
bool:bDead;

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
register_clcmd("say /rev""CmdReviveDead");
    
register_clcmd("say /revall""CmdReviveAll");
}

public 
CmdReviveDead(id)
{
    
iFlags get_user_flags(id);
    if(
iFlags ADMIN_KICK)
    {
        
bDead true;
        
RevivePlayers(bDead);
    }
}

public 
CmdReviveAll(id)
{
    
iFlags get_user_flags(id);
    if(
iFlags ADMIN_KICK)
    {
        
bDead false;
        
RevivePlayers(bDead);
    }
}

RevivePlayers(bool:bDead)
{
    new 
iPlayers[32], iNum;
    
    
bDead get_players(iPlayersiNum"b") : get_players(iPlayersiNum);
    
    for(new 
iiNumi++)
    {
        
ExecuteHamB(Ham_CS_RoundRespawniPlayers[i]);
    }

__________________

Last edited by Napoleon_be; 01-22-2020 at 08:50.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Reply


Thread Tools
Display Modes

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 21:29.


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