quick register_concmd() related question
hey all,
i was wondering are there a list of constants anywhere that can be found that can be used to cause an event. For example register_concmd() executes a function given a particular command is executed. I have seen commands like this: register_concmd("admin_exec","admin_exec",0,"- execute a command on the targets client") and also like this.... register_concmd("chooseteam","team_block",0) What i want is a list of the key words that can be used to raise events. 'chooseteam' is obviously a keyword that is used when a client changes team....are there keywords like 'connect' and 'endround' aswell ??? Im after executing a command when a user connects, so therefore can i use... register_concmd("connect","execute_example_fu nction",0) ?? Thanks for any help |
Code:
This is used to make a function that runs when someone enters the command in a console. To get when a player connects simple make a public function like so Code:
To get when a player is actually in the server Code:
|
thanks for your help Bishop.
also do i have to register that im using a command, i.e. register_event("client_putinserver", "check_rates", "a") or will 'client_putinserver' be automatically called when a user connects and i can directly put my code within the client_putinserver function ? |
Its a built in function so yes, Its called automatically.
note: client put in server is when they are in the server. client connect is when they connect. Just a slight note :D |
| All times are GMT -4. The time now is 19:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.