21.09.2012, 05:29
Hey guys,
My problem is: if I press the crouch key nothing happens, it should hid all the textdraws. Here is my script:
My problem is: if I press the crouch key nothing happens, it should hid all the textdraws. Here is my script:
pawn Код:
if (PRESSED(KEY_SECONDARY_ATTACK))
{
if(IsPlayerInRangeOfPoint(playerid,1.0, 286.58, -109.37, 1001.56))
{
TogglePlayerControllable(playerid,0);
SendClientMessage(playerid, COLOR_GREEN, "MP5 $7000");
ApplyAnimation(playerid,"INT_SHOP","shop_lookB",4.1,1,1,1,1,1,1);
TextDrawShowForPlayer(playerid, Text:Textdraw0);
TextDrawShowForPlayer(playerid, Text:Textdraw11);
TextDrawShowForPlayer(playerid, Text:Textdraw2);
TextDrawShowForPlayer(playerid, Text:Textdraw3);
TextDrawShowForPlayer(playerid, Text:Textdraw15);
TextDrawShowForPlayer(playerid, Text:Textdraw5);
TextDrawShowForPlayer(playerid, Text:Textdraw6);
TextDrawShowForPlayer(playerid, Text:Textdraw7);
TextDrawShowForPlayer(playerid, Text:Textdraw8);
if (PRESSED(KEY_CROUCH)) // <<<<< This is not working
{
TogglePlayerControllable(playerid,1);
TextDrawHideForPlayer(playerid, Text:Textdraw0);
TextDrawHideForPlayer(playerid, Text:Textdraw11);
TextDrawHideForPlayer(playerid, Text:Textdraw2);
TextDrawHideForPlayer(playerid, Text:Textdraw3);
TextDrawHideForPlayer(playerid, Text:Textdraw15);
TextDrawHideForPlayer(playerid, Text:Textdraw5);
TextDrawHideForPlayer(playerid, Text:Textdraw6);
TextDrawHideForPlayer(playerid, Text:Textdraw7);
TextDrawHideForPlayer(playerid, Text:Textdraw8);
}
}