|
Post by mrbecker on Aug 22, 2009 22:14:59 GMT
is it possible to allow only certain classes, but not others. also, is it possible to only allow certain weapons? like allow the scattergun but not the force-a-nature, etc.
|
|
|
Post by mrbecker on Aug 28, 2009 1:13:14 GMT
any ideas? anybody?
|
|
tyrael
Pro Trained Noob
Posts: 29
|
Post by tyrael on Sept 1, 2009 14:03:33 GMT
It is possible, however I'm not 100% sure if you can do it for multiple classes but here is a way to do it. Create an entity and make it a: point_clientcommandFor name just put [glow=red,2,300]Clientcommand[/glow] Create another entity and make it: Filter_Activator_class Name: Filter Filter Mode: Disallow entity's that match that criteria Filter Class name: Pyro ------------- Next, in the area people will be spawning (general area) create a brush and make give it a 'trigger' texture. Tie it to an entity; and make it a 'trigger multiple' Name:Doesn't matter, it doesn't actually need one. Parent: Leave it blank Start Disabled: No Filter name: Filter Delay before reset: 0 For the outputs have it be: Ontrigger clientcommand Command joinclass pyro If done right; you will automatically join as pyro; if you spawn as something else it should kill you . As for the certain weapons, I'm pretty sure that's only server side.
|
|
|
Post by mrbecker on Sept 4, 2009 0:54:04 GMT
cool thanks, i'm assuming it also works in reverse to? like to only block 1 class?
|
|
tyrael
Pro Trained Noob
Posts: 29
|
Post by tyrael on Sept 7, 2009 13:02:44 GMT
Yeah, you could fiddle with it so you change classes if you spawn as, for example, a pyro it would randomly assign you to a different class.
|
|