Odg: [pomoc]nemogu cp nikako da napravim

Započeo Aldin Begovic, Januar 04, 2012, 14:48:15 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

mod koji koristim:Gf
opis problema:radio sam po djurinom tutu za utrku i evo vec par dana nemogu da sredim ove cp tj nemogu da ubacim ova 2 cp da rade

AddPlayerClass(288,1919.3092,-2488.7385,13.5391,90.0573,0,0,0,0,0,0); // cp 1
AddPlayerClass(288,1474.8782,-2494.1699,13.5547,268.5692,0,0,0,0,0,0); // cp 2
Kako god ubacim ne redi pokaze prvi i samo stane :( Dali mi moze neko pomoc il pogledat i reci gdje je problem !
if(PlayerInfo[playerid][pUtrka] >= 2)
   {
               if(PlayerToPoint(2.0, playerid,1983.2114,-2492.3572,13.5391))//cp1
               {
                       if(PlayerInfo[playerid][pUtrka] == 2)
                       {
                            PlayerInfo[playerid][pUtrka] = 3;
                            SetPlayerCheckpoint(playerid, 1491.6249,-2492.4900,13.5547, 2.0);// kao sto vidite u race cp unosite iduci cp i onaj iza njega
                  }
               }
               if(PlayerToPoint(2.0, playerid,1491.6249,-2492.4900,13.5547))//cp2
               {
                       if(PlayerInfo[playerid][pUtrka] == 3)
                       {
                            PlayerInfo[playerid][pUtrka] = 4;
                            SetPlayerCheckpoint(playerid, 1491.6249,-2492.4900,13.5547,2.0);
                            SendClientMessage(playerid, COLOR_YELLOW, "Prosao si kroz cilj");
                     PlayerInfo[playerid][pUtrka] = 4+1;//da mozete i dalje vidjeti kad prolaze kroz cilj
                            DisablePlayerRaceCheckpoint(playerid);
//-------------------[Ovo je da svi oni koji su na raceu vide kad prodjete kroz cilj]
                           new sendername[MAX_PLAYER_NAME];
                           GetPlayerName(playerid, sendername, sizeof(sendername));
                           for(new i = 0; i < MAX_PLAYERS; i++)
                            {
                          if(IsPlayerConnected(i))
                          {
                                    if(PlayerInfo[pUtrka] > 0)
                               {
                                     format(string, sizeof(string), "Utrka - Cilj: %s",sendername);
                                      SendClientMessage(i,COLOR_WHITE , string);
                               }
                          }
                             }
                  }
               }
   }
//----------------------------------------------------------------------------------------------------------
public UtrkaTimer3()
{
    MoveObject(utrkakapija,2050.73046875,-2493.9169921875,11.190228462219, 4.0);//znaci kapija se automatski spusta kad timer kaze start
   for(new i = 0; i < MAX_PLAYERS; i++)
   {
      if(IsPlayerConnected(i))
      {
              if(PlayerInfo[pUtrka] == 1)
          {
              GameTextForPlayer(i, "START !!!",1000,6);
              SetPlayerCheckpoint(i,1983.2114,-2492.3572,13.5391, 20);//cp 1
              PlayerInfo[pUtrka] = 2;
         }
      }
   }
}

Citat: Aldin Begovic poslato Januar 04, 2012, 14:48:15 POSLE PODNE
AddPlayerClass(288,1919.3092,-2488.7385,13.5391,90.0573,0,0,0,0,0,0); // cp 1
AddPlayerClass(288,1474.8782,-2494.1699,13.5547,268.5692,0,0,0,0,0,0); // cp 2

Nije mi jasno kakve ovo veze ima sa CP (ovo iznad)?
Koliko ja znam AddPlayerClass nema ama bas nikakve veze sa CP-om

Nemam blage sta je Djuro tu radio(si siguran da je on?), al treba da koristis SetPlayerRaceCheckpoint za evente

ma jok moj djedo ragib !! evo pogledaj sta me odma blatis http://balkan-samp.com/forum/index.php?topic=1247.0
sta se pravis pametan odma ako hoces pomozi ako neces nemoras nikako ni pisat

Evo ja sam radio poso slicno po tome..Znaci samo u komandi prvi cp koji pise on se ocita,a ostalo nece :/ help pls -.-'

nema sanse da ovo napravim vec se zezam pet dana oko ovog cc HELPPP

Ja sam ti gore napisao sta da uradis i pokusao da ti pomognem, al ti odbijas pomoc.... ponovo procitaj post i upotrebi mozak i skontaces sta sam rekao...... AddPlayerClass nema nikakve veze sa cp-ovima, ako mi neverujes izvoli...
http://wiki.sa-mp.com/wiki/AddPlayerClass

koristi SetPlayerRaceCheckpoint
pod publicom OnPlayerEnterRaceCheckpoint


obican SetPlayerCheckPoint sluzi da se samo tom igracu psotavi CP, odnosno drugi ga nevide i nekoristi se za evente...

btw, taj link sto si mi dao... tamo nigde nema AddPlayerClass...
edit:

I koristi disable
if(PlayerInfo[playerid][pUtrka] == 2)
                       {
                            PlayerInfo[playerid][pUtrka] = 3;
                            DisablePlayerRaceCheckpoint(playerid);
                            SetPlayerRaceCheckpoint(playerid, 1491.6249,-2492.4900,13.5547, 2.0);// kao sto vidite u race cp unosite iduci cp i onaj iza njega
                  }


AKo pogledas detaljnije njegov tut videces da mu pise DisablePlayerRaceCheckpoint

ranije je bila jedna fs sa eventom, al nemogu da je nadjem sad...

#include <a_samp>
#include <streamer>
#include <zcmd>
new Position;
#define COLOR_BLUELIGHTER 0x00BFFFAA //SVETLO PLAVA UZEO SAM BOJU IZ MODA//
new Count;
new bool: IsCountdownStarted;
new CountdownTimer;
forward CountDown(playerid);
forward OnPlayerLeaveDynamicRaceCP(playerid);
forward Apauza(playerid);

    /////////////NEMA IME EVENT/TRKA BY:ACKE////////////////////////////////


public OnGameModeInit()
{

CreateDynamicObject(8171,3023.52807600,-2007.39392100,6.76897000,0.00000000,0.00000000,0.00000000); //object
CreateDynamicObject(8171,3023.50048800,-1869.11267100,6.77089200,0.00000000,0.00000000,0.00000000); //object(1)
CreateDynamicObject(8344,3047.70190400,-2141.35913100,6.76987200,0.00000000,0.00000000,0.00000000); //object(6)
CreateDynamicObject(8343,3273.59716800,-2157.99755900,6.77484700,0.00000000,0.00000000,-180.00001985); //object(7)
CreateDynamicObject(8171,3160.54248000,-2180.83789100,6.72332000,0.00000000,0.00000000,-89.99998128); //object(8)
CreateDynamicObject(8171,3297.65161100,-2040.55688500,6.75176900,0.00000000,0.00000000,0.00000000); //object(9)
CreateDynamicObject(8171,3297.60107400,-1902.24328600,6.65369000,0.00000000,0.00000000,0.00000000); //object(10)
CreateDynamicObject(8343,3047.61816400,-1752.00109900,6.69741900,0.00000000,0.00000000,-0.00005730); //object(11)
CreateDynamicObject(8171,3161.11792000,-1729.28759800,6.67434000,0.00000000,0.00000000,-89.99998128); //object(12)
CreateDynamicObject(8344,3273.54199200,-1768.96704100,6.67523800,0.00000000,0.00000000,-179.99996255); //object(13)
CreateDynamicObject(4867,3133.23413100,-1850.19421400,6.62894200,0.00000000,0.00000000,-89.99998128); //object(14)
CreateDynamicObject(4867,3133.25952100,-2061.14404300,6.74946500,0.00000000,0.00000000,-89.99998128); //object(15)
CreateDynamicObject(4866,3217.46679700,-1901.08190900,6.63198700,0.00000000,0.00000000,-269.99994383); //object(16)
CreateDynamicObject(4866,3217.16284200,-2047.18737800,6.73646900,0.00000000,0.00000000,-269.99994383); //object(17)
CreateDynamicObject(8253,3224.22436500,-2089.74365200,10.67725200,0.00000000,0.00000000,0.00000000); //object(18)
CreateDynamicObject(8253,3223.22631800,-2047.70800800,10.67725200,0.00000000,0.00000000,0.00000000); //object(19)
CreateDynamicObject(8253,3223.79418900,-2005.71252400,10.67725600,0.00000000,0.00000000,0.00000000); //object(20)
CreateDynamicObject(8253,3224.37451200,-1965.04980500,10.67725200,0.00000000,0.00000000,0.00000000); //object(21)
CreateDynamicObject(8253,3225.05542000,-1924.17724600,10.56425900,0.00000000,0.00000000,0.00000000); //object(22)
CreateDynamicObject(8253,3224.6server uklonjen!900,-1889.01306200,10.70529900,0.00000000,0.00000000,0.00000000); //object(23)
CreateDynamicObject(8253,3223.63061500,-1848.04211400,10.70529900,0.00000000,0.00000000,0.00000000); //object(24)
CreateDynamicObject(8253,3223.43359400,-1802.07653800,10.70529900,0.00000000,0.00000000,0.00000000); //object(25)
CreateDynamicObject(978,3264.09497100,-2159.11889600,7.57668900,0.00000000,0.00000000,-44.99999064); //object(27)
CreateDynamicObject(978,3258.91210900,-2152.07690400,7.47669700,0.00000000,0.00000000,-56.25001695); //object(28)
CreateDynamicObject(978,3254.68261700,-2144.15283200,7.47669600,0.00000000,0.00000000,-67.49998596); //object(29)
CreateDynamicObject(978,3251.28955100,-2136.06225600,7.57668900,0.00000000,0.00000000,-67.49998596); //object(30)
CreateDynamicObject(978,3247.48071300,-2126.94384800,7.57668900,0.00000000,0.00000000,-67.49998596); //object(31)
CreateDynamicObject(978,3244.74243200,-2117.39550800,7.57668900,0.00000000,0.00000000,-78.75001226); //object(32)
CreateDynamicObject(978,3243.80590800,-2108.67553700,7.47669400,0.00000000,0.00000000,-89.99998128); //object(33)
CreateDynamicObject(978,3243.26879900,-2073.02392600,7.47669500,0.00000000,0.00000000,-89.99998128); //object(34)
CreateDynamicObject(978,3243.11816400,-2064.36889600,7.47669500,0.00000000,0.00000000,-89.99998128); //object(35)
CreateDynamicObject(978,3243.58837900,-2032.04785200,7.47669500,0.00000000,0.00000000,-89.99998128); //object(36)
CreateDynamicObject(978,3243.60156300,-2023.10498000,7.47669300,0.00000000,0.00000000,-89.99998128); //object(37)
CreateDynamicObject(978,3243.12036100,-1990.30200200,7.47669500,0.00000000,0.00000000,-89.99998128); //object(38)
CreateDynamicObject(978,3243.11962900,-1982.33911100,7.47669500,0.00000000,0.00000000,-89.99998128); //object(39)
CreateDynamicObject(978,3243.45117200,-1948.57763700,7.47669300,0.00000000,0.00000000,-89.99998128); //object(40)
CreateDynamicObject(978,3243.25195300,-1939.87255900,7.47669700,0.00000000,0.00000000,-89.99998128); //object(41)
CreateDynamicObject(978,3244.01269500,-1910.70263700,7.47669500,0.00000000,0.00000000,-89.99998128); //object(42)
CreateDynamicObject(978,3244.00341800,-1904.27331500,7.47220700,0.00000000,0.00000000,-89.99998128); //object(43)
CreateDynamicObject(978,3243.26245100,-1872.66149900,7.47220700,0.00000000,0.00000000,-89.99998128); //object(44)
CreateDynamicObject(978,3243.19970700,-1864.90429700,7.47220700,0.00000000,0.00000000,-89.99998128); //object(45)
CreateDynamicObject(978,3243.10522500,-1831.99682600,7.47220700,0.00000000,0.00000000,-89.99998128); //object(46)
CreateDynamicObject(978,3243.10815400,-1822.77844200,7.47220700,0.00000000,0.00000000,-89.99998128); //object(47)
CreateDynamicObject(978,3243.34179700,-1784.34460400,7.47220900,0.00000000,0.00000000,-89.99998128); //object(48)
CreateDynamicObject(978,3244.21557600,-1774.89245600,7.47220700,0.00000000,0.00000000,-101.25000758); //object(49)
CreateDynamicObject(978,3246.83715800,-1766.24609400,7.47220500,0.00000000,0.00000000,-112.49997660); //object(50)
CreateDynamicObject(978,3251.13916000,-1758.53955100,7.47220700,0.00000000,0.00000000,-123.74994561); //object(51)
CreateDynamicObject(978,3256.58984400,-1752.05603000,7.47220700,0.00000000,0.00000000,-134.99997191); //object(52)
CreateDynamicObject(978,3262.38989300,-1746.09924300,7.47220500,0.00000000,0.00000000,-134.99997191); //object(53)
CreateDynamicObject(978,3277.68798800,-2136.88671900,7.61506700,0.00000000,0.00000000,-89.99998128); //object(49)
CreateDynamicObject(978,3277.52661100,-2127.63061500,7.47669500,0.00000000,0.00000000,-89.99998128); //object(50)
CreateDynamicObject(978,3277.52221700,-2118.70190400,7.47669500,0.00000000,0.00000000,-89.99998128); //object(51)
CreateDynamicObject(978,3277.56372100,-2109.60376000,7.47669700,0.00000000,0.00000000,-89.99998128); //object(52)
CreateDynamicObject(978,3277.54394500,-2100.42846700,7.47669300,0.00000000,0.00000000,-89.99998128); //object(53)
CreateDynamicObject(978,3277.69677700,-2091.68335000,7.59198900,0.00000000,0.00000000,-89.99998128); //object(54)
CreateDynamicObject(978,3277.70434600,-2082.80151400,7.59198900,0.00000000,0.00000000,-89.99998128); //object(55)
CreateDynamicObject(978,3277.72753900,-2073.57666000,7.59198900,0.00000000,0.00000000,-89.99998128); //object(56)
CreateDynamicObject(978,3277.68872100,-2064.06835900,7.47669500,0.00000000,0.00000000,-89.99998128); //object(57)
CreateDynamicObject(978,3277.64502000,-2054.80468800,7.47669500,0.00000000,0.00000000,-89.99998128); //object(58)
CreateDynamicObject(978,3277.59692400,-2045.63256800,7.47669400,0.00000000,0.00000000,-89.99998128); //object(59)
CreateDynamicObject(978,3277.60815400,-2036.54772900,7.47669500,0.00000000,0.00000000,-89.99998128); //object(60)
CreateDynamicObject(978,3277.58496100,-2027.21533200,7.47669500,0.00000000,0.00000000,-89.99998128); //object(61)
CreateDynamicObject(978,3277.59326200,-2017.94873000,7.47669500,0.00000000,0.00000000,-89.99998128); //object(62)
CreateDynamicObject(978,3277.49877900,-2008.50329600,7.47669500,0.00000000,0.00000000,-89.99998128); //object(63)
CreateDynamicObject(978,3277.51684600,-1999.33117700,7.47669500,0.00000000,0.00000000,-89.99998128); //object(64)
CreateDynamicObject(978,3277.58544900,-1990.18139600,7.47669500,0.00000000,0.00000000,-89.99998128); //object(65)
CreateDynamicObject(978,3277.58544900,-1980.86462400,7.47669500,0.00000000,0.00000000,-89.99998128); //object(66)
CreateDynamicObject(978,3277.60742200,-1971.67907700,7.47669500,0.00000000,0.00000000,-89.99998128); //object(67)
CreateDynamicObject(978,3277.62158200,-1962.51171900,7.49391000,0.00000000,0.00000000,-89.99998128); //object(68)
CreateDynamicObject(978,3277.64086900,-1953.19299300,7.49391000,0.00000000,0.00000000,-89.99998128); //object(69)
CreateDynamicObject(978,3277.69775400,-1943.88720700,7.49391000,0.00000000,0.00000000,-89.99998128); //object(70)
CreateDynamicObject(978,3277.64306600,-1934.49646000,7.49390900,0.00000000,0.00000000,-89.99998128); //object(71)
CreateDynamicObject(978,3277.66186500,-1925.32226600,7.49391000,0.00000000,0.00000000,-89.99998128); //object(72)
CreateDynamicObject(978,3277.68066400,-1915.94799800,7.49391000,0.00000000,0.00000000,-89.99998128); //object(73)
CreateDynamicObject(978,3277.6server uklonjen!900,-1906.64831500,7.49391100,0.00000000,0.00000000,-89.99998128); //object(74)
CreateDynamicObject(978,3277.67553700,-1897.28271500,7.49391000,0.00000000,0.00000000,-89.99998128); //object(75)
CreateDynamicObject(978,3277.66748000,-1887.93115200,7.49391000,0.00000000,0.00000000,-89.99998128); //object(76)
CreateDynamicObject(978,3277.65576200,-1878.69751000,7.49391000,0.00000000,0.00000000,-89.99998128); //object(77)
CreateDynamicObject(978,3277.70434600,-1869.55798300,7.49391000,0.00000000,0.00000000,-89.99998128); //object(78)
CreateDynamicObject(978,3277.63549800,-1860.06494100,7.49391000,0.00000000,0.00000000,-89.99998128); //object(79)
CreateDynamicObject(978,3277.57836900,-1850.72961400,7.47220700,0.00000000,0.00000000,-89.99998128); //object(80)
CreateDynamicObject(978,3277.58374000,-1841.62219200,7.47220700,0.00000000,0.00000000,-89.99998128); //object(81)
CreateDynamicObject(978,3277.61230500,-1832.79809600,7.47220700,0.00000000,0.00000000,-89.99998128); //object(82)
CreateDynamicObject(978,3277.58520500,-1823.60009800,7.47220700,0.00000000,0.00000000,-89.99998128); //object(83)
CreateDynamicObject(978,3277.59301800,-1814.67272900,7.47220700,0.00000000,0.00000000,-89.99998128); //object(84)
CreateDynamicObject(978,3277.68750000,-1805.80749500,7.47220700,0.00000000,0.00000000,-89.99998128); //object(85)
CreateDynamicObject(978,3277.79150400,-1796.86450200,7.51545800,0.00000000,0.00000000,-89.99998128); //object(86)
CreateDynamicObject(978,3277.76098600,-1787.75170900,7.51545800,0.00000000,0.00000000,-89.99998128); //object(87)
CreateDynamicObject(978,3277.71server uklonjen!00,-1778.73254400,7.47220700,0.00000000,0.00000000,-89.99998128); //object(88)
CreateDynamicObject(978,3277.70092800,-1769.75878900,7.47220600,0.00000000,0.00000000,-89.99998128); //object(89)
CreateDynamicObject(978,3243.05249000,-1817.40820300,7.47220700,0.00000000,0.00000000,-89.99998128); //object(90)
CreateDynamicObject(978,3262.77807600,-2164.02612300,7.61506700,0.00000000,0.00000000,-157.49996723); //object(91)
CreateDynamicObject(978,3253.94262700,-2165.74414100,7.57668900,0.00000000,0.00000000,-180.00001985); //object(92)
CreateDynamicObject(978,3244.83862300,-2165.69067400,7.61506900,0.00000000,0.00000000,-180.00001985); //object(93)
CreateDynamicObject(978,3236.34838900,-2165.70092800,7.61506700,0.00000000,0.00000000,-180.00001985); //object(94)
CreateDynamicObject(978,3227.13647500,-2165.71948200,7.57668900,0.00000000,0.00000000,-180.00001985); //object(95)
CreateDynamicObject(978,3217.75439500,-2165.67944300,7.58968500,0.00000000,0.00000000,-180.00001985); //object(96)
CreateDynamicObject(978,3208.41577100,-2165.61279300,7.58968700,0.00000000,0.00000000,-191.25004616); //object(97)
CreateDynamicObject(978,3199.05371100,-2165.65429700,7.58968500,0.00000000,0.00000000,-180.00001985); //object(98)
CreateDynamicObject(978,3189.80029300,-2165.64770500,7.58968500,0.00000000,0.00000000,-180.00001985); //object(99)
CreateDynamicObject(978,3180.86230500,-2165.56225600,7.58968500,0.00000000,0.00000000,-180.00001985); //object(100)
CreateDynamicObject(978,3171.78295900,-2165.52441400,7.58968500,0.00000000,0.00000000,-180.00001985); //object(101)
CreateDynamicObject(978,3162.56030300,-2165.47021500,7.58968600,0.00000000,0.00000000,-180.00001985); //object(102)
CreateDynamicObject(978,3153.26098600,-2165.43530300,7.58968500,0.00000000,0.00000000,-180.00001985); //object(103)
CreateDynamicObject(978,3144.43286100,-2165.38476600,7.58968500,0.00000000,0.00000000,-180.00001985); //object(104)
CreateDynamicObject(978,3135.25561500,-2165.37500000,7.58968500,0.00000000,0.00000000,-180.00001985); //object(105)
CreateDynamicObject(978,3125.89111300,-2165.32470700,7.58968100,0.00000000,0.00000000,-180.00001985); //object(106)
CreateDynamicObject(978,3116.64819300,-2165.27856400,7.58968500,0.00000000,0.00000000,-180.00001985); //object(107)
CreateDynamicObject(978,3107.69213900,-2165.25659200,7.58968500,0.00000000,0.00000000,-180.00001985); //object(108)
CreateDynamicObject(978,3098.95043900,-2165.14209000,7.58968500,0.00000000,0.00000000,-180.00001985); //object(109)
CreateDynamicObject(978,3089.94287100,-2165.15161100,7.61009200,0.00000000,0.00000000,-180.00001985); //object(110)
CreateDynamicObject(978,3080.70166000,-2165.16821300,7.61009200,0.00000000,0.00000000,-180.00001985); //object(111)
CreateDynamicObject(978,3071.60058600,-2165.13793900,7.58968500,0.00000000,0.00000000,-180.00001985); //object(112)
CreateDynamicObject(978,3062.62646500,-2164.41064500,7.58968500,0.00000000,0.00000000,-191.24998886); //object(113)
CreateDynamicObject(978,3054.37329100,-2161.06152300,7.58968500,0.00000000,0.00000000,-213.74998418); //object(114)
CreateDynamicObject(978,3048.28784200,-2154.54077100,7.58968400,0.00000000,0.00000000,-236.25003679); //object(115)
CreateDynamicObject(978,3261.16162100,-1741.87353500,7.51545800,0.00000000,0.00000000,-11.25002631); //object(116)
CreateDynamicObject(978,3252.24609400,-1740.99670400,7.51545800,0.00000000,0.00000000,0.00000000); //object(117)
CreateDynamicObject(978,3243.29394500,-1740.97424300,7.51545800,0.00000000,0.00000000,0.00000000); //object(118)
CreateDynamicObject(978,3234.21972700,-1741.06115700,7.51545800,0.00000000,0.00000000,0.00000000); //object(119)
CreateDynamicObject(978,3224.99707000,-1741.12280300,7.51456000,0.00000000,0.00000000,0.00000000); //object(120)
CreateDynamicObject(978,3215.62109400,-1741.18029800,7.51456000,0.00000000,0.00000000,0.00000000); //object(121)
CreateDynamicObject(978,3206.28906300,-1741.27099600,7.51456000,0.00000000,0.00000000,0.00000000); //object(122)
CreateDynamicObject(978,3196.90112300,-1741.32116700,7.51456000,0.00000000,0.00000000,0.00000000); //object(123)
CreateDynamicObject(978,3187.52490200,-1741.35864300,7.51456000,0.00000000,0.00000000,0.00000000); //object(124)
CreateDynamicObject(978,3178.14917000,-1741.35070800,7.51456000,0.00000000,0.00000000,0.00000000); //object(125)
CreateDynamicObject(978,3168.75366200,-1741.36779800,7.51456000,0.00000000,0.00000000,0.00000000); //object(126)
CreateDynamicObject(978,3160.21728500,-1741.33850100,7.51456000,0.00000000,0.00000000,0.00000000); //object(127)
CreateDynamicObject(978,3151.10229500,-1741.35864300,7.51456200,0.00000000,0.00000000,0.00000000); //object(128)
CreateDynamicObject(978,3142.70117200,-1741.43908700,7.51456000,0.00000000,0.00000000,0.00000000); //object(129)
CreateDynamicObject(978,3133.58300800,-1741.50988800,7.51456200,0.00000000,0.00000000,0.00000000); //object(130)
CreateDynamicObject(978,3124.68066400,-1741.41931200,7.51456000,0.00000000,0.00000000,0.00000000); //object(131)
CreateDynamicObject(978,3115.72802700,-1741.36291500,7.51456000,0.00000000,0.00000000,0.00000000); //object(132)
CreateDynamicObject(978,3106.72534200,-1741.32812500,7.51456000,0.00000000,0.00000000,0.00000000); //object(133)
CreateDynamicObject(978,3098.15576200,-1741.27807600,7.51456000,0.00000000,0.00000000,0.00000000); //object(134)
CreateDynamicObject(978,3090.03344700,-1741.21374500,7.61263900,0.00000000,0.00000000,0.00000000); //object(135)
CreateDynamicObject(978,3081.22998000,-1741.17419400,7.61263900,0.00000000,0.00000000,0.00000000); //object(136)
CreateDynamicObject(978,3072.47851600,-1741.02893100,7.61263900,0.00000000,0.00000000,0.00000000); //object(137)
CreateDynamicObject(978,3064.01342800,-1741.00598100,7.61263900,0.00000000,0.00000000,0.00000000); //object(138)
CreateDynamicObject(978,3055.53515600,-1742.73205600,7.61264100,0.00000000,0.00000000,22.49999532); //object(139)
CreateDynamicObject(978,3048.37841800,-1747.45507800,7.61773300,0.00000000,0.00000000,44.99999064); //object(140)
CreateDynamicObject(978,3043.28808600,-1755.08215300,7.61773300,0.00000000,0.00000000,67.49998596); //object(141)
CreateDynamicObject(978,3041.55395500,-1763.85095200,7.61263900,0.00000000,0.00000000,89.99998128); //object(142)
CreateDynamicObject(978,3041.54418900,-1772.35131800,7.61263900,0.00000000,0.00000000,-270.00005842); //object(143)
CreateDynamicObject(978,3041.52783200,-1780.94653300,7.61263900,0.00000000,0.00000000,-270.00005842); //object(144)
CreateDynamicObject(978,3041.56176800,-1790.15991200,7.61263900,0.00000000,0.00000000,-270.00005842); //object(145)
CreateDynamicObject(978,3041.53173800,-1799.33459500,7.61263900,0.00000000,0.00000000,-270.00005842); //object(146)
CreateDynamicObject(978,3041.49438500,-1808.50061000,7.61111200,0.00000000,0.00000000,-270.00005842); //object(147)
CreateDynamicObject(978,3041.51953100,-1817.79614300,7.61111000,0.00000000,0.00000000,-270.00005842); //object(148)
CreateDynamicObject(978,3041.47387700,-1827.14477500,7.61111200,0.00000000,0.00000000,-270.00005842); //object(149)
CreateDynamicObject(978,3041.42871100,-1836.39514200,7.61111200,0.00000000,0.00000000,-270.00005842); //object(150)
CreateDynamicObject(978,3041.41601600,-1845.69506800,7.61111200,0.00000000,0.00000000,-270.00005842); //object(152)
CreateDynamicObject(978,3041.37036100,-1854.79858400,7.61111000,0.00000000,0.00000000,-270.00005842); //object(153)
CreateDynamicObject(978,3041.30102500,-1863.93335000,7.61111200,0.00000000,0.00000000,-270.00005842); //object(154)
CreateDynamicObject(978,3041.31835900,-1873.13110400,7.61111200,0.00000000,0.00000000,-270.00005842); //object(155)
CreateDynamicObject(978,3041.35766600,-1882.27429200,7.61111200,0.00000000,0.00000000,-270.00005842); //object(156)
CreateDynamicObject(978,3041.31982400,-1891.54943800,7.61111200,0.00000000,0.00000000,-270.00005842); //object(157)
CreateDynamicObject(978,3041.35742200,-1900.71118200,7.61111200,0.00000000,0.00000000,-270.00005842); //object(158)
CreateDynamicObject(978,3041.34350600,-1910.02551300,7.61111100,0.00000000,0.00000000,-270.00005842); //object(159)
CreateDynamicObject(978,3041.34570300,-1919.29565400,7.61111200,0.00000000,0.00000000,-270.00005842); //object(160)
CreateDynamicObject(978,3041.33129900,-1928.45910600,7.61111200,0.00000000,0.00000000,-270.00005842); //object(161)
CreateDynamicObject(978,3041.35986300,-1937.75537100,7.61111200,0.00000000,0.00000000,-270.00005842); //object(162)
CreateDynamicObject(978,3041.34838900,-1946.25415000,7.60919000,0.00000000,0.00000000,-270.00005842); //object(163)
CreateDynamicObject(978,3041.30517600,-1955.41174300,7.60919000,0.00000000,0.00000000,-270.00005842); //object(164)
CreateDynamicObject(978,3041.27368200,-1964.58862300,7.60919000,0.00000000,0.00000000,-270.00005842); //object(165)
CreateDynamicObject(978,3041.23657200,-1973.81518600,7.60918900,0.00000000,0.00000000,-270.00005842); //object(166)
CreateDynamicObject(978,3041.23657200,-1982.96911600,7.60919000,0.00000000,0.00000000,-270.00005842); //object(167)
CreateDynamicObject(978,3041.21533200,-1992.23522900,7.60919000,0.00000000,0.00000000,-270.00005842); //object(168)
CreateDynamicObject(978,3041.16040000,-2001.27087400,7.60918800,0.00000000,0.00000000,-270.00005842); //object(169)
CreateDynamicObject(978,3041.14648400,-2010.54187000,7.60919000,0.00000000,0.00000000,-270.00005842); //object(170)
CreateDynamicObject(978,3041.10498000,-2019.68493700,7.60919000,0.00000000,0.00000000,-270.00005842); //object(171)
CreateDynamicObject(978,3041.11425800,-2028.86621100,7.60919000,0.00000000,0.00000000,-270.00005842); //object(172)
CreateDynamicObject(978,3041.10498000,-2038.18566900,7.60918800,0.00000000,0.00000000,-270.00005842); //object(173)
CreateDynamicObject(978,3041.14746100,-2047.47595200,7.60918800,0.00000000,0.00000000,-270.00005842); //object(174)
CreateDynamicObject(978,3041.10131800,-2056.59033200,7.60919000,0.00000000,0.00000000,-270.00005842); //object(175)
CreateDynamicObject(978,3041.11743200,-2065.88891600,7.60919000,0.00000000,0.00000000,-270.00005842); //object(176)
CreateDynamicObject(978,3041.08154300,-2074.87939500,7.60918900,0.00000000,0.00000000,-270.00005842); //object(177)
CreateDynamicObject(978,3041.09448200,-2084.21411100,7.61009200,0.00000000,0.00000000,-270.00005842); //object(178)
CreateDynamicObject(978,3041.01391600,-2093.52197300,7.61009400,0.00000000,0.00000000,-270.00005842); //object(179)
CreateDynamicObject(978,3040.98535200,-2102.76733400,7.61009200,0.00000000,0.00000000,-270.00005842); //object(180)
CreateDynamicObject(978,3040.98730500,-2112.05322300,7.61009200,0.00000000,0.00000000,-270.00005842); //object(181)
CreateDynamicObject(978,3040.98584000,-2121.20947300,7.61009200,0.00000000,0.00000000,-270.00005842); //object(182)
CreateDynamicObject(978,3040.95117200,-2130.32421900,7.61009200,0.00000000,0.00000000,-270.00005842); //object(183)
CreateDynamicObject(978,3041.70043900,-2138.52099600,7.61009200,0.00000000,0.00000000,-258.75003211); //object(184)
CreateDynamicObject(978,3044.11450200,-2146.69873000,7.58968500,0.00000000,0.00000000,-247.50006310); //object(185)
CreateDynamicObject(10763,3101.55249000,-2119.09082000,39.50988800,0.00000000,0.00000000,-44.99999064); //object(186)
CreateDynamicObject(8038,3087.71362300,-2017.15136700,26.86474600,0.00000000,0.00000000,-180.00001985); //object(187)
CreateDynamicObject(4874,3085.69702100,-1913.32092300,10.59175100,0.00000000,0.00000000,89.99998128); //object(188)
CreateDynamicObject(3819,3239.83398400,-1783.69628900,7.62974500,0.00000000,0.00000000,-180.00001985); //object(190)
CreateDynamicObject(3819,3239.57690400,-1828.33923300,7.62974500,0.00000000,0.00000000,-180.00001985); //object(191)
CreateDynamicObject(3819,3239.92944300,-1870.17236300,7.62974500,0.00000000,0.00000000,-180.00001985); //object(192)
CreateDynamicObject(3819,3241.19018600,-1909.05651900,7.73422700,0.00000000,0.00000000,-180.00001985); //object(193)
CreateDynamicObject(3819,3240.25805700,-1947.87768600,7.73422700,0.00000000,0.00000000,-180.00001985); //object(194)
CreateDynamicObject(3819,3240.12109400,-1990.26489300,7.73422700,0.00000000,0.00000000,-180.00001985); //object(195)
CreateDynamicObject(3819,3239.86889600,-2032.37097200,7.73422500,0.00000000,0.00000000,-180.00001985); //object(196)
CreateDynamicObject(3819,3240.43579100,-2074.71655300,7.73422800,0.00000000,0.00000000,-180.00001985); //object(197)
CreateDynamicObject(615,3224.28198200,-2069.30712900,6.74329900,0.00000000,0.00000000,0.00000000); //object(198)
CreateDynamicObject(615,3246.81787100,-2138.23754900,6.73030600,0.00000000,0.00000000,0.00000000); //object(199)
CreateDynamicObject(615,3228.60668900,-2130.54980500,6.73030200,0.00000000,0.00000000,0.00000000); //object(200)
CreateDynamicObject(615,3216.32104500,-2109.78320300,6.74329900,0.00000000,0.00000000,0.00000000); //object(201)
CreateDynamicObject(615,3197.65771500,-2138.67846700,6.74329900,0.00000000,0.00000000,0.00000000); //object(202)
CreateDynamicObject(615,3194.08252000,-2074.55371100,6.74329900,0.00000000,0.00000000,0.00000000); //object(203)
CreateDynamicObject(615,3190.52636700,-2041.37268100,6.74330200,0.00000000,0.00000000,0.00000000); //object(204)
CreateDynamicObject(615,3198.03173800,-2006.29089400,6.74329900,0.00000000,0.00000000,0.00000000); //object(205)
CreateDynamicObject(615,3222.78418000,-2022.82824700,6.74329900,0.00000000,0.00000000,0.00000000); //object(206)
CreateDynamicObject(615,3200.01953100,-1977.32043500,6.74329900,0.00000000,0.00000000,0.00000000); //object(207)
CreateDynamicObject(615,3162.46484400,-1954.42956500,6.74329700,0.00000000,0.00000000,0.00000000); //object(208)
CreateDynamicObject(615,3182.09863300,-1987.76477100,6.74329900,0.00000000,0.00000000,0.00000000); //object(209)
CreateDynamicObject(615,3224.54199200,-1985.15844700,6.74329900,0.00000000,0.00000000,0.00000000); //object(210)
CreateDynamicObject(615,3224.93896500,-1945.19018600,6.73030200,0.00000000,0.00000000,0.00000000); //object(211)
CreateDynamicObject(615,3198.89941400,-1926.39318800,6.73030200,0.00000000,0.00000000,0.00000000); //object(212)
CreateDynamicObject(615,3162.37793000,-1889.21508800,6.62582100,0.00000000,0.00000000,0.00000000); //object(213)
CreateDynamicObject(615,3187.57885700,-1894.22839400,6.73030200,0.00000000,0.00000000,0.00000000); //object(214)
CreateDynamicObject(615,3188.05151400,-1860.11523400,6.72134600,0.00000000,0.00000000,0.00000000); //object(215)
CreateDynamicObject(615,3173.02417000,-1880.97656300,6.72134300,0.00000000,0.00000000,0.00000000); //object(216)
CreateDynamicObject(615,3199.22436500,-1832.69140600,6.72134600,0.00000000,0.00000000,0.00000000); //object(217)
CreateDynamicObject(615,3219.35229500,-1867.74816900,6.72134600,0.00000000,0.00000000,0.00000000); //object(218)
CreateDynamicObject(615,3225.91870100,-1908.07031300,6.73030200,0.00000000,0.00000000,0.00000000); //object(219)
CreateDynamicObject(615,3224.26025400,-1824.11035200,6.72134600,0.00000000,0.00000000,0.00000000); //object(220)
CreateDynamicObject(615,3179.18945300,-1797.96728500,6.72134600,0.00000000,0.00000000,0.00000000); //object(221)
CreateDynamicObject(615,3193.18237300,-1788.82299800,6.72134600,0.00000000,0.00000000,0.00000000); //object(222)
CreateDynamicObject(615,3195.89575200,-1761.65014600,6.72134600,0.00000000,0.00000000,0.00000000); //object(223)
CreateDynamicObject(615,3177.52246100,-1751.73938000,6.72134600,0.00000000,0.00000000,0.00000000); //object(224)
CreateDynamicObject(615,3217.87377900,-1767.12963900,6.72134600,0.00000000,0.00000000,0.00000000); //object(225)
CreateDynamicObject(615,3241.48974600,-1767.08581500,6.62582100,0.00000000,0.00000000,0.00000000); //object(226)
CreateDynamicObject(621,3086.55322300,-1894.83630400,6.63092900,0.00000000,0.00000000,0.00000000); //object(227)
CreateDynamicObject(621,3088.26733400,-1954.95007300,6.65288100,0.00000000,0.00000000,0.00000000); //object(228)
CreateDynamicObject(621,3110.60009800,-1930.55712900,6.63092900,0.00000000,0.00000000,0.00000000); //object(229)
CreateDynamicObject(621,3060.64770500,-1931.29309100,6.63092900,0.00000000,0.00000000,0.00000000); //object(230)
CreateDynamicObject(621,3102.05566400,-2064.41308600,6.65288100,0.00000000,0.00000000,0.00000000); //object(231)
CreateDynamicObject(621,3068.70361300,-2065.15795900,6.65288100,0.00000000,0.00000000,0.00000000); //object(232)
CreateDynamicObject(621,3100.75195300,-1978.80188000,6.65288100,0.00000000,0.00000000,0.00000000); //object(233)
CreateDynamicObject(621,3072.72265600,-1977.28112800,6.65288100,0.00000000,0.00000000,0.00000000); //object(234)
CreateDynamicObject(700,3121.49072300,-2110.03442400,7.26986400,0.00000000,0.00000000,0.00000000); //object(235)
CreateDynamicObject(700,3121.70971700,-2124.09350600,7.26986400,0.00000000,0.00000000,0.00000000); //object(236)
CreateDynamicObject(1284,3308.07910200,-1993.25293000,9.98072600,0.00000000,0.00000000,0.00000000); //object(238)
CreateDynamicObject(1284,3285.81030300,-1992.62194800,9.98072600,0.00000000,0.00000000,-180.00001985); //object(239)
CreateDynamicObject(5007,3237.22998000,-2176.22607400,9.66231100,0.00000000,0.00000000,-89.99998128); //object(241)
CreateDynamicObject(5005,3312.93261700,-2070.60351600,10.30328600,0.00000000,0.00000000,-89.99998128); //object(242)
CreateDynamicObject(5005,3313.02441400,-1907.73925800,10.20520600,0.00000000,0.00000000,-89.99998128); //object(243)
CreateDynamicObject(5007,3290.21899400,-1786.99987800,9.56269100,0.00000000,0.00000000,0.00000000); //object(244)
CreateDynamicObject(5005,3183.82959000,-1711.26940900,10.22585700,0.00000000,0.00000000,0.00000000); //object(245)
CreateDynamicObject(5007,3084.51342800,-1734.09387200,9.56180000,0.00000000,0.00000000,89.99998128); //object(247)
CreateDynamicObject(5005,3008.75415000,-1840.29577600,10.32240900,0.00000000,0.00000000,89.99998128); //object(248)
CreateDynamicObject(5005,3008.71997100,-2003.18884300,10.32048600,0.00000000,0.00000000,89.99998128); //object(249)
CreateDynamicObject(5007,3031.53442400,-2124.14770500,9.65733100,0.00000000,0.00000000,179.99996255); //object(250)
CreateDynamicObject(5005,3112.68432600,-2199.06616200,10.27483700,0.00000000,0.00000000,-179.99996255); //object(251)
CreateDynamicObject(8038,3081.46118200,-1821.15979000,26.84279300,0.00000000,0.00000000,-359.99998240); //object(252)
CreateDynamicObject(621,3101.70043900,-1863.44897500,6.63092900,0.00000000,0.00000000,0.00000000); //object(253)
CreateDynamicObject(621,3065.60693400,-1863.03418000,6.63092900,0.00000000,0.00000000,0.00000000); //object(254)
CreateDynamicObject(621,3063.99218800,-1774.41369600,6.63092900,0.00000000,0.00000000,0.00000000); //object(255)
CreateDynamicObject(621,3097.45629900,-1773.90356400,6.53235800,0.00000000,0.00000000,0.00000000); //object(257)
CreateDynamicObject(11490,3176.58178700,-1923.96826200,6.73215200,0.00000000,0.00000000,-89.99998128); //object(258)
CreateDynamicObject(11491,3165.58203100,-1923.99426300,8.23098900,0.00000000,0.00000000,-89.99998128); //object(253)
}



new Stats[MAX_PLAYERS];
CMD:race1( playerid, params[] )
{
SetPlayerRaceCheckpoint(playerid,0,3296.9915,-1994.4282,7.7518  ,3297.1333,-1904.8904,7.6537,20);
Stats[playerid] = 1;
SetPlayerPos(playerid,3265.8625,-2016.0192,7.7365);
TogglePlayerControllable(playerid, 0);
SetTimerEx("Apauza",5000, false, "i", playerid);
if(Stats[playerid] == 1)
 {
if(IsCountdownStarted == false)
{
Count = 25;
CountdownTimer = SetTimer("CountDown", 1000, 1);
IsCountdownStarted = true;
SendClientMessage(playerid, COLOR_BLUELIGHTER, "Pokrenuo si odbrojavanje");
new countstring[256];
new Name1[MAX_PLAYER_NAME];
    GetPlayerName(playerid,Name1,sizeof(Name1));
format(countstring, sizeof(countstring), "<!>""%s ""Je pokrenuo odbrojavanje", Name1);
SendClientMessageToAll(COLOR_BLUELIGHTER, countstring);
TogglePlayerControllable(playerid, 0);
}
}
else
{
SendClientMessage(playerid, COLOR_BLUELIGHTER, "Odbrojavanje je vec pokrenuto!");
  }    return 1;
}
public CountDown(playerid)
{
   switch(Count)
   {
       case 25: { GameTextForPlayer(playerid,"~b~-~r~ 25 ~b~-", 1100, 3); }
       case 24: { GameTextForPlayer(playerid,"~b~-~r~ 24 ~b~-", 1100, 3); }
       case 23: { GameTextForPlayer(playerid,"~b~-~r~ 23 ~b~-", 1100, 3); }
       case 22: { GameTextForPlayer(playerid,"~b~-~r~ 22 ~b~-", 1100, 3); }
       case 21: { GameTextForPlayer(playerid,"~b~-~r~ 21 ~b~-", 1100, 3); }
       case 20: { GameTextForPlayer(playerid,"~b~-~r~ 20 ~b~-", 1100, 3); }
       case 19: { GameTextForPlayer(playerid,"~b~-~r~ 19 ~b~-", 1100, 3); }
       case 18: { GameTextForPlayer(playerid,"~b~-~r~ 18 ~b~-", 1100, 3); }
       case 17: { GameTextForPlayer(playerid,"~b~-~r~ 17 ~b~-", 1100, 3); }
       case 16: { GameTextForPlayer(playerid,"~b~-~r~ 16 ~b~-", 1100, 3); }
       case 15: { GameTextForPlayer(playerid,"~b~-~r~ 15 ~b~-", 1100, 3); }
       case 14: { GameTextForPlayer(playerid,"~b~-~r~ 14 ~b~-", 1100, 3); }
       case 13: { GameTextForPlayer(playerid,"~b~-~r~ 13 ~b~-", 1100, 3); }
       case 12: { GameTextForPlayer(playerid,"~b~-~r~ 12 ~b~-", 1100, 3); }
       case 11: { GameTextForPlayer(playerid,"~b~-~r~ 11 ~b~-", 1100, 3); }
       case 10: { GameTextForPlayer(playerid,"~b~-~r~ 10 ~b~-", 1100, 3); }
       case 9: { GameTextForPlayer(playerid,"~b~-~r~ 9 ~b~-", 1100, 3); }
       case 8: { GameTextForPlayer(playerid,"~b~-~r~ 8 ~b~-", 1100, 3); }
       case 7: { GameTextForPlayer(playerid,"~b~-~r~ 7 ~b~-", 1100, 3); }
       case 6: { GameTextForPlayer(playerid,"~b~-~r~ 6 ~b~-", 1100, 3); }
       case 5: { GameTextForPlayer(playerid,"~b~-~r~ 5 ~b~-", 1100, 3); }
       case 4: { GameTextForPlayer(playerid,"~b~-~r~ 4 ~b~-", 1100, 3); }
       case 3: { GameTextForPlayer(playerid,"~b~-~r~ 3 ~b~-", 1100, 3); }
       case 2: { GameTextForPlayer(playerid,"~b~-~r~ 2 ~b~-", 1100, 3); }
       case 1: { GameTextForPlayer(playerid,"~b~-~r~ 1 ~b~-", 1100, 3); }
       case 0:
       {
        GameTextForAll("~b~-~g~ KRENI! ~b~-", 2000, 4);
        KillTimer(CountdownTimer);
        TogglePlayerControllable(playerid, 1);
          IsCountdownStarted = false;
}
   }
   Count--;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
   switch(Stats[playerid])
   {
       case 1:
       {
           DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3297.6702,-1972.7850,7.5966  ,3294.0305,-1750.3970,7.6752,17);
           Stats[playerid] = 2;
       return 1;
}
case 2:
{
   DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3294.0305,-1750.3970,7.6752  ,3169.9163,-1729.8904,7.6743,16);
           Stats[playerid] = 3;
           return 1;
  }
  case 3:
  {
    DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3169.9163,-1729.8904,7.6743  ,3026.6790,-1764.8152,7.6974,15);
           Stats[playerid] = 4;
           return 1;
      }
    case 4:
  {
    DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3026.6790,-1764.8152,7.6974  ,3024.6621,-1980.8496,7.7690,15);
           Stats[playerid] = 5;
           return 1;
      }
      case 5:
  {
    DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3024.6621,-1980.8496,7.7690  ,3049.2197,-2178.0625,7.7699,15);
           Stats[playerid] = 6;
           return 1;
      }
      case 6:
  {
    DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3049.2197,-2178.0625,7.7699  ,3230.8923,-2185.6265,7.7748,15);
           Stats[playerid] = 7;
           return 1;
      }
      case 7:
  {
    DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3230.8923,-2185.6265,7.7748  ,3297.9463,-2000.7732,7.7518,20);
           Stats[playerid] = 8;
           return 1;
      }
  case 8:
  {
       DisablePlayerRaceCheckpoint(playerid);
        PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3297.9463,-2000.7732,7.7518  ,3169.9163,-1729.8904,7.6743,20);
           Stats[playerid] = 9;
           return 1;
      }
      case 9:
       {
           DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3297.6702,-1972.7850,7.5966  ,3294.0305,-1750.3970,7.6752,17);
           Stats[playerid] = 10;
       return 1;
}
case 10:
{
   DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3294.0305,-1750.3970,7.6752  ,3169.9163,-1729.8904,7.6743,16);
           Stats[playerid] = 11;
           return 1;
  }
  case 11:
  {
    DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3169.9163,-1729.8904,7.6743  ,3026.6790,-1764.8152,7.6974,15);
           Stats[playerid] = 12;
           return 1;
      }
    case 12:
  {
    DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3026.6790,-1764.8152,7.6974  ,3024.6621,-1980.8496,7.7690,15);
           Stats[playerid] = 13;
           return 1;
      }
      case 13:
  {
    DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3024.6621,-1980.8496,7.7690  ,3049.2197,-2178.0625,7.7699,15);
           Stats[playerid] = 14;
           return 1;
      }
      case 14:
  {
    DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3049.2197,-2178.0625,7.7699  ,3230.8923,-2185.6265,7.7748,15);
           Stats[playerid] = 15;
           return 1;
      }
      case 15:
  {
    DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3230.8923,-2185.6265,7.7748  ,3297.9463,-2000.7732,7.7518,20);
           Stats[playerid] = 16;
           return 1;
      }
  case 16:
  {
       DisablePlayerRaceCheckpoint(playerid);
        PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,1,3297.9463,-2000.7732,7.7518  ,3169.9163,-1729.8904,7.6743,20);
           Stats[playerid] = 17;
           return 1;
      }
  case 17:
       {
           DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3297.6702,-1972.7850,7.5966  ,3294.0305,-1750.3970,7.6752,17);
           Stats[playerid] = 18;
           new name[MAX_PLAYER_NAME],string[128];
   new Prize[2];
           GetPlayerName(playerid,name,sizeof(name));
