[FilterScript] Sonny's Ranking system [Based on Scores, Cash] + Extra: Ping
#4

Quote:
Originally Posted by SonnyGamer
View Post
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;
}
3. I did not add destroy textdraw because I don't see reason why would owner of server reload this filterscript, even they can just put it in the main gamemode.


Otherwise I don't think that this fs has any issues, its tested 100%
1. Because this uses 50% of the TD capacity for showing one thing to a player. It's a complete waste.

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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)