Jump to content
  • 0

probleme la porti "gate!


Saringan_cs

Question

poi tre sa dau de vreo 3-4 ori /opengatetaxi sa mi si deschida .. si cateodata imi ramane blocata sus si tre sa dau  /opengatetaxi sa mi se inchida ..

Aici e la OnPlayerCommandText

[pawn]if(strcmp(cmdtext, "/opengatetaxi", true) == 0)

{

  if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)

  {

if(PlayerToPoint(10,playerid,1809.9000244141, -1889.8000488281, 20.200000762939))

{

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

          MoveObject(gatetaxi,1809.9000244141, -1889.8000488281, 15.199999809265,5.0);

          SetTimerEx("gatetaxiclose",5000,false,"d",playerid);

          format(string, sizeof(string), "* %s Has open the Taxi gate *", sendername);

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

        }

      }

    }[/pawn]

Forward

[pawn]forward gatetaxiclose();[/pawn]

CreateObject

[pawn]gatetaxi = CreateObject(980, 1809.9000244141, -1889.8000488281, 15.199999809265, 0, 0, 270);[/pawn]

Acici in jos la Public

[pawn]public gatetaxiclose() //

{

  MoveObject(gatetaxi,1809.9000244141, -1889.8000488281, 20.200000762939,5.0);

}[/pawn]

Ce am facut gresit please help me

Link to comment
Share on other sites

4 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.