Jump to content
  • 0

Ajutor MoveObject


bL3s

Question

Am facut in felul urmator

Intre toate acele forward am pus

forward barieralspdclose(playerid);

Apoi printre toate acele new..; am pus

new barieralspd;

Apoi la OnGameModeInit langa celelalte createobject

barieralspd = CreateObject(968, 1544.700439, -1630.897217, 13.093362, 0.0000, 89.3814, 90.8594);// Bariera LSPD

La OnPlayerCommandText am pus:

//-------------------------------[bariera LSPD]-----------------------------------------------------------//

if (strcmp("/opengate", cmdtext, true, 10) == 0)

{

if(PlayerInfo[playerid][pMember] >= 1 || PlayerInfo[playerid][pLeader] >= 1 || PlayerInfo[playerid][pMember] <= 3 || PlayerInfo[playerid][pLeader] <= 3)

{

if(PlayerToPoint(5.0,playerid,1544.2599,-1627.5999,13.3828))

  {

  MoveObject(barieralspd,1544.700439, -1630.897217, 13.093362,0.97);

    SendClientMessage(playerid,COLOR_BLUE,"You have opened the gate,it will be closed in 7 seconds!");

    SetTimer("barieralspdclose", 7000, 0);

      }

}

            return 1;

}

Apoi la sfarsitul gm-ului

public barieralspdclose(playerid)

{

      MoveObject(barieralspd,-1630.897217, 13.093362, 0.0000, 89.3814, 90.8594,0.97);

      return 1;

}

Bariera se misca foarte ciudat:| nu cum am aranjat-o eu in mta.. imi puteti spune ce am gresit?:D

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

Am rezolvat:) trebuia cu SetObjectRot

Dar acum primesc warning-urile astea

C:\DOCUME~1\bles\Desktop\SA-MP0~1.3C\GAMEMO~1\GODFAT~1.PWN(9584) : warning 202: number of arguments does not match definition

C:\DOCUME~1\bles\Desktop\SA-MP0~1.3C\GAMEMO~1\GODFAT~1.PWN(32843) : warning 202: number of arguments does not match definition

Liniile

SetObjectRot(barieralspd,0.0000, 0.0000, 90.8594,0.97);
- 9584

SetObjectRot(barieralspd,0.0000, 89.3814, 90.8594,5);
- 32843

Multumesc!:D

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.