Burgershot
[Suggestion] Per-Player Stuff - Printable Version

+- Burgershot (https://www.burgershot.gg)
+-- Forum: open.mp (https://www.burgershot.gg/forumdisplay.php?fid=40)
+--- Forum: Questions and Suggestions (https://www.burgershot.gg/forumdisplay.php?fid=42)
+--- Thread: [Suggestion] Per-Player Stuff (/showthread.php?tid=1087)



Per-Player Stuff - Pinch - 2020-05-12

There are many "Player" natives and I dunno what Kye was thinking about when creating these but some already do what I am intending to suggest and some just have that Player prefix before the native name and that's all...

For example, PVars are automatically set back to default values when a player disconnects
Player TextDraws are automatically destroyed too
So what about player objects and similar natives? It's literally just a word "Player" in cases like this
I think that everything related to Player (per-player) should automatically be destroyed or set to default values on player disconnects by the API...

+ or -? Doesn't matter! Just state your opinion on this, please!

EDIT: This is not just because I am lazy but because this clutters our scripts as it can be done internally by the API (faster than we'd do in pure PAWN too)...