Quote:
Originally Posted by CrazY.
Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
public plugin_init()
{
RegisterHam(Ham_Spawn, "player", "CBasePlayer_Spawn_Post", 1);
}
public CBasePlayer_Spawn_Post(id)
{
if (!is_user_alive(id))
return;
new pActiveItem = get_pdata_cbase ( id, 373 , 5 ) ;
if (pActiveItem != -1)
ExecuteHamB ( Ham_Weapon_RetireWeapon, pActiveItem ) ;
}
|
Thank you very much for your help, your plugin works perfectly on aim_usp, aim_glock, aim_deagle. You helped me a lot