Permalink
Browse files

Block fpd_ragdoll

hello blacklist!?...
  • Loading branch information...
Bara committed Nov 29, 2017
1 parent f1a413b commit 089d43579b6aa679659749e4d197195eba11e6bf
Showing with 2 additions and 2 deletions.
  1. +2 −2 addons/sourcemod/scripting/ttt/ttt_grabbermod.sp
@@ -153,13 +153,13 @@ stock void GrabSomething(int client)
}
}
if (StrEqual(sName, "prop_ragdoll", false))
if (StrContains(sName, "ragdoll", false) != -1 || StrContains(sName, "player", false) != -1)
{
char sTargetname[32];
GetEntPropString(ent, Prop_Data, "m_iName", sTargetname, sizeof(sTargetname));
// true is a positive found on the blacklist or negative found on the whitelist
if (CheckLists(sTargetname))
if (CheckLists(sTargetname) || StrContains(sTargetname, "fpd_ragdoll", false) != -1)
{
return;
}

0 comments on commit 089d435

Please sign in to comment.