Position++;
switch(Position)
{
   case 1: Prize[0] = (random(random(5000)) + 1000), Prize[1] = 4;
   case 2: Prize[0] = (random(random(4500)) + 500), Prize[1] = 3;
   case 3: Prize[0] = (random(random(4000)) + 100), Prize[1] = 2;
   default: Prize[0] = random(random(1000)), Prize[1] = 1;
}
format(string, sizeof(string), ">> \"%s\" je zavrsio trku na mestu broj: \"%d\".", name, Position);
SendClientMessageToAll(COLOR_BLUELIGHTER, string);
GivePlayerMoney(playerid, Prize[0]);
SetPlayerScore(playerid, GetPlayerScore(playerid) + Prize[1]);
DisablePlayerRaceCheckpoint(playerid);
new veh;
veh = GetPlayerVehicleID(playerid);
DestroyVehicle(veh);

  return 1;
  }
   }
return 1;
}
CMD:unistivozilo1( playerid, params[] )
{
new veh;
veh = GetPlayerVehicleID(playerid);
DestroyVehicle(veh);

return 1;
}

public OnPlayerLeaveDynamicRaceCP(playerid)
{

return 1;
}

public Apauza(playerid)
{
       TogglePlayerControllable(playerid, 1);
       new v1;
new v2;
new v3;
new v4;
new v5;
new v6;
new v7;
new v8;


v8 = AddStaticVehicle(502,3283.2563,-2003.9150,7.6455,359.8466,106,111); // Car For Nascar
PutPlayerInVehicle(playerid, v1, 0);
v7 = AddStaticVehicle(502,3286.8547,-2004.0153,7.6438,359.7943,106,111); // Car For Nascar
PutPlayerInVehicle(playerid, v2, 0);
v6 = AddStaticVehicle(502,3291.1130,-2003.9799,7.6434,1.1083,106,111); // Car For Nascar
PutPlayerInVehicle(playerid, v3, 0);
v5 = AddStaticVehicle(502,3294.9771,-2003.8898,7.6448,0.9994,106,111); // Car For Nascar
PutPlayerInVehicle(playerid, v4, 0);
v4 = AddStaticVehicle(502,3298.8779,-2003.8682,7.6444,359.4363,106,111); // Car For Nascar
PutPlayerInVehicle(playerid, v5, 0);
v3 = AddStaticVehicle(502,3303.0161,-2003.6724,7.6468,359.5585,106,111); // Car For Nascar
PutPlayerInVehicle(playerid, v6, 0);
v2 = AddStaticVehicle(502,3306.9329,-2003.7428,7.6433,0.9824,106,111); // Car For Nascar
PutPlayerInVehicle(playerid, v7, 0);
v1 = AddStaticVehicle(502,3310.7605,-2003.7440,7.6443,359.1508,106,111); // Car For Nascar
PutPlayerInVehicle(playerid, v8, 0);
TogglePlayerControllable(playerid, 0);
return 1;
}


