first of all, put your code between [ php ] and [ /php ] without space to show your code like this.
PHP Code:
#include <amxmodx>
#include <hamsandwich>
public plugin_init()
{
RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1)
}
public fwHamPlayerSpawnPost(id)
{
set_task(0.1, "make_chicken", id + 12345);
}
public make_chicken(id)
{
server_cmd("c_chicken %i", id - 12345);
server_exec();
}