Could it be, that EquipPlayerWeapon dissapears weapon?
I'm using Rembo Style. If player is rembo, plugin restricts: pickup, rebuy, buy events.
On spawn, all weapons is removed from player.
I'm using timer.
PHP Code:
public Action:Rembo_Style(Handle:timer, any:client)
{
if (!IsClientInGame(client) || !IsPlayerAlive(client)) return Plugin_Stop;
SetEntProp(client, Prop_Send, "m_iHealth", 300);
new ginklas = GetPlayerWeaponSlot(client, 0),
pistol = GetPlayerWeaponSlot(client, 1),
knife = GetPlayerWeaponSlot(client, 2);
if (ginklas != -1)
{
RemovePlayerItem(client, ginklas);
RemoveEdict(ginklas);
}
if (pistol != -1)
{
RemovePlayerItem(client, pistol);
RemoveEdict(pistol);
}
EquipPlayerWeapon(client, knife);
return Plugin_Stop;
}
__________________