PHP Code:
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "user_connect")
register_clcmd("say /guns", "WeaponMenu", ADMIN_USER)
}
public user_connect(id)
{
if(is_user_alive(id)) {
new CsTeams:team = cs_get_user_team(id);
if(team == CS_TEAM_T)
{
fm_strip_user_weapons(id);
give_item(id, "weapon_knife");
ColorChat(id, "^4%s^1As a terrorist, you will be a ninja!");
fm_set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 25);
fm_set_user_health(id, 200);
fm_set_user_gravity(id, 0.5);
fm_set_user_maxspeed(id, 375.0);
ColorChat(id, "^4%s^1Your objective is to kill all humans, good luck!");
}
if(team == CS_TEAM_CT)
{
ColorChat(id, "^4%s^1As a counter-terrorist, you will be a human!");
fm_set_user_rendering(id, kRenderFxGlowShell, 255, 255, 255, kRenderTransAlpha, 125);
set_task(1.0, "WeaponMenu");
ColorChat(id, "^4%s^1Your objective is to kill the ninjas, good luck!");
}
}
}
Whats wrong here? It wont display the messages or execute anything.
__________________