Jump to content

Danielowski

Membru
  • Posts

    9
  • Joined

  • Last visited

Posts posted by Danielowski

  1. Buna ziua comunitate. Este urmatorul script.

    forward Maraton(playerid); // este pus la forwarduri
    public Maraton(playerid)
    {
    CreateObject(982, 577.64343, -1919.84412, 0.72819,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 550.64337, -1919.84412, 0.72820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 550.64337, -1945.34412, 0.72820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 550.64337, -1970.84412, 0.72820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 550.64337, -1996.34412, 0.72820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 550.64337, -2021.84412, 0.72820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 550.61969, -2047.37634, 0.72820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 550.64337, -2071.34399, 0.72820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 550.64337, -2096.84399, 0.72820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 577.64337, -1943.84412, 0.72820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 577.64337, -1969.34412, 0.72820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 577.64337, -1994.84412, 0.72820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 577.64337, -2020.34412, 0.72820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 577.64337, -2045.84412, 0.72820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 577.64337, -2071.34399, 0.72820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 577.64337, -2096.84399, 0.72820,   0.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -1916.92249, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -1927.42249, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -1937.92249, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -1948.42249, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -1958.92249, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -1969.42249, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -1979.92249, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -1990.42249, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -2000.92249, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.50604, -2011.42493, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -2021.92249, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -2032.42249, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -2042.92249, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52405, -2053.44263, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -2063.92261, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -2074.42261, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -2084.92261, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -2095.42261, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.48676, -2104.40088, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -1990.42249, -8.38650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -2000.92249, -8.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.50598, -2011.42493, -10.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -2021.92249, -14.38650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -2032.42249, -14.38650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -2032.42249, -19.38650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -2042.92249, -14.38650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -2042.92249, -21.38650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52399, -2053.44263, -14.38650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52399, -2053.44263, -23.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.50592, -2063.92334, -14.38650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.50592, -2063.92334, -23.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -2074.42261, -14.38650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -2074.42261, -23.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -2084.92261, -14.38650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -2084.92261, -23.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -2095.42261, -14.38650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.52588, -2095.42261, -23.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.48682, -2104.40088, -14.38650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 550.48682, -2104.40088, -23.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -1916.92249, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -1927.42249, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -1937.92249, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -1948.42249, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -1958.92249, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -1969.42249, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52936, -1979.94214, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -1990.42249, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2000.92249, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2011.42249, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2021.92249, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2032.42249, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2042.92249, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2052.92261, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2063.42261, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2073.92261, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2084.42261, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2094.92261, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2104.92261, -4.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -1990.42249, -7.38650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2000.92249, -8.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2011.42249, -10.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2021.92249, -14.38650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2032.42249, -13.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2032.42249, -17.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2042.92249, -14.38650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2042.92249, -20.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2052.92261, -14.38650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2052.92261, -23.38650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2063.42261, -14.38650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2063.42261, -23.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2063.42261, -27.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2073.92261, -14.38650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2084.42261, -14.38650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2084.42261, -23.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2084.42261, -30.38650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2073.92261, -23.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2073.92261, -26.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2094.92261, -14.38650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2094.92261, -23.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2094.92261, -26.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2104.92261, -14.38650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2104.92261, -23.88650,   90.00000, 0.00000, 0.00000);
    CreateObject(19381, 577.52588, -2104.92261, -27.38650,   90.00000, 0.00000, 0.00000);
    CreateObject(982, 550.64337, -1919.84412, 2.22820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 550.64337, -1945.34412, 2.22820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 550.64337, -1970.84412, 2.22820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 550.64337, -1996.34412, 2.22820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 550.64337, -2021.84412, 2.22820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 550.61969, -2047.37634, 2.22820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 550.64337, -2071.34399, 2.22820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 550.64337, -2096.84399, 2.22820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 577.64337, -1919.84412, 2.22820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 577.64337, -1943.84412, 2.22820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 577.64337, -1969.34412, 2.22820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 577.64337, -1994.84412, 2.22820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 577.64337, -2020.34412, 2.22820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 577.64337, -2045.84412, 2.22820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 577.64337, -2071.34399, 2.22820,   0.00000, 0.00000, 0.00000);
    CreateObject(982, 577.64337, -2096.84399, 2.22820,   0.00000, 0.00000, 0.00000);
    CreateObject(18761, 563.87341, -2110.08545, 2.03620,   0.00000, 0.00000, 0.00000);
    CreateObject(19353, 552.28027, -2109.72461, 1.70620,   0.00000, 0.00000, 90.00000);
    CreateObject(19353, 574.66638, -2109.55298, 1.70620,   0.00000, 0.00000, 90.00000);
    CreateObject(19353, 553.28027, -2109.72461, 1.70620,   0.00000, 0.00000, 90.00000);
    CreateObject(19353, 576.16638, -2109.55298, 1.70620,   0.00000, 0.00000, 90.00000);
    CreateObject(19957, 578.08582, -1907.01440, 0.94070,   0.00000, 0.00000, 180.00000);
    CreateObject(19957, 550.08582, -1907.01440, 0.94070,   0.00000, 0.00000, 180.00000);
    CreateObject(19123, 550.66937, -1907.08594, 0.57000,   0.00000, 0.00000, 0.00000);
    CreateObject(19123, 577.66937, -1907.08594, 0.57000,   0.00000, 0.00000, 0.00000);
    return 1;
    }
    public SyncTime()
    {
    	new string[64];
    	new tmphour;
    	new tmpminute;
    	new tmpsecond;
    	gettime(tmphour, tmpminute, tmpsecond);
    	FixHour(tmphour);
    	tmphour = shifthour;
    	if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))
    	{
    		SendClientMessageToAll(COLOR_WHITE, "Maratonul este pe cale sa inceapa. Pentru a te inscrie tasteaza /marathon");
    		for(new playerid = 0; playerid <= MAX_PLAYERS; playerid++)
    					{SetTimerEx("Maraton", 10000, false, "i", playerid);}
    		format(string, sizeof(string), "[WORLD-TIME]Ora exacta: %d:00",tmphour);
    		BroadCast(COLOR_WHITE,string);
    		ghour = tmphour;
    		PayDay();
    		
    		if (realtime)
    		{
    			SetWorldTime(tmphour);
    		}
    	}
    }

     

    Prin acest script incerc sa porneasca automat un event la ora fixa. Momentan, in cazul de fata, ar trebui sa creeze doar acele obiecte, insa nu face asta

  2. Salut. Vin cu o noua problema. Cum verific daca este luni / marti / miercuri etc...

     

    Am gasit ceva care, din cate am inteles, a dat roade pentru persoana respectiva, insa eu nu stiu cum sa ma folosesc de acest script.

     

    Code:
    GetWeekDay(day=0, month=0, year=0)
    {
      if (!day)
        getdate(year, month, day);
    
      new
        weekday_str[10],
        j,
        e
      ;
    
      if (month <= 2)
      {
        month += 12;
        --year;
      }
    
      j = year % 100;
      e = year / 100;
    
      switch ((day + (month+1)*26/10 + j + j/4 + e/4 - 2*e) % 7)
      {
        case 0: weekday_str = "Saturday";
        case 1: weekday_str = "Sunday";
        case 2: weekday_str = "Monday";
        case 3: weekday_str = "Tuesday";
        case 4: weekday_str = "Wednesday";
        case 5: weekday_str = "Thursday";
        case 6: weekday_str = "Friday";
      }
    
      return weekday_str;
    }


    Usage

    Code:
    GetWeekDay(); //should return the weekday of today
    GetWeekDay(13, 3, 2009); //should return "Friday"
  3. #include <VD>
    #include <core>
    #include <float>
    #include <file>
    #include <a_samp>
    #include <utils>
    #include <morphinc>
    #include <time>
    #include <Dini>
    #include <JunkBuster>
    #include <boxex>
    #include <fuckcleo>
    #include <streamer>
    #include <antisurf>
    //#include <a_mysql>
    #include <foreach>
    #include <SpikeStrip>

  4. Salut comunitate. Imi poate explica cineva cum pot face un script /find care sa urmareasca ID-ul respectiv ? Am tot cautat pe net dar nu prea am inteles mare chestie. De asemenea nu ma supar daca cineva bine-voieste sa imi faca / dea scriptul. :D

     

    Multumesc anticipat!

  5. Salutare sa-mp.ro 

    In primul rand, as vrea sa imi cer scuze daca nu am postat unde trebuie, insa sunt nou pe acest forum.

     

    Recent imi apare un warning 201, si anume "redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")" din include-ul "streamer" linia 510.

     

    Linia 510: #define OnPlayerEnterRaceCheckpoint Streamer_OnPlayerEnterRaceCP

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.