Hi guys,
I made a plugin for fy_ maps for my server alone that drops their glock and usp and replace it with a deagle. It works perfectly, just that if I don't add "debug" in plugins.ini it gives me this error:
Quote:
L 03/04/2006 - 13:22:57: [FUN] Invalid player 2
L 03/04/2006 - 13:22:57: [AMXX] Run time error 10 (plugin "drop_give.amxx") - debug not enabled!
L 03/04/2006 - 13:22:57: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
|
I add debug, but no errors come up. :S I just want it to run smooth without having to debug.
Here's the code:
Code:
#include <amxmodx>
#include <fun>
#include <cstrike>
new givedeagle = 0;
public plugin_init() {
register_plugin("Drop&Give", "1.0", "PandaGirl")
register_event("ResetHUD", "spawned", "b")
new mapname[33]
get_mapname(mapname,32)
if(containi(mapname,"fy_") > -1 ) {
givedeagle = 1;
}
}
public spawned(id) {
if(givedeagle == 1 && is_user_alive(id)) {
client_cmd(id, "drop weapon_glock18")
client_cmd(id, "drop weapon_usp")
set_task(0.5,"give_it",id)
}
}
public give_it(id) {
give_item(id,"weapon_deagle")
cs_set_user_bpammo(id, CSW_DEAGLE, 56)
}