Hi, I using this code for clearing guns from map becouse i want so players could take guns but no guns spam server, but this have one problem if player take dropped gun, timer still active and gun destroyed although he has a player how to solve?
PHP Code:
public void OnEntityCreated(int entity, const char[] classname)
{
if(!IsValidEntity(entity))
return;
if(StrContains(map, "3doors") != -1 && StrContains(classname, "weapon_") != -1)
{
DispatchKeyValue(entity, "OnUser1", "!self,Kill,,60.0,-1");
AcceptEntityInput(entity, "FireUser1");
}
}
__________________