PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <cstrike>
new const PLUGIN[] = "[X]"
new const AUTHOR[] = "eMDX;3"
new const VERSION[] = "0.0.1"
new td_camtimer;
new pArmor = get_user_armor;
new pHealth = get_user_health;
new pBullets = get_user_ammo;
new pHit = get_user_attacker;
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /cam", "camera", ADMIN_BAN)
register_clcmd("say /status", "status")
register_clcmd("say /gurilla", "guriilaCMD")
td_camtimer = register_cvar("td_cam", "50.0", ADMIN_BAN)
}
public camera(id)
{
if(is_user_alive(id) && is_user_admin(id))
{
set_view(id, CAMERA_3RDPERSON)
ColorChat(id, "You have 3RD Camera activated for %s seconds.", td_camtimer)
set_task(50.0, "EndCamera", id)
}
}
public EndCamera(id)
{
if(is_user_alive(id))
{
set_view(id, CAMERA_NONE)
ColorChat(id, "3RD Camera is now disabled!")
}
}
public status(id)
{
ColorChat(id, "You'r Health Points: %s", pHealth)
ColorChat(id, "You'r Armor: %s", pArmor)
ColorChat(id, "You'r Ammo: %s", pBullets)
ColorChat(id, "You'r Last Attacker: %s", pHit)
}
public gurillaCMD(id)
{
cs_set_user_model(id, "gurilla")
}
stock ColorChat(const id, const string[], {Float, Sql, Resul,_}:...) {
new msg[191], players[32], count = 1
static len
len = formatex(msg, charsmax(msg), "^x04[^x03%s^x04]^x01 ", PLUGIN)
vformat(msg[len], charsmax(msg) - len, string, 3)
if(id)
players[0] = id
else
get_players(players,count,"ch")
for (new i = 0; i < count; i++) {
if(is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"),_, players[i])
write_byte(players[i])
write_string(msg)
message_end()
}
}
}
what i did worng here?
(yes i know i toke the CAM from other post... i am trying to do something...)
this is server fail:
[ 21] unknown unknown unknown [X].amx bad load