Thanks, but when I add these, it compiles and gives me erorrs now.
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
#define PLUGIN "GorillaMode"
#define VERSION "1.0"
#define AUTHOR "LittleDude"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("ResetHUD","spawn","b")
register_clcmd("fullupdate","block")
register_clcmd("say /gorillame", "gorillathem")
register_clcmd("say_team /gorillame", "gorillathem")
register_cvar("amx_gorilla", "1")
}
public plugin_precache(){
precache_model("models/player/gorilla/gorilla.mdl")
return PLUGIN_CONTINUE
}
public gorillathem(id){
if(get_cvar_num("amx_gorilla") == 0)
return PLUGIN_HANDLED
if(!is_user_alive(id)){
client_print(id, print_chat, "[Gorilla] You are dead and cannot go Gorilla Mode!")
return PLUGIN_HANDLED
}
new health = get_user_health(id)
if(is_user_alive(id) && health >= 50){
client_print(id, print_chat, "[Gorilla] You have too much health to turn Gorilla mode!")
return PLUGIN_HANDLED
}
else if(health < 50){
set_user_health(id, 250)
set_user_armor(id, 250)
give_item(id, "weapon_m249")
give_item(id, "ammo_556natobox")
give_item(id, "ammo_556natobox")
}
client_print(id, print_chat, "[Gorilla] You have gone Gorilla Mode!")
return PLUGIN_HANDLED
}
public spawn(id) {
new model[32]
cs_get_user_model(id,model,31)
if(equali(model,"gorilla"))
cs_reset_user_model(id)
}
public block(id) {
return PLUGIN_HANDLED
}
These are the errors:
Welcome to the AMX Mod X 1.60-300 Compiler.
Copyright (c) 1997-2005 ITB CompuPhase, AMX Mod X Team
Error: Symbol already defined: "spawn" on line 57
Error: Symbol already defined: "cs_get_user_model" on line 59
Error: Invalid function or declaration on line 61
Warning: Symbol is never used: "model" on line 67
3 Errors.
Could not locate output file C:\amx_gorilla.amx (compile failed).
__________________