Jump to content
  • 0

Problema Checkpoint


fallenangel

Question

Stiu k iar da TzaKs topic closed dpa o solutie salvatoare d'a lui dar pana akm nikiuna nu a mers ori is eo but si nu inteleg ori mai trebuia ceva.. fii atent :

Definitia:

[pawn]new IsOnFarmActivity[MAX_PLAYERS];[/pawn]

OnPlayerConnect:

[pawn]IsOnFarmActivity[playerid] = 0;[/pawn]

Comanda:

[pawn]if(!strcmp(cmdtext, "/startfarmact", true)) // by LordMan

{

    if(IsPlayerConnected(playerid))

    {

if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 531)

{

    SendClientMessage(playerid, COLOR_GREY, "  Nu Esti In Tractor.");

    return 1;

}

        if(PlayerInfo[playerid][pJob] == 18)

        {

        IsOnFarmActivity[playerid] = 1;

        SetPlayerCheckpoint(playerid, -365.7904,-1436.6388,25.6908, 5.0);

        }

        new y, m, d;

new h,mi,s;

getdate(y,m,d);

gettime(h,mi,s);

format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /startharvest",d,m,y,h,mi,s,sendername);

CommandLog(string);

    }

    return 1;

}

[/pawn]

si OnPlayerEnterCheckpoint:

[pawn]if(IsOnFarmActivity[playerid] == 1)

{

SCM(playerid, COLOR_GREEN, "Du'te si agata prasitoarea de tractor!")

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 2;

SetPlayerCheckpoint(playerid, -366.1564,-1439.6754,25.6896, 5.0);

}

if(IsOnFarmActivity[playerid] == 2)

{

SetPlayerCheckpoint(playerid, -334.4943,-1469.3635,15.3634, 5.0);

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 3;

AttachTrailerToVehicle(prasi[0], GetPlayerVehicleID(playerid))

}

if(IsOnFarmActivity[playerid] == 3)

{

SCM(playerid, COLOR_YELLOW, "Ara terenul!");

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 4;

SetPlayerCheckpoint(playerid, -322.8557,-1469.3644,13.0768, 5.0);

}

if(IsOnFarmActivity[playerid] == 4)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 5;

SetPlayerCheckpoint(playerid, -303.5830,-1470.0044,9.1592, 5.0);

}

if(IsOnFarmActivity[playerid] == 5)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 6;

SetPlayerCheckpoint(playerid, -285.1618,-1470.5106,5.8997, 5.0);

}

if(IsOnFarmActivity[playerid] == 6)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 7;

SetPlayerCheckpoint(playerid, -261.9712,-1471.1477,4.2328, 5.0);

}

if(IsOnFarmActivity[playerid] == 7)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 8;

SetPlayerCheckpoint(playerid, -221.5824,-1472.2571,6.9051, 5.0);

}

if(IsOnFarmActivity[playerid] == 8)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 9;

SetPlayerCheckpoint(playerid, -217.0699,-1478.2451,7.7682, 5.0);

}

if(IsOnFarmActivity[playerid] == 9)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 10;

SetPlayerCheckpoint(playerid, -226.8473,-1479.8517,6.2911, 5.0);

}

if(IsOnFarmActivity[playerid] == 10)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 11;

SetPlayerCheckpoint(playerid, -240.2720,-1482.8765,5.6927, 5.0);

}

if(IsOnFarmActivity[playerid] == 11)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 12;

SetPlayerCheckpoint(playerid, -269.3770,-1485.0189,4.7776, 5.0);

}

if(IsOnFarmActivity[playerid] == 12)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 13;

SetPlayerCheckpoint(playerid, -302.9834,-1487.4932,9.7881, 5.0);

}

if(IsOnFarmActivity[playerid] == 13)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 14;

SetPlayerCheckpoint(playerid, -306.0575,-1493.1245,10.5976, 5.0);

}

if(IsOnFarmActivity[playerid] == 14)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 15;

SetPlayerCheckpoint(playerid, -294.9866,-1494.3762,8.6860, 5.0);

}

if(IsOnFarmActivity[playerid] == 15)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 16;

