28.03.2019, 08:40
Quote:
1. Why I can't use global textdraws for per-player purposes?
2. I only forgot to add: Code:
public OnPlayerDisconnect(playerid, reason) { TextDrawHideForPlayer(playerid, PlayerranksTextdraw[playerid]); return 1; } Otherwise I don't think that this fs has any issues, its tested 100% |
Player-TDs would use 1 of 256 (per-player) which is less than 0.5%.
2. You don't need to hide it on Disconnect. You need to destroy it. But if you change these to player-TDs, you don't need to destroy them since they are automatically destroyed when a player disconnects. But you still need to handle OnFilterScriptExit and a gamemode restart if you want it to survive a GMX.
3. Reloading this filterscript because you for example changed rank names or whatever would use another 1000 TDs, so 99% of TDs for no reason.