Quote:
Originally Posted by SHIFT0
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
Error: Undefined symbol "register_plugin" on line 5
Error: Undefined symbol "get_user_flags" on line 11
Error: Undefined symbol "set_task" on line 14
Error: Undefined symbol "give_item" on line 20
Error: Undefined symbol "cs_set_user_bpammo" on line 21
Warning: Expression has no effect on line 21
Error: Expected token: ";", but found ")" on line 21
Error: Invalid expression, assumed zero on line 21
Error: Too many error messages on one line on line 21
Compilation aborted.
8 Errors.
Could not locate output file D:\Program Files (x86)\AMX Mod X\amxxstudio\Untitled.amx (compile failed).
|
Ooops my bad, here try this one:
Edit: Why you're using amxmodx 1.8.2? ZE mod isn't compatible with that.
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <zombie_escape>
public plugin_init()
{
register_plugin("GIVE M249 & HE & FLASH BOMBS FOR VIPS", "1.0", "Null")
}
public ze_user_humanized(id)
{
// Not Admin? Exit the function...
if (!get_user_flags(id) & ADMIN_LEVEL_H)
return
set_task(0.1, "Give_M249", id)
}
public Give_M249(id)
{
// Give M249
give_item(id, "weapon_m249")
cs_set_user_bpammo(id, CSW_M249, 200)
// Give x2 Fire Nades
give_item(id, "weapon_hegrenade")
cs_set_user_bpammo(id, CSW_HEGRENADE, 2)
// Give x2 Frost Nades
give_item(id, "weapon_flashbang")
cs_set_user_bpammo(id, CSW_FLASHBANG, 2)
}
Use this compiler below