22.07.2012, 20:25
I had this problem, in my gamemode I simply set all text-draws and player text-draws to be created on OnGameModeInit and destroyed on OnGameModeExit, this works well enough. It's best to just avoid creating/deleting them in runtime in my opinion.
The only problem I have is if I do this:
Start server
Load a filterscript with textdraws
Restart the server
Then I get problems with gamemode textdraws taking instructions from filterscripts.
But then again I only load and de-load filterscripts for testing purposes, when my gamemode is hosted the only filterscript won't have any GUI, all the main stuff is in the gamemode.
The only problem I have is if I do this:
Start server
Load a filterscript with textdraws
Restart the server
Then I get problems with gamemode textdraws taking instructions from filterscripts.
But then again I only load and de-load filterscripts for testing purposes, when my gamemode is hosted the only filterscript won't have any GUI, all the main stuff is in the gamemode.