Ovo iznad je ta FS, samo malo preradjena, tj to sam ja pokusavao da preradim dok sam jos bio totalni pocetnik u skriptanu...
Poslednja Izmena: Januar 05, 2012, 19:14:29 POSLE PODNE od [FG]Maki187

krivo si ga razumio ovo addplayer class kako vise to je on na samu sejvo sa/save di bi bili cpovi ako razumijes

Citat: [FG]Maki187 poslato Januar 05, 2012, 19:01:18 POSLE PODNE
Ja sam ti gore napisao sta da uradis i pokusao da ti pomognem, al ti odbijas pomoc.... ponovo procitaj post i upotrebi mozak i skontaces sta sam rekao...... AddPlayerClass nema nikakve veze sa cp-ovima, ako mi neverujes izvoli...
http://wiki.sa-mp.com/wiki/AddPlayerClass

koristi SetPlayerRaceCheckpoint
pod publicom OnPlayerEnterRaceCheckpoint


obican SetPlayerCheckPoint sluzi da se samo tom igracu psotavi CP, odnosno drugi ga nevide i nekoristi se za evente...

btw, taj link sto si mi dao... tamo nigde nema AddPlayerClass...
edit:

I koristi disable
if(PlayerInfo[playerid][pUtrka] == 2)
                       {
                            PlayerInfo[playerid][pUtrka] = 3;
                            DisablePlayerRaceCheckpoint(playerid);
                            SetPlayerRaceCheckpoint(playerid, 1491.6249,-2492.4900,13.5547, 2.0);// kao sto vidite u race cp unosite iduci cp i onaj iza njega
                  }


