View Single Post
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 09-10-2018 , 13:32   Re: Make weapons not dropable
Reply With Quote #16

Quote:
Originally Posted by mug1wara View Post
What's the sense in that?

EDIT:

@Ilusion9 showed a great example.
The sense in doing that is you can hook the event for each client as they join. OnPluginStart() is only called when all the plugins have loaded or when the plugin itself loads late (reloaded/added late/etc.). The way that code has it, the event will only be hooked for the clients that are already connected and ingame, but not the ones who join later.

I usually hook any SDKHook event to clients on OnClientPostAdminCheck().
__________________

Last edited by Psyk0tik; 09-10-2018 at 13:39.
Psyk0tik is offline