multiple checkpoints, dynamiccp
#1

Hey there.
i been creating things with cp and testing on my own, everything worked fine for me. then i thought its time to test them with some other peoples. my friend helped me with that so i find out bug. when we are 2 in server checkpoints are working weird some checkpoints workd only for me some only for him and its random. if 1 cp worked before for me then after restart it can work only for him or again for me. how i said random. i used this tutorial for checkpoints
http://forum.sa-mp.com/showthread.ph...le+checkpoints
i downloaded newest streamer and updated netframework and still doesnt work.

there is my stuff
pawn Код:
new Checkpoint[31];
under onplayerspawn
pawn Код:
Checkpoint[0] = CreateDynamicCP(6766.6465,-1603.6685,-67.4805, 2, 20, -1, -1, 100);
        Checkpoint[1] = CreateDynamicCP(6766.6465,-1603.6685,-67.4805, 2, 20, -1, -1, 100);
        Checkpoint[2] = CreateDynamicCP(6766.6465,-1603.6685,-67.4805, 2, 20, -1, -1, 100);
        Checkpoint[3] = CreateDynamicCP(290.2285,-109.3505,1001.5156, 2, -1, -1, -1, 100); // range 2, in any virtualworld, interior and for every player
        Checkpoint[4] = CreateDynamicCP(294.9481,-83.9453,1001.5156, 2, -1, -1, -1, 100); // range 2, in any virtualworld, any interior, and for every player
        Checkpoint[5] = CreateDynamicCP(295.4534,-37.9067,1001.5156, 2, -1, -1, -1, 100); // range 2, in any virtualworld, any interior, and for every player
        Checkpoint[6] = CreateDynamicCP(312.3886,-165.5809,999.6010, 2, -1, -1, -1, 100); // range 2, in any virtualworld, any interior, and for every player
        Checkpoint[7] = CreateDynamicCP(-104.0802,-22.2124,1000.7188, 2, -1, -1, -1, 10); // SexShopCheckpoint range 2, in any virtualworld, any interior, and for every player
        Checkpoint[8] = CreateDynamicCP(-2235.5151,130.3567,1035.4141, 2, -1, -1, -1, 10); // SexShopCheckpoint range 2, in any virtualworld, any interior, and for every player
        Checkpoint[9] = CreateDynamicCP(2309.1421,-2.2615,26.7422, 2, 2, -1, -1, 10); //Bankas CP vw2
        Checkpoint[10] = CreateDynamicCP(2309.1422,-2.2615,26.7422, 2, 3, -1, -1, 10); //Bankas CP vw3
        Checkpoint[11] = CreateDynamicCP(2309.1431,-2.2615,26.7422, 2, 4, -1, -1, 10); //Bankas CP vw4
        Checkpoint[12] = CreateDynamicCP(1459.3221,-1010.4760,26.8438, 2, 0, -1, -1, 100); //Bankas 1 Ieeja LS
        Checkpoint[13] = CreateDynamicCP(2305.3320, -16.1942, 26.7422, 2, 2, -1, -1, 10); //Bankas 1 Izeja LS
        Checkpoint[14] = CreateDynamicCP(2446.8699, 2376.1128, 12.1635, 2, 0, -1, -1, 100); //Bankas 2 Ieeja LV
        Checkpoint[15] = CreateDynamicCP(2305.3321, -16.1942, 26.7422, 2, 3, -1, -1, 10); //Bankas 2 Izeja LV
        Checkpoint[16] = CreateDynamicCP(-1581.2764, 903.2833, 7.6953, 2, 0, -1, -1, 100); //Bankas 3 Ieeja SF
        Checkpoint[17] = CreateDynamicCP(2305.3322, -16.1942, 26.7422, 2, 4, -1, -1, 10); //Bankas 3 Izeja SF
        Checkpoint[18] = CreateDynamicCP(-1577.3334, 119.9252, 3.5495, 2, -1, -1, -1, 100); //Export
        Checkpoint[19] = CreateDynamicCP(822.3500, 2.0405, 1004.1797, 2, -1, -1, -1, 10); //InvShopLs
        Checkpoint[20] = CreateDynamicCP(1955.3748, 1017.6965, 992.4688, 2, -1, -1, -1, 10); //Bars
        Checkpoint[21] = CreateDynamicCP(-2653.1204, 1410.2084, 906.2734, 2, -1, -1, -1, 10); //Bars
        Checkpoint[22] = CreateDynamicCP(499.9641, -20.6701, 1000.6797, 2, -1, -1, -1, 10); //Bars
        Checkpoint[23] = CreateDynamicCP(498.4640, -76.0254, 998.7578, 2, -1, -1, -1, 10); //Bars
        Checkpoint[24] = CreateDynamicCP(-224.7854, 1403.8903, 27.7734, 2, -1, -1, -1, 10); //Bars
        Checkpoint[25] = CreateDynamicCP(498.4646, -76.0377, 998.7578, 2, -1, -1, -1, 10); //Bars
        Checkpoint[26] = CreateDynamicCP(499.9659, -20.6998, 1000.6797, 2, -1, -1, -1, 10); //Bars
        Checkpoint[27] = CreateDynamicCP(499.9659, -20.6629, 1000.6797, 2, -1, -1, -1, 10); //Bars
        Checkpoint[28] = CreateDynamicCP(498.4817, -76.0398, 998.7578, 2, -1, -1, -1, 10); //Bars
        Checkpoint[29] = CreateDynamicCP(1955.3748, 1017.6965, 992.4688, 2, -1, -1, -1, 10); //Bars
        Checkpoint[30] = CreateDynamicCP(2199.3247, 1603.7456, 1005.0625, 2, -1, -1, -1, 10); //Bars