AKo pogledas detaljnije njegov tut videces da mu pise DisablePlayerRaceCheckpoint

ranije je bila jedna fs sa eventom, al nemogu da je nadjem sad...

#include <a_samp>
#include <streamer>
#include <zcmd>
new Position;
#define COLOR_BLUELIGHTER 0x00BFFFAA //SVETLO PLAVA UZEO SAM BOJU IZ MODA//
new Count;
new bool: IsCountdownStarted;
new CountdownTimer;
forward CountDown(playerid);
forward OnPlayerLeaveDynamicRaceCP(playerid);
forward Apauza(playerid);

    /////////////NEMA IME EVENT/TRKA BY:ACKE////////////////////////////////


public OnGameModeInit()
{

CreateDynamicObject(8171,3023.52807600,-2007.39392100,6.76897000,0.00000000,0.00000000,0.00000000); //object
CreateDynamicObject(8171,3023.50048800,-1869.11267100,6.77089200,0.00000000,0.00000000,0.00000000); //object(1)
CreateDynamicObject(8344,3047.70190400,-2141.35913100,6.76987200,0.00000000,0.00000000,0.00000000); //object(6)
CreateDynamicObject(8343,3273.59716800,-2157.99755900,6.77484700,0.00000000,0.00000000,-180.00001985); //object(7)
CreateDynamicObject(8171,3160.54248000,-2180.83789100,6.72332000,0.00000000,0.00000000,-89.99998128); //object(8)
CreateDynamicObject(8171,3297.65161100,-2040.55688500,6.75176900,0.00000000,0.00000000,0.00000000); //object(9)
CreateDynamicObject(8171,3297.60107400,-1902.24328600,6.65369000,0.00000000,0.00000000,0.00000000); //object(10)
CreateDynamicObject(8343,3047.61816400,-1752.00109900,6.69741900,0.00000000,0.00000000,-0.00005730); //object(11)
CreateDynamicObject(8171,3161.11792000,-1729.28759800,6.67434000,0.00000000,0.00000000,-89.99998128); //object(12)
CreateDynamicObject(8344,3273.54199200,-1768.96704100,6.67523800,0.00000000,0.00000000,-179.99996255); //object(13)
CreateDynamicObject(4867,3133.23413100,-1850.19421400,6.62894200,0.00000000,0.00000000,-89.99998128); //object(14)
CreateDynamicObject(4867,3133.25952100,-2061.14404300,6.74946500,0.00000000,0.00000000,-89.99998128); //object(15)
CreateDynamicObject(4866,3217.46679700,-1901.08190900,6.63198700,0.00000000,0.00000000,-269.99994383); //object(16)
CreateDynamicObject(4866,3217.16284200,-2047.18737800,6.73646900,0.00000000,0.00000000,-269.99994383); //object(17)
CreateDynamicObject(8253,3224.22436500,-2089.74365200,10.67725200,0.00000000,0.00000000,0.00000000); //object(18)
CreateDynamicObject(8253,3223.22631800,-2047.70800800,10.67725200,0.00000000,0.00000000,0.00000000); //object(19)
CreateDynamicObject(8253,3223.79418900,-2005.71252400,10.67725600,0.00000000,0.00000000,0.00000000); //object(20)
CreateDynamicObject(8253,3224.37451200,-1965.04980500,10.67725200,0.00000000,0.00000000,0.00000000); //object(21)
CreateDynamicObject(8253,3225.05542000,-1924.17724600,10.56425900,0.00000000,0.00000000,0.00000000); //object(22)
CreateDynamicObject(8253,3224.6server uklonjen!900,-1889.01306200,10.70529900,0.00000000,0.00000000,0.00000000); //object(23)
CreateDynamicObject(8253,3223.63061500,-1848.04211400,10.70529900,0.00000000,0.00000000,0.00000000); //object(24)
CreateDynamicObject(8253,3223.43359400,-1802.07653800,10.70529900,0.00000000,0.00000000,0.00000000); //object(25)
CreateDynamicObject(978,3264.09497100,-2159.11889600,7.57668900,0.00000000,0.00000000,-44.99999064); //object(27)
CreateDynamicObject(978,3258.91210900,-2152.07690400,7.47669700,0.00000000,0.00000000,-56.25001695); //object(28)
CreateDynamicObject(978,3254.68261700,-2144.15283200,7.47669600,0.00000000,0.00000000,-67.49998596); //object(29)
CreateDynamicObject(978,3251.28955100,-2136.06225600,7.57668900,0.00000000,0.00000000,-67.49998596); //object(30)
CreateDynamicObject(978,3247.48071300,-2126.94384800,7.57668900,0.00000000,0.00000000,-67.49998596); //object(31)
CreateDynamicObject(978,3244.74243200,-2117.39550800,7.57668900,0.00000000,0.00000000,-78.75001226); //object(32)
CreateDynamicObject(978,3243.80590800,-2108.67553700,7.47669400,0.00000000,0.00000000,-89.99998128); //object(33)
CreateDynamicObject(978,3243.26879900,-2073.02392600,7.47669500,0.00000000,0.00000000,-89.99998128); //object(34)
CreateDynamicObject(978,3243.11816400,-2064.36889600,7.47669500,0.00000000,0.00000000,-89.99998128); //object(35)
CreateDynamicObject(978,3243.58837900,-2032.04785200,7.47669500,0.00000000,0.00000000,-89.99998128); //object(36)
CreateDynamicObject(978,3243.60156300,-2023.10498000,7.47669300,0.00000000,0.00000000,-89.99998128); //object(37)
CreateDynamicObject(978,3243.12036100,-1990.30200200,7.47669500,0.00000000,0.00000000,-89.99998128); //object(38)
CreateDynamicObject(978,3243.11962900,-1982.33911100,7.47669500,0.00000000,0.00000000,-89.99998128); //object(39)
CreateDynamicObject(978,3243.45117200,-1948.57763700,7.47669300,0.00000000,0.00000000,-89.99998128); //object(40)
CreateDynamicObject(978,3243.25195300,-1939.87255900,7.47669700,0.00000000,0.00000000,-89.99998128); //object(41)
CreateDynamicObject(978,3244.01269500,-1910.70263700,7.47669500,0.00000000,0.00000000,-89.99998128); //object(42)
CreateDynamicObject(978,3244.00341800,-1904.27331500,7.47220700,0.00000000,0.00000000,-89.99998128); //object(43)
CreateDynamicObject(978,3243.26245100,-1872.66149900,7.47220700,0.00000000,0.00000000,-89.99998128); //object(44)
CreateDynamicObject(978,3243.19970700,-1864.90429700,7.47220700,0.00000000,0.00000000,-89.99998128); //object(45)
CreateDynamicObject(978,3243.10522500,-1831.99682600,7.47220700,0.00000000,0.00000000,-89.99998128); //object(46)
CreateDynamicObject(978,3243.10815400,-1822.77844200,7.47220700,0.00000000,0.00000000,-89.99998128); //object(47)
CreateDynamicObject(978,3243.34179700,-1784.34460400,7.47220900,0.00000000,0.00000000,-89.99998128); //object(48)
CreateDynamicObject(978,3244.21557600,-1774.89245600,7.47220700,0.00000000,0.00000000,-101.25000758); //object(49)
CreateDynamicObject(978,3246.83715800,-1766.24609400,7.47220500,0.00000000,0.00000000,-112.49997660); //object(50)
CreateDynamicObject(978,3251.13916000,-1758.53955100,7.47220700,0.00000000,0.00000000,-123.74994561); //object(51)
CreateDynamicObject(978,3256.58984400,-1752.05603000,7.47220700,0.00000000,0.00000000,-134.99997191); //object(52)
CreateDynamicObject(978,3262.38989300,-1746.09924300,7.47220500,0.00000000,0.00000000,-134.99997191); //object(53)
CreateDynamicObject(978,3277.68798800,-2136.88671900,7.61506700,0.00000000,0.00000000,-89.99998128); //object(49)
CreateDynamicObject(978,3277.52661100,-2127.63061500,7.47669500,0.00000000,0.00000000,-89.99998128); //object(50)
CreateDynamicObject(978,3277.52221700,-2118.70190400,7.47669500,0.00000000,0.00000000,-89.99998128); //object(51)
CreateDynamicObject(978,3277.56372100,-2109.60376000,7.47669700,0.00000000,0.00000000,-89.99998128); //object(52)
CreateDynamicObject(978,3277.54394500,-2100.42846700,7.47669300,0.00000000,0.00000000,-89.99998128); //object(53)
CreateDynamicObject(978,3277.69677700,-2091.68335000,7.59198900,0.00000000,0.00000000,-89.99998128); //object(54)
CreateDynamicObject(978,3277.70434600,-2082.80151400,7.59198900,0.00000000,0.00000000,-89.99998128); //object(55)
CreateDynamicObject(978,3277.72753900,-2073.57666000,7.59198900,0.00000000,0.00000000,-89.99998128); //object(56)
CreateDynamicObject(978,3277.68872100,-2064.06835900,7.47669500,0.00000000,0.00000000,-89.99998128); //object(57)
CreateDynamicObject(978,3277.64502000,-2054.80468800,7.47669500,0.00000000,0.00000000,-89.99998128); //object(58)
CreateDynamicObject(978,3277.59692400,-2045.63256800,7.47669400,0.00000000,0.00000000,-89.99998128); //object(59)
CreateDynamicObject(978,3277.60815400,-2036.54772900,7.47669500,0.00000000,0.00000000,-89.99998128); //object(60)
CreateDynamicObject(978,3277.58496100,-2027.21533200,7.47669500,0.00000000,0.00000000,-89.99998128); //object(61)
CreateDynamicObject(978,3277.59326200,-2017.94873000,7.47669500,0.00000000,0.00000000,-89.99998128); //object(62)
CreateDynamicObject(978,3277.49877900,-2008.50329600,7.47669500,0.00000000,0.00000000,-89.99998128); //object(63)
CreateDynamicObject(978,3277.51684600,-1999.33117700,7.47669500,0.00000000,0.00000000,-89.99998128); //object(64)
CreateDynamicObject(978,3277.58544900,-1990.18139600,7.47669500,0.00000000,0.00000000,-89.99998128); //object(65)
CreateDynamicObject(978,3277.58544900,-1980.86462400,7.47669500,0.00000000,0.00000000,-89.99998128); //object(66)
CreateDynamicObject(978,3277.60742200,-1971.67907700,7.47669500,0.00000000,0.00000000,-89.99998128); //object(67)
CreateDynamicObject(978,3277.62158200,-1962.51171900,7.49391000,0.00000000,0.00000000,-89.99998128); //object(68)
CreateDynamicObject(978,3277.64086900,-1953.19299300,7.49391000,0.00000000,0.00000000,-89.99998128); //object(69)
CreateDynamicObject(978,3277.69775400,-1943.88720700,7.49391000,0.00000000,0.00000000,-89.99998128); //object(70)
CreateDynamicObject(978,3277.64306600,-1934.49646000,7.49390900,0.00000000,0.00000000,-89.99998128); //object(71)
CreateDynamicObject(978,3277.66186500,-1925.32226600,7.49391000,0.00000000,0.00000000,-89.99998128); //object(72)
CreateDynamicObject(978,3277.68066400,-1915.94799800,7.49391000,0.00000000,0.00000000,-89.99998128); //object(73)
CreateDynamicObject(978,3277.6server uklonjen!900,-1906.64831500,7.49391100,0.00000000,0.00000000,-89.99998128); //object(74)
CreateDynamicObject(978,3277.67553700,-1897.28271500,7.49391000,0.00000000,0.00000000,-89.99998128); //object(75)
CreateDynamicObject(978,3277.66748000,-1887.93115200,7.49391000,0.00000000,0.00000000,-89.99998128); //object(76)
CreateDynamicObject(978,3277.65576200,-1878.69751000,7.49391000,0.00000000,0.00000000,-89.99998128); //object(77)
CreateDynamicObject(978,3277.70434600,-1869.55798300,7.49391000,0.00000000,0.00000000,-89.99998128); //object(78)
CreateDynamicObject(978,3277.63549800,-1860.06494100,7.49391000,0.00000000,0.00000000,-89.99998128); //object(79)
CreateDynamicObject(978,3277.57836900,-1850.72961400,7.47220700,0.00000000,0.00000000,-89.99998128); //object(80)
CreateDynamicObject(978,3277.58374000,-1841.62219200,7.47220700,0.00000000,0.00000000,-89.99998128); //object(81)
CreateDynamicObject(978,3277.61230500,-1832.79809600,7.47220700,0.00000000,0.00000000,-89.99998128); //object(82)
CreateDynamicObject(978,3277.58520500,-1823.60009800,7.47220700,0.00000000,0.00000000,-89.99998128); //object(83)
CreateDynamicObject(978,3277.59301800,-1814.67272900,7.47220700,0.00000000,0.00000000,-89.99998128); //object(84)
CreateDynamicObject(978,3277.68750000,-1805.80749500,7.47220700,0.00000000,0.00000000,-89.99998128); //object(85)
CreateDynamicObject(978,3277.79150400,-1796.86450200,7.51545800,0.00000000,0.00000000,-89.99998128); //object(86)
CreateDynamicObject(978,3277.76098600,-1787.75170900,7.51545800,0.00000000,0.00000000,-89.99998128); //object(87)
CreateDynamicObject(978,3277.71server uklonjen!00,-1778.73254400,7.47220700,0.00000000,0.00000000,-89.99998128); //object(88)
CreateDynamicObject(978,3277.70092800,-1769.75878900,7.47220600,0.00000000,0.00000000,-89.99998128); //object(89)
CreateDynamicObject(978,3243.05249000,-1817.40820300,7.47220700,0.00000000,0.00000000,-89.99998128); //object(90)
CreateDynamicObject(978,3262.77807600,-2164.02612300,7.61506700,0.00000000,0.00000000,-157.49996723); //object(91)
CreateDynamicObject(978,3253.94262700,-2165.74414100,7.57668900,0.00000000,0.00000000,-180.00001985); //object(92)
CreateDynamicObject(978,3244.83862300,-2165.69067400,7.61506900,0.00000000,0.00000000,-180.00001985); //object(93)
CreateDynamicObject(978,3236.34838900,-2165.70092800,7.61506700,0.00000000,0.00000000,-180.00001985); //object(94)
CreateDynamicObject(978,3227.13647500,-2165.71948200,7.57668900,0.00000000,0.00000000,-180.00001985); //object(95)
CreateDynamicObject(978,3217.75439500,-2165.67944300,7.58968500,0.00000000,0.00000000,-180.00001985); //object(96)
CreateDynamicObject(978,3208.41577100,-2165.61279300,7.58968700,0.00000000,0.00000000,-191.25004616); //object(97)
CreateDynamicObject(978,3199.05371100,-2165.65429700,7.58968500,0.00000000,0.00000000,-180.00001985); //object(98)
CreateDynamicObject(978,3189.80029300,-2165.64770500,7.58968500,0.00000000,0.00000000,-180.00001985); //object(99)
CreateDynamicObject(978,3180.86230500,-2165.56225600,7.58968500,0.00000000,0.00000000,-180.00001985); //object(100)
CreateDynamicObject(978,3171.78295900,-2165.52441400,7.58968500,0.00000000,0.00000000,-180.00001985); //object(101)
CreateDynamicObject(978,3162.56030300,-2165.47021500,7.58968600,0.00000000,0.00000000,-180.00001985); //object(102)
CreateDynamicObject(978,3153.26098600,-2165.43530300,7.58968500,0.00000000,0.00000000,-180.00001985); //object(103)
CreateDynamicObject(978,3144.43286100,-2165.38476600,7.58968500,0.00000000,0.00000000,-180.00001985); //object(104)
CreateDynamicObject(978,3135.25561500,-2165.37500000,7.58968500,0.00000000,0.00000000,-180.00001985); //object(105)
CreateDynamicObject(978,3125.89111300,-2165.32470700,7.58968100,0.00000000,0.00000000,-180.00001985); //object(106)
CreateDynamicObject(978,3116.64819300,-2165.27856400,7.58968500,0.00000000,0.00000000,-180.00001985); //object(107)
CreateDynamicObject(978,3107.69213900,-2165.25659200,7.58968500,0.00000000,0.00000000,-180.00001985); //object(108)
CreateDynamicObject(978,3098.95043900,-2165.14209000,7.58968500,0.00000000,0.00000000,-180.00001985); //object(109)
CreateDynamicObject(978,3089.94287100,-2165.15161100,7.61009200,0.00000000,0.00000000,-180.00001985); //object(110)
CreateDynamicObject(978,3080.70166000,-2165.16821300,7.61009200,0.00000000,0.00000000,-180.00001985); //object(111)
CreateDynamicObject(978,3071.60058600,-2165.13793900,7.58968500,0.00000000,0.00000000,-180.00001985); //object(112)
CreateDynamicObject(978,3062.62646500,-2164.41064500,7.58968500,0.00000000,0.00000000,-191.24998886); //object(113)
CreateDynamicObject(978,3054.37329100,-2161.06152300,7.58968500,0.00000000,0.00000000,-213.74998418); //object(114)
CreateDynamicObject(978,3048.28784200,-2154.54077100,7.58968400,0.00000000,0.00000000,-236.25003679); //object(115)
CreateDynamicObject(978,3261.16162100,-1741.87353500,7.51545800,0.00000000,0.00000000,-11.25002631); //object(116)
CreateDynamicObject(978,3252.24609400,-1740.99670400,7.51545800,0.00000000,0.00000000,0.00000000); //object(117)
CreateDynamicObject(978,3243.29394500,-1740.97424300,7.51545800,0.00000000,0.00000000,0.00000000); //object(118)
CreateDynamicObject(978,3234.21972700,-1741.06115700,7.51545800,0.00000000,0.00000000,0.00000000); //object(119)
CreateDynamicObject(978,3224.99707000,-1741.12280300,7.51456000,0.00000000,0.00000000,0.00000000); //object(120)
CreateDynamicObject(978,3215.62109400,-1741.18029800,7.51456000,0.00000000,0.00000000,0.00000000); //object(121)
CreateDynamicObject(978,3206.28906300,-1741.27099600,7.51456000,0.00000000,0.00000000,0.00000000); //object(122)
CreateDynamicObject(978,3196.90112300,-1741.32116700,7.51456000,0.00000000,0.00000000,0.00000000); //object(123)
CreateDynamicObject(978,3187.52490200,-1741.35864300,7.51456000,0.00000000,0.00000000,0.00000000); //object(124)
CreateDynamicObject(978,3178.14917000,-1741.35070800,7.51456000,0.00000000,0.00000000,0.00000000); //object(125)
CreateDynamicObject(978,3168.75366200,-1741.36779800,7.51456000,0.00000000,0.00000000,0.00000000); //object(126)
CreateDynamicObject(978,3160.21728500,-1741.33850100,7.51456000,0.00000000,0.00000000,0.00000000); //object(127)
CreateDynamicObject(978,3151.10229500,-1741.35864300,7.51456200,0.00000000,0.00000000,0.00000000); //object(128)
CreateDynamicObject(978,3142.70117200,-1741.43908700,7.51456000,0.00000000,0.00000000,0.00000000); //object(129)
CreateDynamicObject(978,3133.58300800,-1741.50988800,7.51456200,0.00000000,0.00000000,0.00000000); //object(130)
CreateDynamicObject(978,3124.68066400,-1741.41931200,7.51456000,0.00000000,0.00000000,0.00000000); //object(131)
CreateDynamicObject(978,3115.72802700,-1741.36291500,7.51456000,0.00000000,0.00000000,0.00000000); //object(132)
CreateDynamicObject(978,3106.72534200,-1741.32812500,7.51456000,0.00000000,0.00000000,0.00000000); //object(133)
CreateDynamicObject(978,3098.15576200,-1741.27807600,7.51456000,0.00000000,0.00000000,0.00000000); //object(134)
CreateDynamicObject(978,3090.03344700,-1741.21374500,7.61263900,0.00000000,0.00000000,0.00000000); //object(135)
CreateDynamicObject(978,3081.22998000,-1741.17419400,7.61263900,0.00000000,0.00000000,0.00000000); //object(136)
CreateDynamicObject(978,3072.47851600,-1741.02893100,7.61263900,0.00000000,0.00000000,0.00000000); //object(137)
CreateDynamicObject(978,3064.01342800,-1741.00598100,7.61263900,0.00000000,0.00000000,0.00000000); //object(138)
CreateDynamicObject(978,3055.53515600,-1742.73205600,7.61264100,0.00000000,0.00000000,22.49999532); //object(139)
CreateDynamicObject(978,3048.37841800,-1747.45507800,7.61773300,0.00000000,0.00000000,44.99999064); //object(140)
CreateDynamicObject(978,3043.28808600,-1755.08215300,7.61773300,0.00000000,0.00000000,67.49998596); //object(141)
CreateDynamicObject(978,3041.55395500,-1763.85095200,7.61263900,0.00000000,0.00000000,89.99998128); //object(142)
CreateDynamicObject(978,3041.54418900,-1772.35131800,7.61263900,0.00000000,0.00000000,-270.00005842); //object(143)
CreateDynamicObject(978,3041.52783200,-1780.94653300,7.61263900,0.00000000,0.00000000,-270.00005842); //object(144)
CreateDynamicObject(978,3041.56176800,-1790.15991200,7.61263900,0.00000000,0.00000000,-270.00005842); //object(145)
CreateDynamicObject(978,3041.53173800,-1799.33459500,7.61263900,0.00000000,0.00000000,-270.00005842); //object(146)
CreateDynamicObject(978,3041.49438500,-1808.50061000,7.61111200,0.00000000,0.00000000,-270.00005842); //object(147)
CreateDynamicObject(978,3041.51953100,-1817.79614300,7.61111000,0.00000000,0.00000000,-270.00005842); //object(148)
CreateDynamicObject(978,3041.47387700,-1827.14477500,7.61111200,0.00000000,0.00000000,-270.00005842); //object(149)
CreateDynamicObject(978,3041.42871100,-1836.39514200,7.61111200,0.00000000,0.00000000,-270.00005842); //object(150)
CreateDynamicObject(978,3041.41601600,-1845.69506800,7.61111200,0.00000000,0.00000000,-270.00005842); //object(152)
CreateDynamicObject(978,3041.37036100,-1854.79858400,7.61111000,0.00000000,0.00000000,-270.00005842); //object(153)
CreateDynamicObject(978,3041.30102500,-1863.93335000,7.61111200,0.00000000,0.00000000,-270.00005842); //object(154)
CreateDynamicObject(978,3041.31835900,-1873.13110400,7.61111200,0.00000000,0.00000000,-270.00005842); //object(155)
CreateDynamicObject(978,3041.35766600,-1882.27429200,7.61111200,0.00000000,0.00000000,-270.00005842); //object(156)
CreateDynamicObject(978,3041.31982400,-1891.54943800,7.61111200,0.00000000,0.00000000,-270.00005842); //object(157)
CreateDynamicObject(978,3041.35742200,-1900.71118200,7.61111200,0.00000000,0.00000000,-270.00005842); //object(158)
CreateDynamicObject(978,3041.34350600,-1910.02551300,7.61111100,0.00000000,0.00000000,-270.00005842); //object(159)
CreateDynamicObject(978,3041.34570300,-1919.29565400,7.61111200,0.00000000,0.00000000,-270.00005842); //object(160)
CreateDynamicObject(978,3041.33129900,-1928.45910600,7.61111200,0.00000000,0.00000000,-270.00005842); //object(161)
CreateDynamicObject(978,3041.35986300,-1937.75537100,7.61111200,0.00000000,0.00000000,-270.00005842); //object(162)
CreateDynamicObject(978,3041.34838900,-1946.25415000,7.60919000,0.00000000,0.00000000,-270.00005842); //object(163)
CreateDynamicObject(978,3041.30517600,-1955.41174300,7.60919000,0.00000000,0.00000000,-270.00005842); //object(164)
CreateDynamicObject(978,3041.27368200,-1964.58862300,7.60919000,0.00000000,0.00000000,-270.00005842); //object(165)
CreateDynamicObject(978,3041.23657200,-1973.81518600,7.60918900,0.00000000,0.00000000,-270.00005842); //object(166)
CreateDynamicObject(978,3041.23657200,-1982.96911600,7.60919000,0.00000000,0.00000000,-270.00005842); //object(167)
CreateDynamicObject(978,3041.21533200,-1992.23522900,7.60919000,0.00000000,0.00000000,-270.00005842); //object(168)
CreateDynamicObject(978,3041.16040000,-2001.27087400,7.60918800,0.00000000,0.00000000,-270.00005842); //object(169)
CreateDynamicObject(978,3041.14648400,-2010.54187000,7.60919000,0.00000000,0.00000000,-270.00005842); //object(170)
CreateDynamicObject(978,3041.10498000,-2019.68493700,7.60919000,0.00000000,0.00000000,-270.00005842); //object(171)
CreateDynamicObject(978,3041.11425800,-2028.86621100,7.60919000,0.00000000,0.00000000,-270.00005842); //object(172)
CreateDynamicObject(978,3041.10498000,-2038.18566900,7.60918800,0.00000000,0.00000000,-270.00005842); //object(173)
CreateDynamicObject(978,3041.14746100,-2047.47595200,7.60918800,0.00000000,0.00000000,-270.00005842); //object(174)
CreateDynamicObject(978,3041.10131800,-2056.59033200,7.60919000,0.00000000,0.00000000,-270.00005842); //object(175)
CreateDynamicObject(978,3041.11743200,-2065.88891600,7.60919000,0.00000000,0.00000000,-270.00005842); //object(176)
CreateDynamicObject(978,3041.08154300,-2074.87939500,7.60918900,0.00000000,0.00000000,-270.00005842); //object(177)
CreateDynamicObject(978,3041.09448200,-2084.21411100,7.61009200,0.00000000,0.00000000,-270.00005842); //object(178)
CreateDynamicObject(978,3041.01391600,-2093.52197300,7.61009400,0.00000000,0.00000000,-270.00005842); //object(179)
CreateDynamicObject(978,3040.98535200,-2102.76733400,7.61009200,0.00000000,0.00000000,-270.00005842); //object(180)
CreateDynamicObject(978,3040.98730500,-2112.05322300,7.61009200,0.00000000,0.00000000,-270.00005842); //object(181)
CreateDynamicObject(978,3040.98584000,-2121.20947300,7.61009200,0.00000000,0.00000000,-270.00005842); //object(182)
CreateDynamicObject(978,3040.95117200,-2130.32421900,7.61009200,0.00000000,0.00000000,-270.00005842); //object(183)
CreateDynamicObject(978,3041.70043900,-2138.52099600,7.61009200,0.00000000,0.00000000,-258.75003211); //object(184)
CreateDynamicObject(978,3044.11450200,-2146.69873000,7.58968500,0.00000000,0.00000000,-247.50006310); //object(185)
CreateDynamicObject(10763,3101.55249000,-2119.09082000,39.50988800,0.00000000,0.00000000,-44.99999064); //object(186)
CreateDynamicObject(8038,3087.71362300,-2017.15136700,26.86474600,0.00000000,0.00000000,-180.00001985); //object(187)
CreateDynamicObject(4874,3085.69702100,-1913.32092300,10.59175100,0.00000000,0.00000000,89.99998128); //object(188)
CreateDynamicObject(3819,3239.83398400,-1783.69628900,7.62974500,0.00000000,0.00000000,-180.00001985); //object(190)
CreateDynamicObject(3819,3239.57690400,-1828.33923300,7.62974500,0.00000000,0.00000000,-180.00001985); //object(191)
CreateDynamicObject(3819,3239.92944300,-1870.17236300,7.62974500,0.00000000,0.00000000,-180.00001985); //object(192)
CreateDynamicObject(3819,3241.19018600,-1909.05651900,7.73422700,0.00000000,0.00000000,-180.00001985); //object(193)
CreateDynamicObject(3819,3240.25805700,-1947.87768600,7.73422700,0.00000000,0.00000000,-180.00001985); //object(194)
CreateDynamicObject(3819,3240.12109400,-1990.26489300,7.73422700,0.00000000,0.00000000,-180.00001985); //object(195)
CreateDynamicObject(3819,3239.86889600,-2032.37097200,7.73422500,0.00000000,0.00000000,-180.00001985); //object(196)
CreateDynamicObject(3819,3240.43579100,-2074.71655300,7.73422800,0.00000000,0.00000000,-180.00001985); //object(197)
CreateDynamicObject(615,3224.28198200,-2069.30712900,6.74329900,0.00000000,0.00000000,0.00000000); //object(198)
CreateDynamicObject(615,3246.81787100,-2138.23754900,6.73030600,0.00000000,0.00000000,0.00000000); //object(199)
CreateDynamicObject(615,3228.60668900,-2130.54980500,6.73030200,0.00000000,0.00000000,0.00000000); //object(200)
CreateDynamicObject(615,3216.32104500,-2109.78320300,6.74329900,0.00000000,0.00000000,0.00000000); //object(201)
CreateDynamicObject(615,3197.65771500,-2138.67846700,6.74329900,0.00000000,0.00000000,0.00000000); //object(202)
CreateDynamicObject(615,3194.08252000,-2074.55371100,6.74329900,0.00000000,0.00000000,0.00000000); //object(203)
CreateDynamicObject(615,3190.52636700,-2041.37268100,6.74330200,0.00000000,0.00000000,0.00000000); //object(204)
CreateDynamicObject(615,3198.03173800,-2006.29089400,6.74329900,0.00000000,0.00000000,0.00000000); //object(205)
CreateDynamicObject(615,3222.78418000,-2022.82824700,6.74329900,0.00000000,0.00000000,0.00000000); //object(206)
CreateDynamicObject(615,3200.01953100,-1977.32043500,6.74329900,0.00000000,0.00000000,0.00000000); //object(207)
CreateDynamicObject(615,3162.46484400,-1954.42956500,6.74329700,0.00000000,0.00000000,0.00000000); //object(208)
CreateDynamicObject(615,3182.09863300,-1987.76477100,6.74329900,0.00000000,0.00000000,0.00000000); //object(209)
CreateDynamicObject(615,3224.54199200,-1985.15844700,6.74329900,0.00000000,0.00000000,0.00000000); //object(210)
CreateDynamicObject(615,3224.93896500,-1945.19018600,6.73030200,0.00000000,0.00000000,0.00000000); //object(211)
CreateDynamicObject(615,3198.89941400,-1926.39318800,6.73030200,0.00000000,0.00000000,0.00000000); //object(212)
CreateDynamicObject(615,3162.37793000,-1889.21508800,6.62582100,0.00000000,0.00000000,0.00000000); //object(213)
CreateDynamicObject(615,3187.57885700,-1894.22839400,6.73030200,0.00000000,0.00000000,0.00000000); //object(214)
CreateDynamicObject(615,3188.05151400,-1860.11523400,6.72134600,0.00000000,0.00000000,0.00000000); //object(215)
CreateDynamicObject(615,3173.02417000,-1880.97656300,6.72134300,0.00000000,0.00000000,0.00000000); //object(216)
CreateDynamicObject(615,3199.22436500,-1832.69140600,6.72134600,0.00000000,0.00000000,0.00000000); //object(217)
CreateDynamicObject(615,3219.35229500,-1867.74816900,6.72134600,0.00000000,0.00000000,0.00000000); //object(218)
CreateDynamicObject(615,3225.91870100,-1908.07031300,6.73030200,0.00000000,0.00000000,0.00000000); //object(219)
CreateDynamicObject(615,3224.26025400,-1824.11035200,6.72134600,0.00000000,0.00000000,0.00000000); //object(220)
CreateDynamicObject(615,3179.18945300,-1797.96728500,6.72134600,0.00000000,0.00000000,0.00000000); //object(221)
CreateDynamicObject(615,3193.18237300,-1788.82299800,6.72134600,0.00000000,0.00000000,0.00000000); //object(222)
CreateDynamicObject(615,3195.89575200,-1761.65014600,6.72134600,0.00000000,0.00000000,0.00000000); //object(223)
CreateDynamicObject(615,3177.52246100,-1751.73938000,6.72134600,0.00000000,0.00000000,0.00000000); //object(224)
CreateDynamicObject(615,3217.87377900,-1767.12963900,6.72134600,0.00000000,0.00000000,0.00000000); //object(225)
CreateDynamicObject(615,3241.48974600,-1767.08581500,6.62582100,0.00000000,0.00000000,0.00000000); //object(226)
CreateDynamicObject(621,3086.55322300,-1894.83630400,6.63092900,0.00000000,0.00000000,0.00000000); //object(227)
CreateDynamicObject(621,3088.26733400,-1954.95007300,6.65288100,0.00000000,0.00000000,0.00000000); //object(228)
CreateDynamicObject(621,3110.60009800,-1930.55712900,6.63092900,0.00000000,0.00000000,0.00000000); //object(229)
CreateDynamicObject(621,3060.64770500,-1931.29309100,6.63092900,0.00000000,0.00000000,0.00000000); //object(230)
CreateDynamicObject(621,3102.05566400,-2064.41308600,6.65288100,0.00000000,0.00000000,0.00000000); //object(231)
CreateDynamicObject(621,3068.70361300,-2065.15795900,6.65288100,0.00000000,0.00000000,0.00000000); //object(232)
CreateDynamicObject(621,3100.75195300,-1978.80188000,6.65288100,0.00000000,0.00000000,0.00000000); //object(233)
CreateDynamicObject(621,3072.72265600,-1977.28112800,6.65288100,0.00000000,0.00000000,0.00000000); //object(234)
CreateDynamicObject(700,3121.49072300,-2110.03442400,7.26986400,0.00000000,0.00000000,0.00000000); //object(235)
CreateDynamicObject(700,3121.70971700,-2124.09350600,7.26986400,0.00000000,0.00000000,0.00000000); //object(236)
CreateDynamicObject(1284,3308.07910200,-1993.25293000,9.98072600,0.00000000,0.00000000,0.00000000); //object(238)
CreateDynamicObject(1284,3285.81030300,-1992.62194800,9.98072600,0.00000000,0.00000000,-180.00001985); //object(239)
CreateDynamicObject(5007,3237.22998000,-2176.22607400,9.66231100,0.00000000,0.00000000,-89.99998128); //object(241)
CreateDynamicObject(5005,3312.93261700,-2070.60351600,10.30328600,0.00000000,0.00000000,-89.99998128); //object(242)
CreateDynamicObject(5005,3313.02441400,-1907.73925800,10.20520600,0.00000000,0.00000000,-89.99998128); //object(243)
CreateDynamicObject(5007,3290.21899400,-1786.99987800,9.56269100,0.00000000,0.00000000,0.00000000); //object(244)
CreateDynamicObject(5005,3183.82959000,-1711.26940900,10.22585700,0.00000000,0.00000000,0.00000000); //object(245)
CreateDynamicObject(5007,3084.51342800,-1734.09387200,9.56180000,0.00000000,0.00000000,89.99998128); //object(247)
CreateDynamicObject(5005,3008.75415000,-1840.29577600,10.32240900,0.00000000,0.00000000,89.99998128); //object(248)
CreateDynamicObject(5005,3008.71997100,-2003.18884300,10.32048600,0.00000000,0.00000000,89.99998128); //object(249)
CreateDynamicObject(5007,3031.53442400,-2124.14770500,9.65733100,0.00000000,0.00000000,179.99996255); //object(250)
CreateDynamicObject(5005,3112.68432600,-2199.06616200,10.27483700,0.00000000,0.00000000,-179.99996255); //object(251)
CreateDynamicObject(8038,3081.46118200,-1821.15979000,26.84279300,0.00000000,0.00000000,-359.99998240); //object(252)
CreateDynamicObject(621,3101.70043900,-1863.44897500,6.63092900,0.00000000,0.00000000,0.00000000); //object(253)
CreateDynamicObject(621,3065.60693400,-1863.03418000,6.63092900,0.00000000,0.00000000,0.00000000); //object(254)
CreateDynamicObject(621,3063.99218800,-1774.41369600,6.63092900,0.00000000,0.00000000,0.00000000); //object(255)
CreateDynamicObject(621,3097.45629900,-1773.90356400,6.53235800,0.00000000,0.00000000,0.00000000); //object(257)
CreateDynamicObject(11490,3176.58178700,-1923.96826200,6.73215200,0.00000000,0.00000000,-89.99998128); //object(258)
CreateDynamicObject(11491,3165.58203100,-1923.99426300,8.23098900,0.00000000,0.00000000,-89.99998128); //object(253)
}



