Jump to content
  • 0

Question

Posted

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

7 answers to this question

Recommended Posts

  • Administrator
Posted

Uita-te atent la tutorialul asta.

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Posted

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

Posted

Am rezolvat:) trebuia cu SetObjectRot

Dar acum primesc warning-urile astea

Liniile

- 9584

- 32843

Multumesc!:D

Cineva?:)

Posted

SetObjectRot( objectid, RotX, RotY, RotZ );

La objectid nu pui barieralspd da pui id de la obiect

Ce id?

Am pus 968 - care este id-ul de la CreateObject.. dar tot primesc acele warnings:|

Posted

Ce id?

Am pus 968 - care este id-ul de la CreateObject.. dar tot primesc acele warnings:|

Punel asa si zimi daca apare warning ok

SetObjectRot(968, 1544.700439, -1630.897217, 13.093362, 0.0000, 89.3814, 90.8594);

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.