- 0
[Problema] Barrier PD
-
Similar Content
-
- 1 reply
- 101 views
-
- 2 answers
- 922 views
-
Problema turf
By Soryn.,
- 3 answers
- 479 views
-
- 0 replies
- 200 views
-
- 2 replies
- 396 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
LorDSG
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