I download kz-all-in-one from amxmod.net, all it had was the .sma, so I as I got AMX MOD X installed, i'm trying to compile the .sma into the compiler page of amxmodx.org, and It says the following
Read the errors above. Your plugin failed to compile. Make sure it is has the correct #includes
I'm really not really good with the codes, can anyone help me please ?
Here's half of the plugin to review it
Quote:
///////////////////////
#include <amxmod>
#include <amxmisc>
///////////////////////
new CheckOrigin[33][3]
new bool:checked[33]
new OldOrigin[33][3]
///////////////////////
public god(id)
{
if(get_cvar_num("sv_kreedz")==0)
{
return PLUGIN_HANDLED
}
if(is_user_alive(id)==1)
{
set_user_godmode(id,0)
client_print(id,print_chat,"[AMXX] Godmode enabled!")
}
return PLUGIN_HANDLED
}
public check(id)
{
if(get_cvar_num("sv_kreedz")==0)
{
return PLUGIN_HANDLED
}
if(is_user_alive(id)==1)
if(!checked[id])
checked[id] = true
get_user_origin(id, CheckOrigin[id])
CheckOrigin[id][2]-=10
client_print(id,print_chat,"[AMXX] Checkpoint saved!")
return PLUGIN_HANDLED
}
public gocheck(id)
{
if(get_cvar_num("sv_kreedz")==0)
{
return PLUGIN_HANDLED
}
if(!checked[id])
{
client_print(id,print_chat,"[AMXX] You must set an origin 1st using say /checkpoint")
return PLUGIN_HANDLED
}
new Origin[3];
get_user_origin(id,Origin);
for(new i=0;i<3;i++)
OldOrigin[id][i] = Origin[i]
set_user_origin(id, CheckOrigin[id])
client_print(id,print_chat,"[AMXX] You have been teleported to your checkpoint")
return PLUGIN_HANDLED
}
public stuck(id)
{
if(get_cvar_num("sv_kreedz")==0)
{
return PLUGIN_HANDLED
}
set_user_origin(id, OldOrigin[id])
client_print(id,print_chat,"[AMXX] You have been teleported to your last checkpoint to be unstuck")
return PLUGIN_HANDLED
}
public death_msg()
{
if(get_cvar_num("amx_respawn")==0)
{
return PLUGIN_CONTINUE
}
new vIndex = read_data(2)
user_spawn(vIndex)
return PLUGIN_CONTINUE
|