SetPlayerCheckpoint(playerid, -266.3333,-1496.2627,5.5129, 5.0);

}

if(IsOnFarmActivity[playerid] == 16)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 17;

SetPlayerCheckpoint(playerid, -247.1336,-1496.9071,6.8790, 5.0);

}

if(IsOnFarmActivity[playerid] == 17)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 18;

SetPlayerCheckpoint(playerid, -223.8871,-1497.4183,8.3890, 5.0);

}

if(IsOnFarmActivity[playerid] == 18)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 19;

SetPlayerCheckpoint(playerid, -220.2149,-1506.0966,7.9667, 5.0);

}

if(IsOnFarmActivity[playerid] == 19)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 20;

SetPlayerCheckpoint(playerid, -229.1544,-1509.1958,7.1518, 5.0);

}

if(IsOnFarmActivity[playerid] == 20)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 21;

SetPlayerCheckpoint(playerid, -244.2527,-1510.4683,6.9976, 5.0);

}

if(IsOnFarmActivity[playerid] == 21)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 22;

SetPlayerCheckpoint(playerid, -270.0182,-1512.1962,5.1547, 5.0);

}

if(IsOnFarmActivity[playerid] == 22)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 23;

SetPlayerCheckpoint(playerid, -310.6325,-1513.8102,11.5965, 5.0);

}

if(IsOnFarmActivity[playerid] == 23)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 24;

SetPlayerCheckpoint(playerid, -317.9951,-1539.9579,13.0802, 5.0);

}

if(IsOnFarmActivity[playerid] == 24)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 25;

SetPlayerCheckpoint(playerid, -278.4424,-1540.9253,5.5277, 5.0);

}

if(IsOnFarmActivity[playerid] == 25)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 26;

SetPlayerCheckpoint(playerid, -237.6636,-1540.0670,6.0591, 5.0);

}

if(IsOnFarmActivity[playerid] == 26)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 27;

SetPlayerCheckpoint(playerid, -236.3869,-1550.9609,4.8272, 5.0);

}

if(IsOnFarmActivity[playerid] == 27)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 28;

SetPlayerCheckpoint(playerid, -257.3571,-1552.8185,3.7430, 5.0);

}

if(IsOnFarmActivity[playerid] == 28)

{

    DisablePlayerCheckpoint(playerid);

    IsOnFarmActivity[playerid] = 29;

SetPlayerCheckpoint(playerid, -282.7652,-1552.8102,6.2468, 5.0);

}

if(IsOnFarmActivity[playerid] == 29)

{

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 30;

SetPlayerCheckpoint(playerid, -313.9299,-1555.2638,12.7137, 5.0);

}

if(IsOnFarmActivity[playerid] == 30)

{

SetVehicleToRespawn(prasi[0]);

DisablePlayerCheckpoint(playerid);

IsOnFarmActivity[playerid] = 31;

SCM(playerid, COLOR_BLUE, "Good Job!Acum du'te sa mulgi vacile!");

  SetPlayerCheckpoint(playerid, -186.4549,-1428.1368,3.7751, 5.0);

}[/pawn]

macar da'mi add pe mess sa nu mai fac atatea topicuri daca tot dai topic closed..

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

imi cer scuze nu vreau sa fiu sacaitor dar intelegeti k ma grabesc si nu am la cne altcineva sa apelez.. uite'te acl k am pus exact cum ai zis tu dar in general fr sa umblu in onplayerentercheckpoint knd intrii in el tre sa dispara.. asta nici macar nu dispare dapoi sa apara altu mai in fatza

Link to comment
Share on other sites

imi cer scuze nu vreau sa fiu sacaitor dar intelegeti k ma grabesc si nu am la cne altcineva sa apelez.. uite'te acl k am pus exact cum ai zis tu dar in general fr sa umblu in onplayerentercheckpoint knd intrii in el tre sa dispara.. asta nici macar nu dispare dapoi sa apara altu mai in fatza

1. Vorbeste cu noi in Limba Romana

2. Nu veni cu halu de vorbe "urgent plz" tralala

3. Lock poate data viitoare faci un post mai calumea si adevcat

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.