new Stats[MAX_PLAYERS];
CMD:race1( playerid, params[] )
{
SetPlayerRaceCheckpoint(playerid,0,3296.9915,-1994.4282,7.7518  ,3297.1333,-1904.8904,7.6537,20);
Stats[playerid] = 1;
SetPlayerPos(playerid,3265.8625,-2016.0192,7.7365);
TogglePlayerControllable(playerid, 0);
SetTimerEx("Apauza",5000, false, "i", playerid);
if(Stats[playerid] == 1)
 {
if(IsCountdownStarted == false)
{
Count = 25;
CountdownTimer = SetTimer("CountDown", 1000, 1);
IsCountdownStarted = true;
SendClientMessage(playerid, COLOR_BLUELIGHTER, "Pokrenuo si odbrojavanje");
new countstring[256];
new Name1[MAX_PLAYER_NAME];
    GetPlayerName(playerid,Name1,sizeof(Name1));
format(countstring, sizeof(countstring), "<!>""%s ""Je pokrenuo odbrojavanje", Name1);
SendClientMessageToAll(COLOR_BLUELIGHTER, countstring);
TogglePlayerControllable(playerid, 0);
}
}
else
{
SendClientMessage(playerid, COLOR_BLUELIGHTER, "Odbrojavanje je vec pokrenuto!");
  }    return 1;
}
public CountDown(playerid)
{
   switch(Count)
   {
       case 25: { GameTextForPlayer(playerid,"~b~-~r~ 25 ~b~-", 1100, 3); }
       case 24: { GameTextForPlayer(playerid,"~b~-~r~ 24 ~b~-", 1100, 3); }
       case 23: { GameTextForPlayer(playerid,"~b~-~r~ 23 ~b~-", 1100, 3); }
       case 22: { GameTextForPlayer(playerid,"~b~-~r~ 22 ~b~-", 1100, 3); }
       case 21: { GameTextForPlayer(playerid,"~b~-~r~ 21 ~b~-", 1100, 3); }
       case 20: { GameTextForPlayer(playerid,"~b~-~r~ 20 ~b~-", 1100, 3); }
       case 19: { GameTextForPlayer(playerid,"~b~-~r~ 19 ~b~-", 1100, 3); }
       case 18: { GameTextForPlayer(playerid,"~b~-~r~ 18 ~b~-", 1100, 3); }
       case 17: { GameTextForPlayer(playerid,"~b~-~r~ 17 ~b~-", 1100, 3); }
       case 16: { GameTextForPlayer(playerid,"~b~-~r~ 16 ~b~-", 1100, 3); }
       case 15: { GameTextForPlayer(playerid,"~b~-~r~ 15 ~b~-", 1100, 3); }
       case 14: { GameTextForPlayer(playerid,"~b~-~r~ 14 ~b~-", 1100, 3); }
       case 13: { GameTextForPlayer(playerid,"~b~-~r~ 13 ~b~-", 1100, 3); }
       case 12: { GameTextForPlayer(playerid,"~b~-~r~ 12 ~b~-", 1100, 3); }
       case 11: { GameTextForPlayer(playerid,"~b~-~r~ 11 ~b~-", 1100, 3); }
       case 10: { GameTextForPlayer(playerid,"~b~-~r~ 10 ~b~-", 1100, 3); }
       case 9: { GameTextForPlayer(playerid,"~b~-~r~ 9 ~b~-", 1100, 3); }
       case 8: { GameTextForPlayer(playerid,"~b~-~r~ 8 ~b~-", 1100, 3); }
       case 7: { GameTextForPlayer(playerid,"~b~-~r~ 7 ~b~-", 1100, 3); }
       case 6: { GameTextForPlayer(playerid,"~b~-~r~ 6 ~b~-", 1100, 3); }
       case 5: { GameTextForPlayer(playerid,"~b~-~r~ 5 ~b~-", 1100, 3); }
       case 4: { GameTextForPlayer(playerid,"~b~-~r~ 4 ~b~-", 1100, 3); }
       case 3: { GameTextForPlayer(playerid,"~b~-~r~ 3 ~b~-", 1100, 3); }
       case 2: { GameTextForPlayer(playerid,"~b~-~r~ 2 ~b~-", 1100, 3); }
       case 1: { GameTextForPlayer(playerid,"~b~-~r~ 1 ~b~-", 1100, 3); }
       case 0:
       {
        GameTextForAll("~b~-~g~ KRENI! ~b~-", 2000, 4);
        KillTimer(CountdownTimer);
        TogglePlayerControllable(playerid, 1);
          IsCountdownStarted = false;
}
   }
   Count--;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
   switch(Stats[playerid])
   {
       case 1:
       {
           DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3297.6702,-1972.7850,7.5966  ,3294.0305,-1750.3970,7.6752,17);
           Stats[playerid] = 2;
       return 1;
}
case 2:
{
   DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3294.0305,-1750.3970,7.6752  ,3169.9163,-1729.8904,7.6743,16);
           Stats[playerid] = 3;
           return 1;
  }
  case 3:
  {
    DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3169.9163,-1729.8904,7.6743  ,3026.6790,-1764.8152,7.6974,15);
           Stats[playerid] = 4;
           return 1;
      }
    case 4:
  {
    DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3026.6790,-1764.8152,7.6974  ,3024.6621,-1980.8496,7.7690,15);
           Stats[playerid] = 5;
           return 1;
      }
      case 5:
  {
    DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3024.6621,-1980.8496,7.7690  ,3049.2197,-2178.0625,7.7699,15);
           Stats[playerid] = 6;
           return 1;
      }
      case 6:
  {
    DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3049.2197,-2178.0625,7.7699  ,3230.8923,-2185.6265,7.7748,15);
           Stats[playerid] = 7;
           return 1;
      }
      case 7:
  {
    DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3230.8923,-2185.6265,7.7748  ,3297.9463,-2000.7732,7.7518,20);
           Stats[playerid] = 8;
           return 1;
      }
  case 8:
  {
       DisablePlayerRaceCheckpoint(playerid);
        PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3297.9463,-2000.7732,7.7518  ,3169.9163,-1729.8904,7.6743,20);
           Stats[playerid] = 9;
           return 1;
      }
      case 9:
       {
           DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3297.6702,-1972.7850,7.5966  ,3294.0305,-1750.3970,7.6752,17);
           Stats[playerid] = 10;
       return 1;
}
case 10:
{
   DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3294.0305,-1750.3970,7.6752  ,3169.9163,-1729.8904,7.6743,16);
           Stats[playerid] = 11;
           return 1;
  }
  case 11:
  {
    DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3169.9163,-1729.8904,7.6743  ,3026.6790,-1764.8152,7.6974,15);
           Stats[playerid] = 12;
           return 1;
      }
    case 12:
  {
    DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3026.6790,-1764.8152,7.6974  ,3024.6621,-1980.8496,7.7690,15);
           Stats[playerid] = 13;
           return 1;
      }
      case 13:
  {
    DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3024.6621,-1980.8496,7.7690  ,3049.2197,-2178.0625,7.7699,15);
           Stats[playerid] = 14;
           return 1;
      }
      case 14:
  {
    DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3049.2197,-2178.0625,7.7699  ,3230.8923,-2185.6265,7.7748,15);
           Stats[playerid] = 15;
           return 1;
      }
      case 15:
  {
    DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3230.8923,-2185.6265,7.7748  ,3297.9463,-2000.7732,7.7518,20);
           Stats[playerid] = 16;
           return 1;
      }
  case 16:
  {
       DisablePlayerRaceCheckpoint(playerid);
        PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,1,3297.9463,-2000.7732,7.7518  ,3169.9163,-1729.8904,7.6743,20);
           Stats[playerid] = 17;
           return 1;
      }
  case 17:
       {
           DisablePlayerRaceCheckpoint(playerid);
           PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
           SetPlayerRaceCheckpoint(playerid,0,3297.6702,-1972.7850,7.5966  ,3294.0305,-1750.3970,7.6752,17);
           Stats[playerid] = 18;
           new name[MAX_PLAYER_NAME],string[128];
   new Prize[2];
           GetPlayerName(playerid,name,sizeof(name));
Position++;
switch(Position)
{
   case 1: Prize[0] = (random(random(5000)) + 1000), Prize[1] = 4;
   case 2: Prize[0] = (random(random(4500)) + 500), Prize[1] = 3;
   case 3: Prize[0] = (random(random(4000)) + 100), Prize[1] = 2;
   default: Prize[0] = random(random(1000)), Prize[1] = 1;
}
format(string, sizeof(string), ">> \"%s\" je zavrsio trku na mestu broj: \"%d\".", name, Position);
SendClientMessageToAll(COLOR_BLUELIGHTER, string);
GivePlayerMoney(playerid, Prize[0]);
SetPlayerScore(playerid, GetPlayerScore(playerid) + Prize[1]);
DisablePlayerRaceCheckpoint(playerid);
new veh;
veh = GetPlayerVehicleID(playerid);
DestroyVehicle(veh);

  return 1;
  }
   }
