Jump to content

Question

Posted

Salut!

Am o problema la porti .. mereu cand deschid serverul prima poarta care o deschid din server nu se inchide.. trebuie sa scriu de 2 ori comanda ca sa se inchida apoi merg toate normal. am incercat mai multe moduri pt o poarta da tot la fel face.. de la ce poate fi?

2 answers to this question

Recommended Posts

Posted

[pawn]if(strcmp(cmd,"/vamals",true) == 0)

  {

if(PlayerToPoint(5.0,playerid,63.0594,-1541.0732,5.0610))

{

MoveObject(vama2,67.909485, -1541.125732, -0.773268, 5.5);

        SetTimer("GateClose", 2000, 0);

        SendClientMessage(playerid, COLOR_BLUE,"Ai platit Vama 100$! In 5 secunde Vama se va inchide");

        GivePlayerMoney(playerid,-100);

        return 1;

   

    }

  }[/pawn]

[pawn]public GateClose()

{

    MoveObject (vama1,68.328880, -1526.939087, 7.015985, 2.5);

    MoveObject (vama2,67.909485, -1541.125732, 7.076734, 2.5);

    return 1;

}[/pawn]

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.