TextDraw Help
#2

first OnPlayerSpawn is not the correct place for creating a player textdraw...
So put it under OnPlayerConnect
PHP код:
public OnPlayerConnect(playerid)
{
           
Zones[playerid] = CreatePlayerTextDraw(playerid,6.5425.4"_"); 
           
PlayerTextDrawLetterSize(playeridZones[playerid], 0.652.1); 
           
PlayerTextDrawSetOutline(playeridZones[playerid], 1); 

When player spawn u have to show up the textdraw..
PHP код:
public OnPlayerSpawn(playerid)
{
           
PlayerTextDrawShow(playerid,Zones[playerid]); 

Now you have to hide it on OnPlayerDeath..
PHP код:
public OnPlayerDeath(playerid)
{
      
PlayerTextDrawHide(playerid,Zones[playerid]); 

If Zone_update is Global then put it under OnGamemodeInit and if not then put it under OnPlayerConnect
PHP код:
public OnplayerConnect(playerid)
{
       
SetTimerEx("Zone_Update"5001"i"playerid);

It would be better if u repeat it after every 1 sec not not in every 1/2 sec.
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)