return 1;
}
CMD:unistivozilo1( playerid, params[] )
{
new veh;
veh = GetPlayerVehicleID(playerid);
DestroyVehicle(veh);

return 1;
}

public OnPlayerLeaveDynamicRaceCP(playerid)
{

return 1;
}

public Apauza(playerid)
{
       TogglePlayerControllable(playerid, 1);
       new v1;
new v2;
new v3;
new v4;
new v5;
new v6;
new v7;
new v8;


v8 = AddStaticVehicle(502,3283.2563,-2003.9150,7.6455,359.8466,106,111); // Car For Nascar
PutPlayerInVehicle(playerid, v1, 0);
v7 = AddStaticVehicle(502,3286.8547,-2004.0153,7.6438,359.7943,106,111); // Car For Nascar
PutPlayerInVehicle(playerid, v2, 0);
v6 = AddStaticVehicle(502,3291.1130,-2003.9799,7.6434,1.1083,106,111); // Car For Nascar
PutPlayerInVehicle(playerid, v3, 0);
v5 = AddStaticVehicle(502,3294.9771,-2003.8898,7.6448,0.9994,106,111); // Car For Nascar
PutPlayerInVehicle(playerid, v4, 0);
v4 = AddStaticVehicle(502,3298.8779,-2003.8682,7.6444,359.4363,106,111); // Car For Nascar
PutPlayerInVehicle(playerid, v5, 0);
v3 = AddStaticVehicle(502,3303.0161,-2003.6724,7.6468,359.5585,106,111); // Car For Nascar
PutPlayerInVehicle(playerid, v6, 0);
v2 = AddStaticVehicle(502,3306.9329,-2003.7428,7.6433,0.9824,106,111); // Car For Nascar
PutPlayerInVehicle(playerid, v7, 0);
v1 = AddStaticVehicle(502,3310.7605,-2003.7440,7.6443,359.1508,106,111); // Car For Nascar
PutPlayerInVehicle(playerid, v8, 0);
TogglePlayerControllable(playerid, 0);
return 1;
}


