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