![]() |
[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! |