*facepalm* I know better than to try and store a string in an int variable. Silly me. Thank you for the explination, here is what I got, with some help from the Discord. (Domino)
PHP Code:
public void OnEntityCreated(int entity, const char[] classname)
{
if (StrContains(classname, "grenade_projectile", false) > -1)
{
SDKHook(entity, SDKHook_SpawnPost, OnSpawnPost);
}
}
public void OnSpawnPost(int entity)
{
int iThrower = GetEntPropEnt(entity, Prop_Send, "m_hThrower");
bRestrictCommand[iThrower] == true;
CreateTimer(30.0, CommandRestrict, iThrower);
}
public Action CommandRestrict(Handle timer, data any)
{
bRestrictCommand[iThrower] == false;
}