• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Filterscript] Map Markers new
#1
I originally posted my thread to wrong section and i don't know how to delete it but i will also paste it here!
🎯 [RELEASE] Per-Player Colored Checkpoints, Arrows & Decal Hoops
πŸ”Ή Introduction
Hey everyone! πŸ‘‹ I'm Dzherekarov (or Jerry), and I’d like to share my filterscript with you. It can be turned into an include or even a plugin, but unfortunately, I'm both busy and lazy, so I won’t be doing that. πŸ˜†
However, you are free to modify it as you wish!
I've always been annoyed with SA-MP’s built-in checkpoints, race checkpoints, enex arrows, and pickups, so I created a solution:
βœ… Per-player colored checkpoints
βœ… Custom arrows & rotating decal hoops
βœ… 237 unique map marker IDs (0–237)
βœ… Markers rotate and glow like real checkpoints
βœ… No timers or TickCount used!
πŸ“’ Note: My native language is Bulgarian, so don’t judge me too harshly. Also, I’m not a professional scripter, just a guy with patience!
πŸ›  Requirements
To run this filterscript, you need:
πŸ”Ή
#include <YSF>

πŸ”Ή
#include <streamer>
It’s my first time writing a thread, so don’t expect perfection! πŸ˜…
πŸš€ Features & Usage
One of the best parts of this system is that you don’t need to manually track marker IDs. Everything is handled automatically.
βœ… Adding a Map Marker
AddMapMarker(playerid, type = 0, Float:X, Float:Y, Float:Z, col = 0xAAAAAAAA, colh = 0xAADD1111, vw = 0, interior = 0, Float:DrawDist = 110.0, dtext[]="MARKER TAG", col3d = 0x00000000, testl = 1, Float:tdrawdist = 50.0);

πŸ“Œ Markers are automatically indexed when created. No need to manually declare them!
πŸ“Œ You can add markers in OnPlayerSpawn or OnPlayerConnect, and they will persist.
πŸ—‘ Destroying a Marker
DestroyMarker(playerid, markerid);

πŸ“Œ If you have 30 map markers, ID 1 is actually 0 (so valid IDs are 0–29).
πŸ“Œ When you destroy ID 5, it becomes available again for the next marker you create.
πŸ’₯ Destroy All Markers DestroyAllMarkers(playerid); πŸ“Œ Removes all markers for a player.

πŸ” Get a Marker ID GetMarkerID(playerid, markerid); πŸ“Œ Retrieves the valid ID of a marker.

πŸ”„ Filterscript Restart Behavior
Markers are automatically destroyed when the filterscript restarts.
If you create them OnPlayerSpawn, the player must respawn after a restart to see them again.

πŸ“Œ Important Notes
πŸ›‘ These markers are per-player, so they do not use GlobalObject slots.
πŸ›‘ You can place 50 markers around a player, but they are only visual effects.
πŸ›‘ If you want interactions (e.g., triggers when entering a marker), use:
Pickups
Streamer Areas
Timers
πŸ’¬ Final Thoughts
This system is great for shops, player missions, and custom checkpoint systems.
Feel free to test, modify, and improve it!
Let me know if you have feedback or suggestions. Enjoy! 😎

some pics:
[Image: m3c47d.png]
[Image: qcasts.png]
[Image: riuxm6.png]
[Image: 3drx5i.png]
[Image: x36sxs.png]
[Image: u5cb7l.png]
[Image: ta2zzz.png]
you can use any color you want for your hoops checkpoints and decals only enex are limited to yellow red green and blue! you can also set the hoop a green color and the decal to a blue color if u wish!
note : there are more options that can be included for example any samp object that is non-collidable will rotate and glow! you can make new pickups for the weapons as they areΒ non collidable so you can have red m4 or ak-47 like a pickup. to achive nonrotating 'glowing' effect like light or a highlighted texture or materialtext use objectΒ 3534 attaching your main object to it will make it glow!Β essentialy attaching any object to an object with animation will make the attached object glow!
source code : https://pastebin.com/ZY0EMp1k
  Reply


Forum Jump: