OK, here is a strange problem I've been dealing with the last 12 hours. Anytime I spawn a weapon entity (give player that weapon), after about 18 seconds, the place where I spawned it, another will appear and the original dropped gun will go away after 20 seconds like normal. I tested using engine also and got the same problem so I'm wondering if I'm missing something. As a sample:
Code:
wep_ent_id = engfunc(EngFunc_CreateNamedEntity,engfunc(EngFunc_AllocString,"weapon_garand"))
// Let's drop the players current weapon
client_cmd(id, "drop")
// Retrieve player's positional vector
pev(id,pev_origin,temp_player_origin)
// Set weapon vector to player's vector
engfunc(EngFunc_SetOrigin,wep_ent_id,temp_player_origin)
// Force it to drop to the ground
engfunc(EngFunc_DropToFloor,wep_ent_id)
// Make sure it thinks so it goes away on it's own
dllfunc(DLLFunc_Think,wep_ent_id)
// Spawn the ent
dllfunc(DLLFunc_Spawn,wep_ent_id)
I don't have any set_task running to create it a second time and it happens with something as simple as the above. I also can't catch this phantom weapon entity when it appears by either model or classname but still acts like a regular weapon on the ground.

This was all performed on AMX v1.7, Winblows server and 1.8 on Linux. I just want this phantom to not appear or force it to leave but I've been unsuccessful so far.