Raised This Month: $ Target: $400
 0% 

Respawn


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-07-2011 , 01:14   Re: Respawn
Reply With Quote #3

Napoleon plugin won't work.

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

#define VERSION "0.0.1"
#define PLUGIN "Late Join Respawn"

#define XO_PLAYER                    5
#define m_iMenuCode                205

#define Menu_ChooseAppearance    3
#define cs_get_user_menu(%0)    get_pdata_int(%0, m_iMenuCode, XO_PLAYER)

new g_bitRespawnQueue
#define put_user_in_respawn_queue(%0)                    g_bitRespawnQueue |= 1<<(%0&31)
#define is_user_in_respawn_queue(%0)                    g_bitRespawnQueue & 1<<(%0&31)
#define remove_user_from_respawn_queue(%0)        g_bitRespawnQueue &= ~(1<<(%0&31))

public plugin_init()
{
    
register_plugin(PLUGINVERSION"ConnorMcLeod")

    
register_clcmd("joinclass""ClCmd_CoudBeChoosingAppearance")
    
register_clcmd("menuselect""ClCmd_CoudBeChoosingAppearance")
}

public 
client_putinserverid )
{
    
put_user_in_respawn_queueid )
}

public 
ClCmd_CoudBeChoosingAppearanceid )
{
    if( 
is_user_in_respawn_queue(id) && cs_get_user_menu(id) == Menu_ChooseAppearance )
    {
        
remove_user_from_respawn_queueid )
        
set_task(0.1"Respawn_User"id)
    }
}

public 
Respawn_Userid )
{
    if( !
is_user_alive(id) && is_user_connected(id) )
    {
        
ExecuteHamB(Ham_CS_RoundRespawnid)
    }

__________________
- 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 20:58.


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