Thread: [ANY] Poof
View Single Post
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-30-2011 , 15:04   Re: [L4D2] Poof
Reply With Quote #10

Quote:
Originally Posted by blackalegator View Post
Could You please explain me this code a little bit? Isnt client allways an entity? Than it would have no effect
You SetTransmit hook on an entity, usually a prop_dynamic or something. The transmit callback is fired for that prop_dynamic entity (or in this case the client) and fires every frame for all clients. You can then decide who should see that entity by return Plugin_Continue or not allowed to see that entity with return Plugin_Handled.

Because the entity you hooked is a client, all you have to do is check the entity and client are the same and allow that person to see themselves (so they can move etc), while they are blocked to everyone else.
__________________
Silvers is offline