onplayerenterdynamiccp
pawn Код:
if(checkpointid == Checkpoint[0])
        {
        SendClientMessage(playerid,COLOR_RED,"Kā, Tu љo atradi!!!?!");
        }
        if(checkpointid == Checkpoint[1])
        {
        SendClientMessage(playerid,COLOR_RED,"Kā, Tu љo atradi!!!?!");
        }
        if(checkpointid == Checkpoint[2])
        {
        SendClientMessage(playerid,COLOR_RED,"Kā, Tu љo atradi!!!?!");
        }
        if(checkpointid == Checkpoint[3])
        {
        ShowPlayerDialog(playerid, SHOP, DIALOG_STYLE_LIST, "{ff0000}Ieroču veikals.","{F7F6F2}Melee\nPistols\nSub-Machine Guns\nShotguns\nAssault Rifles\nRifles\nThrown\nArmour","Labi","Iziet");
        }
        if(checkpointid == Checkpoint[4])
        {
        ShowPlayerDialog(playerid, SHOP, DIALOG_STYLE_LIST, "{ff0000}Ieroču veikals.","{F7F6F2}Melee\nPistols\nSub-Machine Guns\nShotguns\nAssault Rifles\nRifles\nThrown\nArmour","Labi","Iziet");
        }
        if(checkpointid == Checkpoint[5])
        {
        ShowPlayerDialog(playerid, SHOP, DIALOG_STYLE_LIST, "{ff0000}Ieroču veikals.","{F7F6F2}Melee\nPistols\nSub-Machine Guns\nShotguns\nAssault Rifles\nRifles\nThrown\nArmour","Labi","Iziet");
        }
        if(checkpointid == Checkpoint[6])
        {
        ShowPlayerDialog(playerid, SHOP, DIALOG_STYLE_LIST, "{ff0000}Ieroču veikals.","{F7F6F2}Melee\nPistols\nSub-Machine Guns\nShotguns\nAssault Rifles\nRifles\nThrown\nArmour","Labi","Iziet");
        }
        if(checkpointid == Checkpoint[7])
        {
        ShowPlayerDialog(playerid, INVENTORY_SHOP, DIALOG_STYLE_LIST, "{ff0000}Inventāra veikals.","{F7F6F2}Maska   {C8D1CC}$500.000\n{F7F6F2}Medkit   {C8D1CC}$75.000\n{F7F6F2}Bruņas   {C8D1CC}$65.000","Labi","Iziet");
        }
        if(checkpointid == Checkpoint[8])
        {
        ShowPlayerDialog(playerid, INVENTORY_SHOP, DIALOG_STYLE_LIST, "{ff0000}Inventāra veikals.","{F7F6F2}Maska   {C8D1CC}$500.000\n{F7F6F2}Medkit   {C8D1CC}$75.000\n{F7F6F2}Bruņas   {C8D1CC}$65.000","Labi","Iziet");
        }
        if(checkpointid == Checkpoint[9])
        {
        ShowPlayerDialog(playerid, BANKA, DIALOG_STYLE_LIST, "{7FFF00}Bankas konts.","{F7F6F2}Naudas ievietoљana\n{F7F6F2}Naudas izņemљana\n{F7F6F2}Konta pārskats","Labi","Iziet");
        }
......... and so on
any idea why so?
Thanks.
+rep for every thoughtfull answer
Reply
#2

and where does it changes to the next checkpoint? I mean when you enter checkpoint number 1, it should disable the checkpoint number 1 and then set the player checkpoint to checkpoint number 2, and so on.
Reply
#3

why would them have to change? they each are for different things like for bank, car export, inventory shop.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)