Jump to content
  • 0

Ajutor:)!2


fallenangel

Question

Salut! nu vreau sa fiu insistent dar celalalt topic mi l'a inchis Tzaks. El mi'a zis sa fac asta [pawn]public OnPlayerEnterCheckpoint(playerid)

{

new string[128];

new string2[128];

if(IsOnFarmActivity[playerid] == 1)

{

if(IsPlayerInRangeOfPoint(playerid, 2, -365.7904,-1436.6388,25.6908))

{

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

    DisablePlayerCheckpoint(playerid);

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

}

if(IsPlayerInRangeOfPoint(playerid, 2, -366.1564,-1439.6754,25.6896))

{

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

DisablePlayerCheckpoint(playerid);

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

}

  if(IsPlayerInRangeOfPoint(playerid, 2, -334.4943,-1469.3635,15.3634))

{

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

DisablePlayerCheckpoint(playerid);

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

}

if(IsPlayerInRangeOfPoint(playerid, 2, -322.8557,-1469.3644,13.0768))

{

    DisablePlayerCheckpoint(playerid);

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

}

  if(IsPlayerInRangeOfPoint(playerid, 2, -303.5830,-1470.0044,9.1592))

{

    DisablePlayerCheckpoint(playerid);

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

}

  if(IsPlayerInRangeOfPoint(playerid, 2, -285.1618,-1470.5106,5.8997))

{

    DisablePlayerCheckpoint(playerid);

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

}

  if(IsPlayerInRangeOfPoint(playerid, 2, -261.9712,-1471.1477,4.2328))

{

    DisablePlayerCheckpoint(playerid);

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

}

  if(IsPlayerInRangeOfPoint(playerid, 2, -221.5824,-1472.2571,6.9051))

{

    DisablePlayerCheckpoint(playerid);

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

}

if(IsPlayerInRangeOfPoint(playerid, 2, -217.0699,-1478.2451,7.7682))

{

    DisablePlayerCheckpoint(playerid);

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

}

if(IsPlayerInRangeOfPoint(playerid, 2, -226.8473,-1479.8517,6.2911))

{

    DisablePlayerCheckpoint(playerid);

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

}

        if(IsPlayerInRangeOfPoint(playerid, 2, -240.2720,-1482.8765,5.6927))

{

    DisablePlayerCheckpoint(playerid);

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

}

  if(IsPlayerInRangeOfPoint(playerid, 2, -269.3770,-1485.0189,4.7776))

{

    DisablePlayerCheckpoint(playerid);

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

}

  if(IsPlayerInRangeOfPoint(playerid, 2, -302.9834,-1487.4932,9.7881))

{

    DisablePlayerCheckpoint(playerid);

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

}

  if(IsPlayerInRangeOfPoint(playerid, 2, -306.0575,-1493.1245,10.5976))

{

    DisablePlayerCheckpoint(playerid);

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

}

  if(IsPlayerInRangeOfPoint(playerid, 2, -294.9866,-1494.3762,8.6860))

{

    DisablePlayerCheckpoint(playerid);

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

}

if(IsPlayerInRangeOfPoint(playerid, 2, -266.3333,-1496.2627,5.5129))

{

    DisablePlayerCheckpoint(playerid);

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

}

if(IsPlayerInRangeOfPoint(playerid, 2, -247.1336,-1496.9071,6.8790))

{

    DisablePlayerCheckpoint(playerid);

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

}

if(IsPlayerInRangeOfPoint(playerid, 2, -223.8871,-1497.4183,8.3890))

{

    DisablePlayerCheckpoint(playerid);

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

}...[/pawn]

Si s'a grabit sa dea topic closed fara sa se gandeasca k poate am facut deja si nu are efect .. va rog nu mai dati topic closed asa repede

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Faci o variabila la fiecare checkpoint

[pawn]

new CP[MAX_PLAYERS];

[/pawn]

La OnPlayerConnect pui

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

La o comanda sau unde pui tu

[pawn]

CP[playerid] = 1;

SetPlayerCheckpoint(playerid, X, Y, Z);[/pawn]

La OnPlayerEnterCheckpoint

[pawn]

if(CP[playerid]==1)

{

DisablePlayerCheckPoint(playerid);

CP[playerid] = 2;

SetPlayerCheckpoint(playerid, X, Y, Z);[/pawn]

Si tot asa.

Daca ai fi citit ce am scris acolo nu ai mai fi facut topicul asta cu acelasi titlu.

Citeste regulamentul,titlul trebuie sa corespunda cu problema.

gXvsYS
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.