This worked:
PHP Code:
public pfn_keyvalue(ent)
{
if(is_valid_ent(ent))
{
new classname[33]
new keyname[33]
new keyvalue[33]
copy_keyvalue(classname,32,keyname,32,keyvalue,32)
if(equal(classname, "trigger_multiple"))
{
entity_set_int(ent, EV_INT_solid, SOLID_TRIGGER)
}
}
}
I changed the illusionary to trigger_multiple, i don't know if it works with illusionary, but with multiple it works.
I thought i tried that yesterday already, but maybe i just was too sleepy.
But still thanks alot.
On the version before i had no entities, just coordinates and i did it with a cuboid that i created myself with amxx like you said on your post and checked it with a task, but that was too slow for me, because i want it instantly.