SA-MP Forums Archive
Not Work (TextDraw) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Not Work (TextDraw) (/showthread.php?tid=494202)



Not Work (TextDraw) - alishvasis - 12.02.2014

Not Hiden My Textdraw ? Why

Код:
			if (newkeys == KEY_WALK)
			{
			    if(Showing[playerid] == 1)
				{
			    	TextDrawHideForPlayer(playerid, Textdraw1);
					TextDrawHideForPlayer(playerid, Textdraw2);
					TextDrawHideForPlayer(playerid, Textdraw4);
					TextDrawHideForPlayer(playerid, Textdraw5);
					TextDrawHideForPlayer(playerid, Textdraw6);
					return 1;
				}
			}
			if (newkeys == KEY_WALK)
			{
			    if(Showing[playerid] == 0)
				{
			    	TextDrawHideForPlayer(playerid, Textdraw1);
					TextDrawHideForPlayer(playerid, Textdraw2);
					TextDrawHideForPlayer(playerid, Textdraw4);
					TextDrawHideForPlayer(playerid, Textdraw5);
					TextDrawHideForPlayer(playerid, Textdraw6);
					return 1;
				}
			}



Re: Not Work (TextDraw) - alishvasis - 12.02.2014

Any Body In Forum?!


Re: Not Work (TextDraw) - SwisherSweet - 12.02.2014

Where are using this? And when do you want the textdraws to dissapear OnPlayerSpawn or what?


Re: Not Work (TextDraw) - alishvasis - 12.02.2014

Quote:
Originally Posted by SwisherSweet
Посмотреть сообщение
Where are using this? And when do you want the textdraws to dissapear OnPlayerSpawn or what?
In Player Enter Checkpoint SHow Textdraw
But i Dont know How TO hiden text draw This is Code :
Код:
    if(getCheckpointType(playerid) == CP_CityHallMain)
	{
	    if(IsPlayerInAnyVehicle(playerid))
	    {
	        SendClientMessage(playerid,COLOR_RED,"You must exit your vehicle before entering a checkpoint.");
	        return 1;
		}
        if(Showing[playerid] == 1)
		{
			Showing[playerid] = 0;
			TextDrawHideForPlayer(playerid, Textdraw1);
			TextDrawHideForPlayer(playerid, Textdraw2);
			TextDrawHideForPlayer(playerid, Textdraw4);
			TextDrawHideForPlayer(playerid, Textdraw5);
			TextDrawHideForPlayer(playerid, Textdraw6);
		}
		else
		{
			Showing[playerid] = 1;
			TextDrawShowForPlayer(playerid, Textdraw1);
			TextDrawShowForPlayer(playerid, Textdraw2);
			TextDrawShowForPlayer(playerid, Textdraw4);
			TextDrawShowForPlayer(playerid, Textdraw5);
			TextDrawShowForPlayer(playerid, Textdraw6);
		}
	    return 1;
	}



Re: Not Work (TextDraw) - alishvasis - 12.02.2014

Bump