I already know all this, I don't want to enter a command. I want the server to turn everyone who joins the game into a chicken when the plugin is active.
amx_chicken is already running on my server i can turn everyone into a chicken with one command.
c_chicken is a command that other plugins can use as it says in the description of chickenrebirth.
Thanks anyway.
something like this, I tried to write the code myself but I don't think it's really right?
PHP Code:
#include <amxmodx>
#include <hamsandwich>
public plugin_init() {
RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1)
}
public fwHamPlayerSpawnPost(iPlayer) {
if (is_user_alive(iPlayer)) {
// player spawned
}
}
public UseCommand()
{
server_cmd("c_chicken *(iPlayer)")
return PLUGIN_HANDLED
}