[AYUDA] - de CreateDynamicRaceCP
#5

Intenta retornando a 1 cada checkpoint.

pawn Код:
public OnPlayerEnterDynamicRaceCP(playerid, checkpointid)
{
    if(checkpointid == SprintRace1)
    {
        DestroyDynamicRaceCP(SprintRace1);
        SprintRace2 = CreateDynamicRaceCP(0, -2357.3977,2410.9619,6.4886, -2502.1296,2424.9043,16.2207, 10, -1, -1, -1, 200.0);
        return 1;
    }
    if(checkpointid == SprintRace2)
    {
        DestroyDynamicRaceCP(SprintRace2);
        SprintRace3 = CreateDynamicRaceCP(0, -2502.1296,2424.9043,16.2207, -2683.7659,2441.5269,48.1295, 10, -1, -1, -1, 200.0);
        return 1;
    }
    if(checkpointid == SprintRace3)
    {
        DestroyDynamicRaceCP(SprintRace3);
        SprintRace4 = CreateDynamicRaceCP(0, -2683.7659,2441.5269,48.1295, -2766.1765,2351.3689,74.2610, 10, -1, -1, -1, 200.0);
        return 1;
    }
    if(checkpointid == SprintRace4)
    {
        DestroyDynamicRaceCP(SprintRace4);
        SprintRace5 = CreateDynamicRaceCP(0, -2766.1765,2351.3689,74.2610, -2745.8179,2598.2917,91.9039, 10, -1, -1, -1, 200.0);
        return 1;
    }
    if(checkpointid == SprintRace5)
    {
        DestroyDynamicRaceCP(SprintRace5);
        SprintRace6 = CreateDynamicRaceCP(0, -2745.8179,2598.2917,91.9039, -2445.6553,2670.5601,61.5959, 10, -1, -1, -1, 200.0);
        return 1;
    }
    if(checkpointid == SprintRace6)
    {
        DestroyDynamicRaceCP(SprintRace6);
        SprintRace7 = CreateDynamicRaceCP(0, -2445.6553,2670.5601,61.5959, -2183.0798,2638.3167,55.2057, 10, -1, -1, -1, 200.0);
        return 1;
    }
    if(checkpointid == SprintRace7)
    {
        DestroyDynamicRaceCP(SprintRace7);
        SprintRace8 = CreateDynamicRaceCP(0, -2183.0798,2638.3167,55.2057, -1911.6656,2408.4075,50.7221, 10, -1, -1, -1, 200.0);
        return 1;
    }
    if(checkpointid == SprintRace8)
    {
        DestroyDynamicRaceCP(SprintRace8);
        SprintRace9 = CreateDynamicRaceCP(0, -1911.6656,2408.4075,50.7221, -2008.6525,2618.1228,50.5811, 10, -1, -1, -1, 200.0);
        return 1;
    }
    if(checkpointid == SprintRace9)
    {
        DestroyDynamicRaceCP(SprintRace9);
        SprintRace10 = CreateDynamicRaceCP(0, -2008.6525,2618.1228,50.5811, -1787.4590,2698.9917,57.8825, 10, -1, -1, -1, 200.0);
       return 1;
    }
    if(checkpointid == SprintRace10)
    {
        DestroyDynamicRaceCP(SprintRace10);
        SprintRace11 = CreateDynamicRaceCP(0, -1787.4590,2698.9917,57.8825, -1511.7786,2736.7217,64.4856, 10, -1, -1, -1, 200.0);
        return 1;
    }
    if(checkpointid == SprintRace11)
    {
        DestroyDynamicRaceCP(SprintRace11);
        SprintRace12 = CreateDynamicRaceCP(0, -1511.7786,2736.7217,64.4856, -1318.0216,2731.8320,53.5512, 10, -1, -1, -1, 200.0);
        return 1;
    }
    if(checkpointid == SprintRace12)
    {
        DestroyDynamicRaceCP(SprintRace12);
        SprintRace13 = CreateDynamicRaceCP(0, -1318.0216,2731.8320,53.5512, -989.7714,2711.5398,45.4918, 10, -1, -1, -1, 200.0);
        return 1;
    }
    if(checkpointid == SprintRace13)
    {
        DestroyDynamicRaceCP(SprintRace13);
        SprintRace14 = CreateDynamicRaceCP(0, -989.7714,2711.5398,45.4918, -784.3832,2724.8706,44.9261, 10, -1, -1, -1, 200.0);
        return 1;
    }
    if(checkpointid == SprintRace14)
    {
        DestroyDynamicRaceCP(SprintRace14);
        SprintRace15 = CreateDynamicRaceCP(0, -784.3832,2724.8706,44.9261, -741.1763,2632.1262,65.6523, 10, -1, -1, -1, 200.0);
        return 1;
    }
    if(checkpointid == SprintRace15)
    {
        DestroyDynamicRaceCP(SprintRace15);
        SprintRace16 = CreateDynamicRaceCP(0, -741.1763,2632.1262,65.6523, -522.5677,2424.6160,58.2453, 10, -1, -1, -1, 200.0);
        return 1;
    }
    if(checkpointid == SprintRace16)
    {
        DestroyDynamicRaceCP(SprintRace16);
        SprintRace17 = CreateDynamicRaceCP(0, -522.5677,2424.6160,58.2453, -242.4729,2515.9829,30.5271, 10, -1, -1, -1, 200.0);
        return 1;
    }
    if(checkpointid == SprintRace17)
    {
        DestroyDynamicRaceCP(SprintRace17);
        SprintRace18 = CreateDynamicRaceCP(0, -242.4729,2515.9829,30.5271, -19.4791,2447.0037,15.9106, 10, -1, -1, -1, 200.0);
        return 1;
    }
    if(checkpointid == SprintRace18)
    {
        DestroyDynamicRaceCP(SprintRace18);
        SprintRace19 = CreateDynamicRaceCP(0, -19.4791,2447.0037,15.9106, 181.6481,2506.0920,16.1089, 10, -1, -1, -1, 200.0);
        return 1;
    }
    if(checkpointid == SprintRace19)
    {
        DestroyDynamicRaceCP(SprintRace19);
        SprintRace20 = CreateDynamicRaceCP(1, 181.6481,2506.0920,16.1089, 422.6211,2504.3538,16.1090, 10, -1, -1, -1, 200.0);
        return 1;
    }
    if(checkpointid == SprintRace20)
    {
        GameTextForPlayer(playerid, "~r~~h~Has Ganado", 3000, 1);
        MensajeAlCliente(playerid,0xC2C6A7FF," »»• < Evento >  {FF0000}(50 Puntos de Experiencia). •««");
        MensajeAlCliente(playerid,0xC2C6A7FF," »»• < Evento >  {FF0000}(40.000 Dolares a tu cuenta Bancaria). •««");
        InfoCuenta[playerid][Banco]=40000+InfoCuenta[playerid][Banco];
        InfoCuenta[playerid][Experiencia]=50+InfoCuenta[playerid][Experiencia];

        new sendername[MAX_PLAYER_NAME];
        new string[256];

        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "%s {E0C589}Gana el evento de carrera {FF0000}(Pueblo Viejo hasta el Aeropueto Avandonado.)",sendername);
        MensajeAlClienteTodos(0xC0C0C0FF,string);

        if(ServerAdminEvento[NoDobleEvento] == 1)
        {
            if(PlayerEvento[playerid]  ==  1)
            {
                new Float:x, Float:y, Float:z;
                GetPlayerPos(playerid,x,y,z); SetPlayerPosEx(playerid,x,y,z+5); PlayerPlaySound(playerid,1190,0.0,0.0,0.0);
                PlayerEvento[playerid] = 0;
                TogglePlayerControllable(playerid, 0);
                SpawnPlayer(playerid);
                SetPlayerVirtualWorld(playerid, 0);
                DestroyVehicle(VehiculosEvento1);
                DestroyVehicle(VehiculosEvento2);
                DestroyVehicle(VehiculosEvento3);
                DestroyVehicle(VehiculosEvento4);
                DestroyVehicle(VehiculosEvento5);
                DestroyVehicle(VehiculosEvento6);
                DestroyVehicle(VehiculosEvento7);
                DestroyVehicle(VehiculosEvento8);
                DestroyVehicle(VehiculosEvento9);
                DestroyVehicle(VehiculosEvento10);
                DestroyVehicle(VehiculosEvento11);
                DestroyVehicle(VehiculosEvento11);
                ServerAdminEvento[Evento_RW_1] = 0;
                ServerAdminEvento[Evento_RW_2] = 0;
                ServerAdminEvento[Evento_WW_1] = 0;
                ServerAdminEvento[Evento_WW_2] = 0;
                ServerAdminEvento[Evento_Sprin] = 0;
                ServerAdminEvento[OrdenVehiculosE1] = 0;
                ServerAdminEvento[MaximoPlayers] = 0;
                KillTimer(DuracionEvento[0]);
                KillTimer(ConteoGlobal[0]);
                KillTimer(ConteoGlobal[1]);
                ConteoGlobal[0] = 0;
                ConteoGlobal[1] = 0;
                ServerAdminEvento[NoDobleEvento] = 0;
                DestroyDynamicRaceCP(SprintRace20);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
[AYUDA] - de CreateDynamicRaceCP - by bikesdeivis - 14.05.2014, 04:28
Respuesta: [AYUDA] - de CreateDynamicRaceCP - by C1ruj4n0 - 14.05.2014, 04:31
Respuesta: [AYUDA] - de CreateDynamicRaceCP - by bikesdeivis - 14.05.2014, 04:47
Respuesta: [AYUDA] - de CreateDynamicRaceCP - by C1ruj4n0 - 14.05.2014, 13:48
Respuesta: [AYUDA] - de CreateDynamicRaceCP - by unuky - 14.05.2014, 13:52
Respuesta: [AYUDA] - de CreateDynamicRaceCP - by Parka - 14.05.2014, 14:40
Respuesta: [AYUDA] - de CreateDynamicRaceCP - by bikesdeivis - 15.05.2014, 01:27
Respuesta: [AYUDA] - de CreateDynamicRaceCP - by bikesdeivis - 15.05.2014, 01:29
Respuesta: [AYUDA] - de CreateDynamicRaceCP - by C1ruj4n0 - 15.05.2014, 04:56
Respuesta: [AYUDA] - de CreateDynamicRaceCP - by Swedky - 15.05.2014, 13:33

Forum Jump:


Users browsing this thread: 1 Guest(s)