Ovo iznad je ta FS, samo malo preradjena, tj to sam ja pokusavao da preradim dok sam jos bio totalni pocetnik u skriptanu...

da tako je dane !  tako uzimam kordinate cp x y z ali vidjet ces tamou djurinom tutu kada je neki napisao da promejnimo iz racecp u player cp pa tako da mi je ostalo tako uredu odo pokusat napravit al u svakom slucaju ti hvala !

ja sam svoje uspio :P sutra cu ti rec kak da napravis

ok vazi :D ja evo nisam jos ulazim u 6 dan tj 6 dan kako pravim

Dane napisi ovde, ja radim polaganje i treba mi, radi samo prvi cp stanem na njega i dalje ne pokazuje nista

Gore pod new  i tamo dodajte ovo
pUtrka,
new PlayerIsRacing[MAX_PLAYERS];
PlayerIsVozib[playerid] = 0; Ako mozete naci ovo u gamemodu PlayerInfo[playerid][pGPS] = 0; dodajte tu
I sad u komandi znaci kad pokrene trebate stavit ovo
PlayerIsVozib[playerid] = 1;
PlayerInfo[playerid][pUtrka] = 1;
to je da pokrene ostale checkpointe
Nakon toga nadite 
public OnPlayerEnterCheckpoint(playerid)
i tu ispod ubacite ovo

