i'm newb at this as well but i think you got the return part wrong and you need to check if user is alive try this
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#define PLUGIN "Test rip ammo"
#define VERSION "1.0"
#define AUTHOR "TEST"
#define free 10
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
set_task(float(free),"steal_ammo",_,_,_,"b")
}
public steal_ammo(id){
if (!is_user_alive(id))
return PLUGIN_HANDLED
else{
cs_set_weapon_ammo(id,0)
new clip, ammo, wid = get_user_weapon(id, clip,ammo)
cs_set_user_bpammo(id,cs_get_weapon_id (wid),0)
set_hudmessage(255, 255, 255, 0.11, 0.31, 0, 6.0, 12.0)
show_hudmessage(id, "Oh no! The grim reaper has killed all your ammo ;P")
}
return PLUGIN_HANDLED
}
amx returns the error
Code:
[AMXX] Run time error 10 (plugin "test.amxx") - debug not enabled!
and i apoligise if im completley wrong as like i said im newb too. but i hope that works or helps.
also may want to look up the user alive funtion.
__________________