Crear una ruta de checkpoints
#1

Buenas, estoy creando una ruta de CheckPoints para crear un job, los cmds van bien y etc... Pero fallo en la ruta.

Mi ruta esta echa asн
Код:
if(PlayerInfo[playerid][pJob] != JOB_LIMPIACALLES && Barrendero_Route[playerid] > 0)
	{
	    if(!IsPlayerInAnyVehicle(playerid)) { Message(playerid, COLOR_GRAD2, "No estбs en un Sweep!"); Barrendero_Route[playerid] = 0; return 1; }
	    if(Barrendero_Route[playerid] == 1)
	    {
	        SetTimerEx("SeCargoAgua", 10000,0, "dd", playerid);
	        GameTextForPlayer(playerid, "~w~Llenando limpiacalles con agua...", 10000, 3);
	        Barrendero_Route[playerid] = 2;
	        TogglePlayerControllable(playerid, 0);
    		SetPlayerCheckpoint(playerid, 2083.6611,-1810.1134,13.1079, 5.0);
	    }
	    else if(Barrendero_Route[playerid] == 2)
	    {
            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	        Barrendero_Route[playerid] = 3;
	        SetPlayerCheckpoint(playerid, 1737.3975,-1444.1079,13.0850, 5.0);
	    }
	    else if(Barrendero_Route[playerid] == 3)
	    {
            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	        Barrendero_Route[playerid] = 4;
	        SetPlayerCheckpoint(playerid, 1194.1522,-1320.9558,13.1232, 5.0); //
	    }
	    else if(Barrendero_Route[playerid] == 4)
	    {
            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	        Barrendero_Route[playerid] = 5;
	        SetPlayerCheckpoint(playerid, 778.5972,-1319.2585,13.1283, 5.0);
	    }
	    else if(Barrendero_Route[playerid] == 5)
	    {
            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	        Barrendero_Route[playerid] = 6;
	        SetPlayerCheckpoint(playerid, 1313.0157,-920.8329,37.9474, 5.0);
	    }
	    else if(Barrendero_Route[playerid] == 6)
	    {
            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	        Barrendero_Route[playerid] = 7;
	        SetPlayerCheckpoint(playerid, 1345.8302,-1739.5684,13.1080, 5.0); //
	    }
	    else if(Barrendero_Route[playerid] == 7)
	    {
            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	        Barrendero_Route[playerid] = 8;
	        SetPlayerCheckpoint(playerid, 1819.1550,-1844.9619,13.1392, 5.0);
	    }
	    else if(Barrendero_Route[playerid] == 8)
	    {
            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	        Barrendero_Route[playerid] = 9;
	        SetPlayerCheckpoint(playerid, 2375.4473,-1905.2598,13.1080, 5.0);
	    }
	    else if(Barrendero_Route[playerid] == 9)
	    {
            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	        Barrendero_Route[playerid] = 10;
	        SetPlayerCheckpoint(playerid, 1482.1899,-1729.7869,13.3828, 5.0); //
	    }
	    else if(Barrendero_Route[playerid] == 10)
	    {
	        Message(playerid, COLOR_ORANGE, "ЎHas terminado tu ruta, {FFFFFF}8/8{FF7F00}!");
            Message(playerid, COLOR_ORANGE, "ЎDirigete al lugar de trabajo a por la {FFFFFF}paga{FF7F00}!");
            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	        Barrendero_Route[playerid] = 11;
	        SetPlayerCheckpoint(playerid, 1301.1799,-1867.0018,13.2720, 5.0);
	    }
	    else if(Barrendero_Route[playerid] == 11)
	    {
            Message(playerid, COLOR_ORANGE, "ЎTe pagaron {FFFFFF}$430 {FF7F00}por limpiar las calles.!");
            Message(playerid, COLOR_ORANGE, "ЎEstas cansado, vuelve a trabajar en {FFFFFF}30 {FF7F00}minutos!");
	        Barrendero_Route[playerid] = 0;
	        PlayerIsBarrendero[playerid] = 0;
	        YahicisteRuta[playerid] = 1;
	        //SetTimerEx("PuedesTrabajarDeNew",Yapuedestrabajar,playerid);
	        SetTimerEx("PuedesTrabajarDeNew", Yapuedestrabajar,0, "dd", playerid);
	        GivePlayerMoney(playerid, 430);
	        new carid = GetPlayerVehicleID(playerid);
			SetVehicleToRespawn(carid);
	    }
	}
Llego hasta el primer checkpoint en el cual "me tendrнa que congelar y salir un texto", lo pongo entre comillas por que lo que realmente hace no es ni eso, desaparece, supuestamente sigues haciendo la ruta, pero no te muestra mбs check points, intente crearlo asн...
Код:
	    if(IsPlayerInRangeOfPoint(playerid,5,2040.7101,-1930.1340,13.4667)) //Comienzo
	      if(Barrendero_Route[playerid] == 1)
		{
            SetTimerEx("SeCargoAgua", 10000,0, "dd", playerid);
	        GameTextForPlayer(playerid, "~w~Llenando limpiacalles con agua...", 10000, 3);
	        Barrendero_Route[playerid] = 2;
	        TogglePlayerControllable(playerid, 0);
    		SetPlayerCheckpoint(playerid, 2083.6611,-1810.1134,13.1079, 5.0);
		}
		else if(IsPlayerInRangeOfPoint(playerid,5,2083.6611,-1810.1134,13.1079)) // Segundo
		if(Barrendero_Route[playerid] == 2)
		{
            PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
	        Barrendero_Route[playerid] = 3;
		    SetPlayerCheckpoint(playerid,1737.3975,-1444.1079,13.0850,5);
		}
Y sucesivamente, no se si seria la manera correcta, pero igualmente me da un huevo de errores, el otro por lo menos "hace algo".. Haber si alguien me puede echar un cable, se lo agradeceria
Reply


Messages In This Thread
[Ayuda] Crear una ruta de checkpoints - by Waashaa - 25.12.2013, 10:45
Re: Crear una ruta de checkpoints - by Waashaa - 27.12.2013, 12:29
Re: Crear una ruta de checkpoints - by Waashaa - 01.01.2014, 14:36
Respuesta: Crear una ruta de checkpoints - by OTACON - 01.01.2014, 15:41

Forum Jump:


Users browsing this thread: 3 Guest(s)