if(PlayerInfo[playerid][pUtrka] == 1)
{
if(PlayerIsRacing[playerid] == 1)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new carid = GetPlayerVehicleID(playerid);
        if(IsARacecar(carid))//===== OVDJE  IDE Vozila ta za race,znaci ako ste pravili pod njih vise i nazvali ste to nekako to stavite ovdje
        {
              PlayerIsRacing[playerid] = 2;
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid, x1,y1,z1, 6.0);
        }
    }
    return 1;
}
if(PlayerIsRacing[playerid] == 2)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new carid = GetPlayerVehicleID(playerid);
        if(IsARacecar(carid))
        {
            PlayerIsRacing[playerid] = 3;
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid, x2,y2,z2, 6.0); // Kordinate
        }
    }
    return 1;
}
if(PlayerIsRacing[playerid] == 3)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new carid = GetPlayerVehicleID(playerid);
        if(IsARacecar(carid))
        {
            PlayerIsRacing[playerid] = 4;
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid, x2,y2,z2, 6.0); // Kordinate
        }
    }
    return 1;
}
if(PlayerIsRacing[playerid] == 4)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new carid = GetPlayerVehicleID(playerid);
        if(IsARacecar(carid))
        {
            PlayerIsRacing[playerid] = 0;
PlayerInfo[playerid][pRacing] = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ovdje sto da pise na cilju ");
            DisablePlayerCheckpoint(playerid);
        }
    }
    return 1;
}
}

Ako niste shvatili,ukoliko zelite jos CPova samo dodajete ovih djelova naravno i povecavate brojeve
Neznam bolje objasnit :/ jedino znam uradit a objasnit mi bas neide xD

jojjj nista te ne kontam al eto odo pokysat al sumnjam da cu uspijet  >:( >:( >:( :( :( :( :( :(

Nee pratis dobro djurin TuT, samo cu ti pomoc da radis iz pocetka i da svaki broj slovo dobro utvrdis koje je on napisao ..
Poslednja Izmena: Januar 06, 2012, 16:37:27 POSLE PODNE od [BUL] Cile



evo radio sam skroz nesto drugo! radio sam sa jednim cp al nece opet da ga ucita da si pita ! evo ako moze ko uocit gresku nek mi pomone !
if(strcmp(cmd, "/aktiviraj", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         GetPlayerName(playerid, sendername, sizeof(sendername));
         if(PlayerToPoint(10,playerid,2051.3086,-2522.0564,13.5469))
         {
            SendClientMessage(playerid,COLOR_LIGHTRED, "Aktivirali ste DESNU stranu 402 Street Race-a, pricekajte da admin oznaci start");
            format(string, sizeof(string), "* %s je aktivirao DESNU stranu 402 Street Race-a.", sendername);
            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            PlayerInfo[giveplayerid][pUtrka] = 1;
         }
         else if(PlayerToPoint(10,playerid,2047.9899,-2611.2908,13.5469))
         {
            SendClientMessage(playerid,COLOR_LIGHTRED, "Aktivirali ste LIJEVU stranu 402 Street Race-a, pricekajte da admin oznaci start");
            format(string, sizeof(string), "* %s je aktivirao LIJEVU stranu 402 Street Race-a.", sendername);
            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            PlayerInfo[giveplayerid][pUtrka1] = 1;
         }
         else{SendClientMessage(playerid,COLOR_GRAD1, "Niste na mjestu za aktiviranje utrke!");}
      }
      return 1;
   }
//-------------------------------------------------
public UtrkaTimer()
{
   for(new i = 0; i < MAX_PLAYERS; i++)
   {
      if(IsPlayerConnected(i))
      {
          if(PlayerInfo[pUtrka] == 1)
          {
              GameTextForPlayer(i, "2",1000,6);
              SetTimer("UtrkaTimer2",1000,0);
         }
            else if(PlayerInfo[pUtrka1] == 1)
          {
              GameTextForPlayer(i, "2",1000,6);
              SetTimer("UtrkaTimer2",1000,0);
         }
      }
   }
}
public UtrkaTimer2()
{
   for(new i = 0; i < MAX_PLAYERS; i++)
   {
      if(IsPlayerConnected(i))
      {
          if(PlayerInfo[pUtrka] == 1)
          {
              GameTextForPlayer(i, "1",1000,6);
              SetTimer("UtrkaTimer3",1000,0);
         }
         else if(PlayerInfo[pUtrka1] == 1)
          {
              GameTextForPlayer(i, "1",1000,6);
              SetTimer("UtrkaTimer3",1000,0);
         }
      }
   }
}
public UtrkaTimer3()
{
    MoveDynamicObject(raceograda1,2046.2635498047, -2593.4248046875, 11.655453681946, 100);
    MoveDynamicObject(raceograda2,2066.6982421875, -2593.4248046875, 13.230429649353, 100);
   for(new i = 0; i < MAX_PLAYERS; i++)
   {
      if(IsPlayerConnected(i))
      {
          if(PlayerInfo[pUtrka] == 1)
          {
              GameTextForPlayer(i, "START !!!",1000,6);
              SetPlayerRaceCheckpoint(i, 1, 1512.5548095703, -2585.4853515625, 13.196100234985, 0, 0, 0, 5);//cp 1
              PlayerInfo[pUtrka] = 2;
         }
           else if(PlayerInfo[pUtrka1] == 1)
          {
              GameTextForPlayer(i, "START !!!",1000,6);
              SetPlayerRaceCheckpoint(i, 1, 1512.5548095703, -2601.2080078125, 13.196100234985, 0, 0, 0, 5);//cp 1
              PlayerInfo[pUtrka1] = 2;
         }
      }
   }
}
//-----------------------------------
if(strcmp(cmd, "/402utrka", true) == 0)
   {
      if (PlayerInfo[playerid][pAdmin] >= 1)
      {
         GetPlayerName(playerid, sendername, sizeof(sendername));
          SendClientMessage(playerid, COLOR_RED, "Oznacili ste pocetak 402 Street Race utrke");
             format(string, sizeof(string),"402 Street Race | %s je aktivirao utrku",sendername);
            SendAdminMessage(COLOR_RED,string);
          for(new i = 0; i < MAX_PLAYERS; i++)
         {
            if(IsPlayerConnected(i))
            {
               if(PlayerInfo[pUtrka] == 1)
                {
                     SendClientMessage(i,COLOR_LIGHTBLUE, "Utrka ce startati za 3 sekunde");
                       GameTextForPlayer(i, "3",1000,6);
                  SetTimer("UtrkaTimer",1000,0);
                 }
               else if(PlayerInfo[pUtrka1] == 1)
                {
                      SendClientMessage(i,COLOR_LIGHTBLUE, "Utrka ce startati za 3 sekunde");
                        GameTextForPlayer(i, "3",1000,6);
                      SetTimer("UtrkaTimer",1000,0);
                  }
            }
         }
      }
      return 1;
   }