Posts: 95
Threads: 26
Joined: Sep 2008
Reputation:
0
thanks but that wasnt my question i wanted to know how to delay a function after the server started
Posts: 2,856
Threads: 6
Joined: Jun 2007
Reputation:
0
You just need to look at the functions
SetTimer(funcname[], time_in_milliseconds, bool:repeat?);
SetTimerEx(funcname[], time_in_milliseconds, bool:repeat?, const format[], {Float,_}:...);
Than you only need to know what public gets called when the server start
If you use a GM its OnGameModeInit() and than main()
If its a filterscript that OnFilterScriptInit()
Posts: 95
Threads: 26
Joined: Sep 2008
Reputation:
0
sry but ...
public Test() starts if I start the server and my timer would restart the function after a few minutes but i wanna that the function only start cause of the timer
Posts: 95
Threads: 26
Joined: Sep 2008
Reputation:
0
Can u give an example? pls.
Posts: 55
Threads: 1
Joined: Oct 2007
Reputation:
0
@nesty: Also be sure that you only call the function with the timer and not with Test(); in OnGameModeInit()
Posts: 55
Threads: 1
Joined: Oct 2007
Reputation:
0
Well then add the Timer in a command. Or set the time higher. ATM the pickup will be created 6 seconds after u launched the samp-server.exe
Posts: 94
Threads: 1
Joined: Oct 2008
Reputation:
0
NP. I was editing my script so I though I would edit some of it and post as I thought it was relevant.