Last checkpoint was not destroyed
#9

pawn Код:
#include    <a_samp>
#include    <streamer>

new cp[3];

public OnPlayerEnterDynamicRaceCP(playerid, checkpointid)
{
    for(new i = 0; i < 3; i++)
    {
        if(checkpointid == cp[i])
        {
            switch(i)
            {
                case 0:
                {
                    DestroyDynamicRaceCP(cp[0]);
                    cp[1] = CreateDynamicRaceCP(0,258.1696,2502.3184,16.0474,-78.5963,2498.3335,16.0418,10,200, .streamdistance = 500);
                }

                case 1:
                {
                    DestroyDynamicRaceCP(cp[1]);
                    cp[2] = CreateDynamicRaceCP(1,-78.5963,2498.3335,16.0418,-78.5963,2498.3335,16.0418,10,200, .streamdistance = 500);
                }

                case 2:
                {
                    SendClientMessage(playerid, -1, "win");
                    DestroyDynamicRaceCP(cp[2]);
                    SetPlayerVirtualWorld(playerid,0);
                }
            }
        }
    }
    return true;
}
Reply


Messages In This Thread
Last checkpoint was not destroyed - by newbienoob - 27.02.2013, 10:19
Re: Last checkpoint was not destroyed - by [MG]Dimi - 27.02.2013, 10:27
Re: Last checkpoint was not destroyed - by newbienoob - 27.02.2013, 11:41
Re: Last checkpoint was not destroyed - by RajatPawar - 27.02.2013, 11:54
Re: Last checkpoint was not destroyed - by DaRk_RaiN - 27.02.2013, 12:47
Re: Last checkpoint was not destroyed - by newbienoob - 27.02.2013, 12:48
Re: Last checkpoint was not destroyed - by Riddick94 - 27.02.2013, 12:50
Re: Last checkpoint was not destroyed - by newbienoob - 27.02.2013, 12:53
Re: Last checkpoint was not destroyed - by Riddick94 - 27.02.2013, 12:54

Forum Jump:


Users browsing this thread: 1 Guest(s)