SA-MP Forums Archive
[FilterScript] New Bullet Hole with Command & Timer for remove - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] New Bullet Hole with Command & Timer for remove (/showthread.php?tid=596633)



New Bullet Hole with Command & Timer for remove - Jorge98 - 20.12.2015

Hi all, I just finished this FilterScript with the intention of sharing it with you, it is simple but effective, is activated and deactivated by command also made him a timer 9 seconds for all holes from bullets are deleted, the which can be configured to your liking ^^


• -> Any change in the code is allowed as long as the respective credits, thanks be maintained.


The script I did in Spanish, because it is my native language, if they do not understand something, ask and I will clarify your doubts, (sorry for my Middle English :P)


• -> Here some pictures (sorry for the resolution, my pc is a poop):


















PD: If you find a bug, please let me know ASAP, Thanks!

http://pastebin.com/xZpArtJ6


Re: New Bullet Hole with Command & Timer for remove - SupperRobin6394 - 20.12.2015

Cool


Re: New Bullet Hole with Command & Timer for remove - Pottus - 20.12.2015

Designed incorrectly this will delete all the bullet holes every 9 seconds and not each bullet hole after 9 seconds it also uses CreateObject() filling up too many slots for a simple effect. Use dynamic objects then you don\'t have to worry about global limits only global limits on a local scale would apply.


Re: New Bullet Hole with Command & Timer for remove - Jorge98 - 20.12.2015

Quote:
Originally Posted by Pottus
View Post
Designed incorrectly this will delete all the bullet holes every 9 seconds and not each bullet hole after 9 seconds it also uses CreateObject() filling up too many slots for a simple effect. Use dynamic objects then you don\'t have to worry about global limits only global limits on a local scale would apply.
Pottus, Not bad elaborate, in fact, that was how did the system, delete all the bullets after 9 seconds automatically by timer, but not every bullet individually may then publish another version where bullet is cleared by bullet (1x1) and not all who then shot 9 seconds, and use the CreateObject because using CreateDynamicObject causes more lag.


Re: New Bullet Hole with Command & Timer for remove - Riddick94 - 25.12.2015

Quote:
Originally Posted by Pottus
View Post
Designed incorrectly this will delete all the bullet holes every 9 seconds and not each bullet hole after 9 seconds it also uses CreateObject() filling up too many slots for a simple effect. Use dynamic objects then you don\'t have to worry about global limits only global limits on a local scale would apply.
That\'s gonna mean 1 timer per bullet, which is in fact 9 timers running on the server.


50 players x 9 bullets (timers) = 450 timers. That\'s a lot I think, I don\'t know what you think about that. Unless there\'s some workaround for that. Maybe count the objects created and when there\'s gonna be a 10th one, delete the first bullet hole object? So bullet holes gonna stay in there. Tough to say really, I would have to have more time to think about this for a better solution.


Re: New Bullet Hole with Command & Timer for remove - Pottus - 25.12.2015

450 timers is nothing really you could also run a timer and record the time each mark was created and check if the time expired but this would actually require more resources.


Re: New Bullet Hole with Command & Timer for remove - Jorge98 - 25.12.2015

Good idea!!


Re: New Bullet Hole with Command & Timer for remove - Infinity - 25.12.2015

The issue that annoys me most is that you abused the tabsize pragma. When will people learn this is just very bad code design?


Re: New Bullet Hole with Command & Timer for remove - Jorge98 - 25.12.2015

but that does not affect anything in the code, only bleeding but nothing major ... put it well laziness to accommodate spaces.


Re: New Bullet Hole with Command & Timer for remove - Pottus - 25.12.2015

Quote:
Originally Posted by Jorge98
View Post
but that does not affect anything in the code, only bleeding but nothing major ... put it well laziness to accommodate spaces.
Best excuse I have ever heard!


Re: New Bullet Hole with Command & Timer for remove - Jorge98 - 25.12.2015

Well, that does not bother me, i will arrange the indentation in the code.


Re: New Bullet Hole with Command & Timer for remove - Jorge98 - 25.12.2015

Ready, i have already corrected the indentation in pastebin


Re: New Bullet Hole with Command & Timer for remove - xXRevolverXx - 25.12.2015

Simple cool one, goodone keep it up.


Respuesta: New Bullet Hole with Command & Timer for remove - Jorge98 - 26.12.2015

thx Revolver


Re: New Bullet Hole with Command & Timer for remove - jeffery30162 - 26.12.2015

make one 1 second timer that loops through the created bullets marks every second interval each mark by 1, if the interval equals 9 remove that bullet mark.


Piece of cake


Respuesta: Re: New Bullet Hole with Command & Timer for remove - Jorge98 - 26.12.2015

thanks! I\'ll take it into account for updating this system


Re: New Bullet Hole with Command & Timer for remove - lokkura - 22.08.2018

como se activa


Re: New Bullet Hole with Command & Timer for remove - KinderClans - 22.08.2018

Quote:
Originally Posted by lokkura
View Post
como se activa
By not bumping 3 years old topics.