Jump to content
  • 0

[GF/RP] Ajutor problema gate


BoSs_S

Question

Salut am o problema cu o poarte am mai facut porti si mi-au mers si pe aceasta in acelasi gen am facut-o dar nu imi merge cand dau click (comanda portii) imi arata ca poarta se va inchide in 6 secunde dar doar atat iar poarta nu se misca deloc . si nu am adauga-o la mapa dupa ea cu numele agate33 == .....  si numi merge daca ma puteti ajuta..

new agate33;

//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=inchideagate33=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

public inchidereagate33(playerid)
{
      MoveDynamicObject(agate33,-64.900001525879, -1948.8000488281, 5.0,5);
      PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960);
      return 1;
}

if (newkeys==KEY_FIRE)
{
if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)//agate33
{
if (IsPlayerInRangeOfPoint(playerid,10.0,-64.900001525879, -1948.9000244141, 10.89999961853))
{
SetTimer("inchidereagate33", 6000, 0);
PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960);
MoveObject(agate33,-64.900001525879, -1948.8000488281, 5.0,5);
SendClientMessage(playerid, 0x00FFFFFF,"* Poarta se va inchide in 6 secunde! Va uram o zi placuta.");
return 1;
}
}
}


si la CreateDynamicObject obiectele si ultima 
agate33 == CreateDynamicObject(980, -64.900001525879, -1948.8000488281, 10.60000038147, 0, 0, 325.74462890625);

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

bine inteles ca  u se va deschide pentru ca ai pus aici doar x,y [pawn]MoveObject(agate33,-64.900001525879, -1948.8000488281, 5.0,5);[/pawn]

trebuia sa pui si z pentru ca z este inaltimea. Refa coordonatele porti

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

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.