12.02.2014, 08:15
Quote:
Where are using this? And when do you want the textdraws to dissapear OnPlayerSpawn or what?
|
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; }