SA-MP Forums Archive
Random fires. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Random fires. (/showthread.php?tid=350583)



Random fires. - iGetty - 13.06.2012

How is it possible to make random fires and synchronize it with all players that are connected and the ones that connect when the fire's active?


Thanks!


Re: Random fires. - Yuryfury - 13.06.2012

Fire is one of the few things that isn't synced in SAMP and I don't believe that there is a fix. Explosions are sort of synced, but not fire specifically.

EDIT: A link I found. It is from 2009 but basically supports what I said above (https://sampforum.blast.hk/showthread.php?tid=102615). Either way, I'm pretty sure that it hasn't been synced since then.


Re: Random fires. - ReneG - 13.06.2012

You would store all the fires' positions in an array, then use a repeating timer to select those floats at random and using the fire object id, you can make server-sided fires!


Re: Random fires. - Yuryfury - 13.06.2012

Quote:
Originally Posted by VincentDunn
Посмотреть сообщение
You would store all the fires' positions in an array, then use a repeating timer to select those floats at random and using the fire object id, you can make server-sided fires!
There is a fire object id? :O


Re: Random fires. - SuperViper - 13.06.2012

https://sampwiki.blast.hk/wiki/Samp_objects

18688 fire