hi
anyone can convert this plugin to sp? (i want for zombie reloaded)
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>
public plugin_init()
{
register_plugin("Bot not attack when round begin", "0.1", "Dolph_ziggler")
register_forward( FM_CmdStart , "fm_CmdStart" );
}
public fm_CmdStart(id,Handle)
{
new Buttons; Buttons = get_uc(Handle,UC_Buttons);
if(is_user_bot(id) && !zp_has_round_started())
{
Buttons &= ~IN_ATTACK;
set_uc( Handle , UC_Buttons , Buttons );
return FMRES_SUPERCEDE;
}
return FMRES_IGNORED;
}