Jump to content
  • 0

Probleme


AleX1321

Question

Am si eu o problema.

Mai exact,am comanda /mission dau odata imi zice numele misiuni dar pot sa mai iau misiunea de cate ori vreau cum pot face sa o ia doar odata.

[pawn] if(strcmp(cmd,"/mission",true)==0)

    {

        if(IsPlayerConnected(playerid))

        {

if(!PlayerToPoint(3.0,playerid,1381.0413,-1088.8511,27.3906))

{

    SendClientMessage(playerid, COLOR_GREY, "  You are not at the Bill Board !");

    return 1;

}

if(MissionPlayable == 0)

{

    SendClientMessage(playerid, COLOR_GREY, "  No Mission has been Activated !");

    return 1;

}

if(CP[playerid] > 0)

{

    SendClientMessage(playerid, COLOR_GREY, "  Firstly disable others checkpoint!");

    return 1;

}

if(PlayerInfo[playerid][pMissionNr] == MissionPlayable)

{

    SendClientMessage(playerid, COLOR_GREY, "  You've already completed the Active Mission !");

    return 1;

}

RingTone[playerid] = 20;

PlayerOnMission[playerid] = PlayMission[kNumber];

MissionCheckpoint[playerid] = 1;

format(string, sizeof(string), "~w~Mission started: ~n~~r~%s", PlayMission[kTitle]);

GameTextForPlayer(playerid, string, 5000, 3);

format(string, sizeof(string), "%s", PlayMission[kText1]);

SendClientMessage(playerid, COLOR_YELLOW2, string);

format(string, sizeof(string), "%s", PlayMission[kText2]);

SendClientMessage(playerid, COLOR_YELLOW2, string);

format(string, sizeof(string), "%s", PlayMission[kText3]);

SendClientMessage(playerid, COLOR_YELLOW2, string);

            new Float:VPos[3], Float:Rotation;

DestroyObject(GPSObject[playerid]);

GPSObject[playerid] = CreateDynamicObject(1318, 0, 0, 0, 0.0, 0.0, 0);

GetVehiclePos(GetPlayerVehicleID(playerid),VPos[0],VPos[1],VPos[2]);

Rotation = PointAngle(playerid, VPos[0],VPos[1], PlayMission[kCP1][0], PlayMission[kCP1][1]);

AttachObjectToVehicle(GPSObject[playerid], GetPlayerVehicleID(playerid), 0.0, 0.0, 1.5, 0.0, 90.0, Rotation);

if(PlayMission[kToggle] == 1)

            {

            SetPlayerCheckpoint(playerid, PlayMission[kCP1][0], PlayMission[kCP1][1], PlayMission[kCP1][2], 8);

            MissionLabel[playerid] = Create3DTextLabel("[Mission]", COLOR_ORANGE, 0.0, 0.0, 0.0, 61.0, 0);

            Attach3DTextLabelToPlayer(Text3D:MissionLabel[playerid], playerid, 0.0, 0.0, 0.47);

return 1;

}

}

        return 1;

    }[/pawn]

Si alta problema,intru in masina merg pana la checkpoint si cand ies,imi dispare brusc,care ar putea fii problema?

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.