Jump to content
  • 0

Problema usa


BlackWolf

Question

Am o problema cu o usa ! Apas pe SPACE si nu mi se deschide usa !

Uitati codul :

[pawn] if(newkeys == KEY_SPRINT)

{

if(IsPlayerConnected(playerid))

{

if(IsACop(playerid))

{

    if (PlayerToPoint(2, playerid,247.7196,75.8517,1003.6406))

{

    if(pdgate1check == 1)

    {

        MoveDynamicObject(pdgate1,248.1533203125, 74.9296875, 1002.640625, 2.0);

      GetPlayerName(playerid, sendername, sizeof(sendername));

      format(string, sizeof(string), "* %s scoate un card si inchide usa cu el.", sendername);

      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

      pdgate1check = 0;

    }

    else

    {

    MoveDynamicObject(pdgate1,248.13235473633, 73.64102935791, 1002.640625, 2.0);

      GetPlayerName(playerid, sendername, sizeof(sendername));

      format(string, sizeof(string), "* %s scoate un card si deschide usa cu el.", sendername);

      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

      pdgate1check = 1;

      }

}

else if (PlayerToPoint(2, playerid,246.3366,72.1690,1003.6406))

{

    if(pdgate2check == 1)

    {

        MoveDynamicObject(pdgate2_2,244.9296875, 72.59375, 1002.640625, 2.0);

        MoveDynamicObject(pdgate2_1,247.7861328125, 72.6396484375, 1002.640625, 2.0);

      GetPlayerName(playerid, sendername, sizeof(sendername));

      format(string, sizeof(string), "* %s scoate un card si inchide usa cu el.", sendername);

      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

      pdgate2check = 0;

    }

    else

    {

                            MoveDynamicObject(pdgate2_1,248.60148620605, 72.538047790527, 1002.6899414063, 2.0);

    MoveDynamicObject(pdgate2_2,244.23402404785, 72.526748657227, 1002.640625, 2.0);

      GetPlayerName(playerid, sendername, sizeof(sendername));

      format(string, sizeof(string), "* %s scoate un card si deschide usa cu el.", sendername);

      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

      pdgate2check = 1;

      }

}

else if (PlayerToPoint(2, playerid,250.3857,63.3842,1003.6406))

{

    if(pdgate3check == 1)

    {

        MoveDynamicObject(pdgate3,250.66796875, 62.3876953125, 1002.640625, 2.0);

      GetPlayerName(playerid, sendername, sizeof(sendername));

      format(string, sizeof(string), "* %s scoate un card si inchide usa cu el.", sendername);

      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

      pdgate3check = 0;

    }

    else

    {

                            MoveDynamicObject(pdgate3,250.6474609375, 61.1298828125, 1002.640625, 2.0);

      GetPlayerName(playerid, sendername, sizeof(sendername));

      format(string, sizeof(string), "* %s scoate un card si deschide usa cu el.", sendername);

      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

      pdgate3check = 1;

      }

}

else if (PlayerToPoint(2, playerid,226.3167,75.7066,1005.0391))

{

    if(pdgate4check == 1)

    {

        MoveDynamicObject(pdgate4,226.16796875, 74.9306640625, 1004.0390625, 2.0);

      GetPlayerName(playerid, sendername, sizeof(sendername));

      format(string, sizeof(string), "* %s scoate un card si inchide usa cu el.", sendername);

      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

      pdgate4check = 0;

    }

    else

    {

                            MoveDynamicObject(pdgate4,226.14428710938, 73.621040344238, 1004.0390625, 2.0);

      GetPlayerName(playerid, sendername, sizeof(sendername));

      format(string, sizeof(string), "* %s scoate un card si deschide usa cu el.", sendername);

      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

      pdgate4check = 1;

      }

}

else if (PlayerToPoint(2, playerid,219.9524,74.2027,1005.0391))

{

    if(pdgate5check == 1)

    {

        MoveDynamicObject(pdgate5,219.599609375, 74.8271484375, 1006.6759033203, 2.0);

      GetPlayerName(playerid, sendername, sizeof(sendername));

      format(string, sizeof(string), "* %s scoate un card si inchide usa cu el.", sendername);

      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

      pdgate5check = 0;

    }

    else

    {

                            MoveDynamicObject(pdgate5,219.59765625, 74.8232421875, 1009.1759033203, 2.0);

      GetPlayerName(playerid, sendername, sizeof(sendername));

      format(string, sizeof(string), "* %s scoate un card si deschide usa cu el.", sendername);

      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

      pdgate5check = 1;

      }

}

else if (PlayerToPoint(2, playerid,259.1493,90.9155,1002.4453))

{

    if(pdgate6check == 1)

    {

        MoveDynamicObject(pdgate6,259.0751953125, 91.8359375, 1004.0821533203, 2.0);

      GetPlayerName(playerid, sendername, sizeof(sendername));

      format(string, sizeof(string), "* %s scoate un card si inchide usa cu el.", sendername);

      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

      pdgate6check = 0;

    }

    else

    {

                            MoveDynamicObject(pdgate6,259.08660888672, 91.831809997559, 1006.3321533203, 2.0);

      GetPlayerName(playerid, sendername, sizeof(sendername));

      format(string, sizeof(string), "* %s scoate un card si deschide usa cu el.", sendername);

      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

      pdgate6check = 1;

      }

}

else if (PlayerToPoint(2, playerid,247.9505,86.8508,1003.6406))

{

    if(pdgate7check == 1)

    {

        MoveDynamicObject(pdgate7,247.962890625, 87.8359375, 1005.2774658203, 2.0);

      GetPlayerName(playerid, sendername, sizeof(sendername));

      format(string, sizeof(string), "* %s scoate un card si inchide usa cu el.", sendername);

      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

      pdgate7check = 0;

    }

    else

    {

                            MoveDynamicObject(pdgate7,247.9786529541, 87.8359375, 1007.5274658203, 2.0);

      GetPlayerName(playerid, sendername, sizeof(sendername));

      format(string, sizeof(string), "* %s scoate un card si deschide usa cu el.", sendername);

      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

      pdgate7check = 1;

      }

}

else if (PlayerToPoint(2, playerid,222.0507,79.7589,1005.0391))

{

    if(pdgate8check == 1)

    {

        MoveDynamicObject(pdgate8,222.0888671875, 80.7578125, 1006.6759033203, 2.0);

      GetPlayerName(playerid, sendername, sizeof(sendername));

      format(string, sizeof(string), "* %s scoate un card si inchide usa cu el.", sendername);

      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

      pdgate8check = 0;

    }

    else

    {

                            MoveDynamicObject(pdgate8,222.09368896484, 80.758964538574, 1008.9259033203, 2.0);

      GetPlayerName(playerid, sendername, sizeof(sendername));

      format(string, sizeof(string), "* %s scoate un card si deschide usa cu el.", sendername);

      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

      pdgate8check = 1;

      }

}

}

}

}[/pawn]

Va rog sa ma ajutati pentru ca nu am idee ce are !

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.