Dynamic checkpoints
#1

pawn Код:
if(vmcheckpoints[playerid][0] == 1)
            {
                DestroyDynamicRaceCP(checkpointid);
                SetPlayerCheckpoint(playerid,-2019.8148,-145.6181,35.3203, 6);
                CreateDynamicRaceCP(0,-2019.8148,-145.6181,35.3203,-2021.3827,-137.9689,35.3015, 3, 0, 0, playerid, 200.0);//1
                vmcheckpoints[playerid][0] = 0;
                vmcheckpoints[playerid][1] = 1;
                GameTextForPlayer(playerid, "(1/31)", 3000, 3);
                return 1;

            }
            if(vmcheckpoints[playerid][1] == 1)
            {
                DestroyDynamicRaceCP(checkpointid);
                SetPlayerCheckpoint(playerid,-2021.3827,-137.9689,35.3015, 6);
                CreateDynamicRaceCP(0,-2021.3827,-137.9689,35.3015,-2022.2931,-172.4966,35.3203, 3, 0, 0, playerid, 200.0);//1
                vmcheckpoints[playerid][1] = 0;
                vmcheckpoints[playerid][2] = 1;
                GameTextForPlayer(playerid, "(2/31)", 3000, 3);
                return 1;

            }
            if(vmcheckpoints[playerid][2] == 1)
            {
                DestroyDynamicRaceCP(checkpointid);
                SetPlayerCheckpoint(playerid,-2022.2931,-172.4966,35.3203, 6);
                CreateDynamicRaceCP(0,-2022.2931,-172.4966,35.3203,-2015.1947,-166.8497,35.3203, 3, 0, 0, playerid, 200.0);//1
                vmcheckpoints[playerid][2] = 0;
                vmcheckpoints[playerid][3] = 1;
                GameTextForPlayer(playerid, "(3/31)", 3000, 3);
                return 1;

            }
I want to make so that if player enters one checkpoint he gets another in another place, but this code is not working, becouse when i enter first checkpoint it takes 4 or 3 checkpoints at the same, so when i take first checkpoint i get (1/30), (2/30),(3/30). Any suggestions?
Reply


Messages In This Thread
Dynamic checkpoints - by ajwar - 29.12.2011, 11:17
Re: Dynamic checkpoints - by FarSe. - 29.12.2011, 11:29
Re: Dynamic checkpoints - by ajwar - 29.12.2011, 12:42
Re: Dynamic checkpoints - by ajwar - 29.12.2011, 13:01

Forum Jump:


Users browsing this thread: 1 Guest(s)