Dr.G
03-23-2009, 05:50 PM
this is how you catch when a player spawn with hamsandwich:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <hamsandwich>
#define PLUGIN "Spawn test"
#define VERSION "1.0"
#define AUTHOR "Dr.G"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
/* reg. ham_spawn */
RegisterHam(Ham_Spawn,"player","func_HamSpawn")
/* *1 *2 *3
*1 - Register an entity spawn = Ham_Spawn
*2 - Entity named: player
*3 - Function to forward to: func_HamSpawn */
}
public func_HamSpawn(id)
{
if(get_user_team(id))
client_print(id, 3, "***Spawn")
}
where did your post about this go D-O?????
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <hamsandwich>
#define PLUGIN "Spawn test"
#define VERSION "1.0"
#define AUTHOR "Dr.G"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
/* reg. ham_spawn */
RegisterHam(Ham_Spawn,"player","func_HamSpawn")
/* *1 *2 *3
*1 - Register an entity spawn = Ham_Spawn
*2 - Entity named: player
*3 - Function to forward to: func_HamSpawn */
}
public func_HamSpawn(id)
{
if(get_user_team(id))
client_print(id, 3, "***Spawn")
}
where did your post about this go D-O?????