Quote:
Originally Posted by Brreaker
PHP Code:
public plugin_init() {
RegisterHam(Ham_Spawn, "player", "fwdHamSpawn");
}
public fwdHamSpawn(id) {
user_kill(id,1 ); //so he doesn't get +1 death (thx unny)
return HAM_IGNORED;
}
|
You can't kill a user before he's spawned. That forward is registered for before he spawns. If you want to register a post ham hook, make the fourth parameter 1 in the registry.
This topic has been discussed before. Search. (I believe minimiller started it, but there was a very recent one in the past month or so)
__________________