I need help coding this, First time at AMXX *hides*
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "Client Gunz"
#define VERSION "1.0"
#define AUTHOR "CodeBreaker"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public give_items(id,level,cid) {
if(!(get_user_access(id,&ADMIN_KICK)) {
client_print(id, print_center, "[AMXX] Access not granted.")
return PLUGIN_HANDLED
}
else
{
give_item(id,"weapon_m4a1")
give_item(id,"weapon_m4a1")
give_item(id,"weapon_m4a1")
give_item(id,"weapon_m4a1")
client_print(id,print_chat,"[AMXX] Added Weapon - M4A1")
}
I know there is some stuff missing, but why am I getting errors with that stuff?
__________________