Quote:
Originally Posted by hiiamu
I have the infopanel code in the main sp, as "public CenterHudAlive(client)" with all the information I want to be in the hud, do I need to trigger that part of the code when said command is executed?
|
No, Sourcemod triggers the command function when a player does the command. You just tell Sourcemod what to do when you register your commands using RegConsoleCmd() and RegAdminCmd(). You can think that when you register a command, you are pairing a command with an action. Whenever someone sends a command in chat, Sourcemod checks if their command has a paired action and then will execute it if it exists.