AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help with a plugin: code description (https://forums.alliedmods.net/showthread.php?t=131014)

tankers 06-30-2010 07:51

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")

Brreaker 06-30-2010 08:26

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 :)

tankers 06-30-2010 13:20

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?

edgaras85 06-30-2010 13:27

Re: Help with a plugin: code description
 
SlowHacking = No Help

5c0r-|3i0 06-30-2010 20:05

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.