Raised This Month: $ Target: $400
 0% 

[HELP ME] please urgent


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-27-2012 , 12:28   Re: [HELP ME] please urgent
Reply With Quote #3

No need to register/unregister Ham_Spawn.

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fakemeta>
#include <fun>

#define PLUGIN "Revive Ts"
#define VERSION "0.0.1"

const m_iTeam 114
const m_iJoinedState 121
const m_iMenu 205

const TEAM_T 1
const MENU_CHOOSEAPPEARANCE 3

public plugin_init()
{
    
register_pluginPLUGINVERSION"ConnorMcLeod" )

    
register_concmd("amx_revive_T""ConCmd_Revive"ADMIN_CFG"Revive Ts with 999HP")
}

public 
ConCmd_Reviveid lvlcid )
{
    if( 
cmd_access(idlvlcid0) )
    {
        new 
players[32], numplayer
        get_players
(playersnum"h")
        for(--
numnum>=0num--)
        {
            
player players[num]
            if( !
get_pdata_int(idm_iJoinedState) && get_pdata_int(idm_iTeam) == TEAM_T && get_pdata_int(idm_iMenu) != MENU_CHOOSEAPPEARANCE )
            {
                
ExecuteHamB(Ham_CS_RoundRespawnplayer)
                
set_user_health(id999)
            }
        }
    }

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
 



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 13:46.


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