Jump to content
  • 0

[Problema] Barrier PD


LorDSG

Question

De curand am creat o bariera la PD,dar am intampinat si o mica problema.

Am facut ca bariera sa se deschida atunci cand apas "CLICK".

Cand merg in preajma barierei si apas pe CLICK se intampla ceva ce nu trebuie.

Uitati o imagine ca sa intelegeti despre ce spun: Poza

Uitati si ce am facut:

[pawn]new pdbarrier;[/pawn]

[pawn]pdbarrier = CreateObject(968, 1544.69995, -1630.80005, 13.3, 0, 90, 90); // PD Barrier Closed[/pawn]

[pawn] if((newkeys == KEY_FIRE)&&(IsACop(playerid))&&(PlayerToPoint(15, playerid,1540.0269,-1626.8246,13.1042)))

{

  MoveObject(pdbarrier, 1544.69995, -1630.80005, 13.3, 0, 0, 90);

  SetTimer("BarrierClose",5000, 0);

}[/pawn]

[pawn]forward BarrierClose(playerid);[/pawn]

[pawn]public BarrierClose(playerid)

{

  MoveObject(pdbarrier, 1544.69995, -1630.80005, 13.3, 0, 90, 90)

  return 1;

}[/pawn]

Link to comment
Share on other sites

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