Help with a plugin: code description
Can somebody tell me what are doing the underline codes:
#include <amxmodx> #include <amxmisc> public plugin_init(){ register_plugin("Unlag connect","1.0","tankers") register_logevent("roundstart",2,"1=Round_Sta rt") } public roundstart(id) set_task(0.7,"client_connect",id) public client_connect(id) client_cmd(id,"fps_max 999;fps_modem 999;cl_updaterate 101;cl_cmdrate 101;cl_weather 0;cl_showfps 1") |
Re: Help with a plugin: code description
the logevent roundstart is the even when the round starts, after freezetime passes.
the public roundstart(id) is the public called by the register_logevent and the set_task sets kind of a delay before calling the client_connect public :) |
Re: Help with a plugin: code description
Thank you, but i have one more question: The public (commands) is executed one time, after the client connects, not every new round right? And in the config.cfg are executed those commands?
|
Re: Help with a plugin: code description
SlowHacking = No Help
|
Re: Help with a plugin: code description
use...public client_connect ...or client_authorized.....or client_disconnect =))
|
| All times are GMT -4. The time now is 14:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.