TextDraw will not be hided
#1

This is what i got...

Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
	//if(newstate == PLAYER_STATE_ONFOOT) IT's from my speedo 
	//{
    //TextDrawHideForPlayer(playerid, Speedo[playerid]);
	//}
	if(newstate == PLAYER_STATE_DRIVER)
	{
	TextDrawHideForPlayer(playerid, Servertime);
  }
	return 1;
}
Код:
public ServerTime()
{
	 for(new i= 0; i < MAX_PLAYERS; i++)
	 {
		 if(IsPlayerConnected(i) == 1)
		 {
		 TextDrawDestroy(Servertime);
		 }
	 }

	 for(new i = 0; i < MAX_PLAYERS; i++)
	 {
	  if(IsPlayerConnected(i) == 1)
	  {
	  new Hour, Minute, Second;
    gettime(Hour, Minute, Second);
    format(string,sizeof(string),"Clock:%d,%d,%d",Hour,Minute,Second);
    Servertime = TextDrawCreate(540.0,440.0,string);
    TextDrawColor(Servertime,COLOR_PURPLE);
    TextDrawFont(Servertime,3);
    TextDrawLetterSize(Servertime,0.5,1.0);
    TextDrawSetShadow(Servertime,0);
    TextDrawSetOutline(Servertime,1);

    TextDrawShowForAll(Servertime);
	  }
	 }

}
When i enter a vehicle the TextDraw "Servertime" wouldn't go away ^^

Help pLs
Reply


Messages In This Thread
TextDraw will not be hided - by Bearfist - 05.05.2009, 20:28
Re: TextDraw will not be hided - by Divine - 05.05.2009, 21:28
Re: TextDraw will not be hided - by Rks25 - 05.05.2009, 21:46
Re: TextDraw will not be hided - by Weirdosport - 05.05.2009, 22:10

Forum Jump:


Users browsing this thread: 3 Guest(s)