AnyHelp?
#1

Hello i've created a menu and its worked but the problem when i've press 1 its worked too but WHEN Press LMB The Textdraws is not destroyed Why?? Sorry I Dont know how to create a KEY_FIRE For Destroy it can you help me?!

PHP код:
public OnPlayerText(playeridtext[])
{
    if(
InMenu[playerid] == 1)
    {
       if(
strval(text) == 1)
       {
          
TextDrawHideForPlayer(playeridTextdraw66);
          
TextDrawHideForPlayer(playeridTextdraw67);
          
TextDrawHideForPlayer(playeridTextdraw68);
          
TextDrawHideForPlayer(playeridTextdraw69);
          
TextDrawHideForPlayer(playeridTextdraw70);
          
TextDrawHideForPlayer(playeridTextdraw71);
          
TextDrawHideForPlayer(playeridTextdraw72);
          
TextDrawHideForPlayer(playeridTextdraw73);
          
TextDrawHideForPlayer(playeridTextdraw74);
          
TextDrawHideForPlayer(playeridTextdraw75);
          
TextDrawHideForPlayer(playeridTextdraw76);
          
TextDrawHideForPlayer(playeridTextdraw77);
          
TextDrawHideForPlayer(playeridTextdraw78);
          
TextDrawHideForPlayer(playeridTextdraw79);
          
TextDrawHideForPlayer(playeridTextdraw80);
          
TextDrawHideForPlayer(playeridTextdraw81);
          
TextDrawHideForPlayer(playeridTextdraw82);
          
TextDrawHideForPlayer(playeridTextdraw83);
          
TextDrawHideForPlayer(playeridTextdraw84);
          
TextDrawHideForPlayer(playeridTextdraw85);
          
TextDrawHideForPlayer(playeridTextdraw86);
          
TextDrawHideForPlayer(playeridTextdraw87);
          
TextDrawHideForPlayer(playeridTextdraw88);
          
TextDrawHideForPlayer(playeridTextdraw89);
          
TextDrawHideForPlayer(playeridTextdraw90);
          
TextDrawHideForPlayer(playeridTextdraw91);
          
TextDrawHideForPlayer(playeridTextdraw92);
          
TextDrawHideForPlayer(playeridTextdraw93);
          
TextDrawHideForPlayer(playeridTextdraw94);
          
TextDrawHideForPlayer(playeridTextdraw95);
          
TextDrawHideForPlayer(playeridTextdraw96);
          
TextDrawHideForPlayer(playeridTextdraw97);
          
TextDrawHideForPlayer(playeridTextdraw98);
          
TextDrawHideForPlayer(playeridTextdraw99);
          
TextDrawHideForPlayer(playeridTextdraw100);
          
TextDrawHideForPlayer(playeridTextdraw101);
          
TextDrawHideForPlayer(playeridTextdraw102);
          
TextDrawHideForPlayer(playeridTextdraw103);
          
TextDrawHideForPlayer(playeridTextdraw104);
          
TextDrawHideForPlayer(playeridTextdraw105);
          
TextDrawShowForPlayer(playeridTextdraw106);
          
TextDrawShowForPlayer(playeridTextdraw107);
          
TextDrawShowForPlayer(playeridTextdraw108);
          
TextDrawShowForPlayer(playeridTextdraw109);
          
TextDrawShowForPlayer(playeridTextdraw110);
          
TextDrawShowForPlayer(playeridTextdraw111);
          
TextDrawShowForPlayer(playeridTextdraw112);
          
TextDrawShowForPlayer(playeridTextdraw113);
          
TextDrawShowForPlayer(playeridTextdraw114);
          
TextDrawShowForPlayer(playeridTextdraw115);
          
TextDrawShowForPlayer(playeridTextdraw116);
          
TextDrawShowForPlayer(playeridTextdraw117);
          
TextDrawShowForPlayer(playeridTextdraw118);
          
TextDrawShowForPlayer(playeridTextdraw119);
          
TextDrawShowForPlayer(playeridTextdraw120);
          
TextDrawShowForPlayer(playeridTextdraw121);
          
TextDrawShowForPlayer(playeridTextdraw122);
          
TextDrawShowForPlayer(playeridTextdraw123);
          
TextDrawShowForPlayer(playeridTextdraw124);
          
TextDrawShowForPlayer(playeridTextdraw125);
          
TextDrawShowForPlayer(playeridTextdraw126);
          
TextDrawShowForPlayer(playeridTextdraw127);
          
TextDrawShowForPlayer(playeridTextdraw128);
          
TextDrawShowForPlayer(playeridTextdraw129);
          
TextDrawShowForPlayer(playeridTextdraw130);
          
TextDrawShowForPlayer(playeridTextdraw131);
          
TextDrawShowForPlayer(playeridTextdraw132);
          
TextDrawShowForPlayer(playeridTextdraw133);
          
TextDrawShowForPlayer(playeridTextdraw134);
          
TextDrawShowForPlayer(playeridTextdraw135);
          
TextDrawShowForPlayer(playeridTextdraw136);
          
TextDrawShowForPlayer(playeridTextdraw137);
          
TextDrawShowForPlayer(playeridTextdraw138);
          
TextDrawShowForPlayer(playeridTextdraw139);
          
InMenu[playerid] =0;
          return 
0;
       } 
I've tried in OnPlayerKeyStateChange Do that but its not worked.

PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if (
PRESSED(KEY_FIRE))
    {
        if (
InMenu[playerid] == 1)
        {
           
TextDrawHideForPlayer(playeridTextdraw98);
        }
    }
    return 
1;

Reply


Messages In This Thread
AnyHelp? - by Thanks - 31.10.2017, 11:52
Re: AnyHelp? - by zMason - 31.10.2017, 15:02
Re: AnyHelp? - by Swankeh - 31.10.2017, 17:36
Re: AnyHelp? - by Thanks - 31.10.2017, 20:16
Re: AnyHelp? - by Lucases - 31.10.2017, 20:46
Re: AnyHelp? - by Thanks - 02.11.2017, 18:01

Forum Jump:


Users browsing this thread: 1 Guest(s)