I am writing a simple script for use with CSDM on scoutzknivez. The script should drop the scout whenever the player spawns(not just on a new round). Tell me what I'm doing wrong?
Code:
#include <amxmodx>
public plugin_init() {
register_plugin("scoutzknivez drop","0.1","goodman")
new mapname[33]
get_mapname(mapname,32)
if(containi(mapname,"scoutzknivez") > -1 ) {
register_event("ResetHUD", "new_spawn", "be")
}
}
public new_spawn()
{
client_cmd(0,"drop weapon_scout")
return PLUGIN_CONTINUE
}
Thanks in advance you guys...