Try this :
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#define PLUGIN "test"
#define AUTHOR "ConnorMcLeod"
#define VERSION "0.0.1"
#define bAutoWepSwitch 509
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "Player_Spawn")
}
public Player_Spawn(id)
{
if( is_user_alive( id ) )
{
set_pdata_int(id, bAutoWepSwitch, false)
}
}
Quote:
|
510 - setinfo _vgui_menus (1<<0), _ah (1<<8 ), uses_shield (1<<16), has_shield (1<<24)
|
__________________