![]() |
|
[Pawn] Map Markers new - Printable Version +- open.mp forum (https://forum.open.mp) +-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) +--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10) +--- Thread: [Pawn] Map Markers new (/showthread.php?tid=3074) |
Map Markers new - swuffted - 2025-02-13 ? [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
RE: Map Markers new - swuffted - 2025-02-13 Wrong Section! |