PHP Code:
#include <amxmodx>
#include <fun>
#include <fakemeta>
#include <hamsandwich>
#define OFFSET_PRIMARYWEAPON 116
new g_iMaxPlayers;
public plugin_init()
{
register_plugin("Drop weapons", "1.0", "Dr Zayd");
RegisterHam(Ham_Spawn, "player", "PlayerSpawn")
register_logevent("round_end", 2, "1=Round_End");
g_iMaxPlayers = get_maxplayers();
}
public round_end()
{
static id;
for(id = 1 ; id <= g_iMaxPlayers ; id++)
{
if(!is_user_alive(id))
continue;
set_user_maxspeed(id, 0.00001);
strip_user_weapons(id);
set_pdata_int(id, OFFSET_PRIMARYWEAPON, 0);
give_item(id, "weapon_knife");
}
}
public PlayerSpawn(id)
{
if(!is_user_alive(id))
return HAM_SUPERCEDE
strip_user_weapons(id);
set_pdata_int(id, OFFSET_PRIMARYWEAPON, 0);
give_item(id, "weapon_knife");
return HAM_IGNORED
}
Added :
PHP Code:
register_plugin("Drop weapons", "1.0", "Dr Zayd");

That All lol
__________________