TextDraw Help
#1

Hi. I have a textdraw that displays zones. But I want to hide the textdraw whilst in requestclass and whilst dead.

I've tried creating the textdraw under OnPlayerSpawn, however whenever I do that. Once I die, it creates a new one over the top and then bugs the textdraw. I've tried adding TextDrawHideForPlayer under the callback OnPlayerDeath, but it doesn't hide... I've tried TextDrawDestroy, under the callback OnPlayerDeath, it did end up destroying.

However it would only fix it for one player. Then I decided that I'd try change the textdraw to a PlayerText and I managed to get it to work perfectly, but it only works perfectly for one person. If another person joins the server the whole textdraw won't appear.

This is my text draw.
PHP код:
    SetTimer("Zones_Update"5001);
    for(new 
i=0i<MAX_PLAYERSi++)
    {
           
Zones[i] = CreatePlayerTextDraw(playerid,6.5425.4"_");
           
PlayerTextDrawLetterSize(playeridZones[i], 0.652.1);
           
PlayerTextDrawSetOutline(playeridZones[i], 1);
     } 
I have it being destroyed under OnPlayerDeath
PHP код:
PlayerTextDrawDestroy(playerid,Zones[playerid]); 
Does anyone have any ideas?
Reply


Messages In This Thread
TextDraw Help - by Tass007 - 20.07.2016, 04:15
Re: TextDraw Help - by Shaktimaan - 20.07.2016, 05:46
Re: TextDraw Help - by Logic_ - 20.07.2016, 06:01
Re: TextDraw Help - by Threshold - 20.07.2016, 07:07
Re: TextDraw Help - by Tass007 - 20.07.2016, 07:08
Re: TextDraw Help - by Threshold - 20.07.2016, 07:27
Re: TextDraw Help - by SSRenz - 20.07.2016, 07:35
Re: TextDraw Help - by Tass007 - 20.07.2016, 07:41
Re: TextDraw Help - by Shaktimaan - 20.07.2016, 08:42
Re: TextDraw Help - by Threshold - 20.07.2016, 08:58

Forum Jump:


Users browsing this thread: 1 Guest(s)