Szerző Téma: Checkpoint  (Megtekintve 571 alkalommal)

Checkpoint
« Dátum: 2013. Augusztus 20. - 11:17:24 »
0 Show voters
Üdv!
Valaki segítene abban hogy oldajam meg azt, hogy beírom /cp negjelenik egy checkpoint és követni kelljen õket??
CP:
 
1843.8240,-1306.3604,13.3899 // 
1742.1877,-1302.0734,13.4688 //
1612.0052,-1317.0580,17.2955 //
1641.9424,-1438.4219,13.3828 //
1738.8265,-1437.6523,13.3663 //

Nem elérhető Tomee

  • 385
    • Profil megtekintése
Checkpoint
« Válasz #1 Dátum: 2013. Augusztus 20. - 12:05:59 »
0 Show voters

new JatekosCP[MAX_PLAYERS];
new Float:gCheckpoint[3][3] =
{
{709.5397,-1422.7621,13.1897}, // CP - 1
{687.9131,-1394.7529,13.0469}, // CP - 2
{651.2383,-1392.6417,13.1254}, // CP - 3
};
 
SetPlayerCheckpoint(playerid, AutoVizsgaCP[ JatekosCP[ playerid ] ][0], AutoVizsgaCP[ JatekosCP[ playerid ] ][1], AutoVizsgaCP[ JatekosCP[ playerid ] ][2], 5.0);
public OnPlayerEnterCheckpoint(playerid)
{
      //Ha belemegy a CPbe akkor
      JatekosCP[ playerid ]++;
       SetPlayerCheckpoint(playerid, AutoVizsgaCP[ JatekosCP[ playerid ] ][0], AutoVizsgaCP[ JatekosCP[ playerid ] ][1], AutoVizsgaCP[ JatekosCP[ playerid ] ][2], 5.0);
      return 1;
}

 
Persze nem teljesen így van, de szerintem ez már tökéletes alap az indulásnak

Checkpoint
« Válasz #2 Dátum: 2013. Augusztus 20. - 13:45:50 »
0 Show voters
vagy: igy is:
 

SetPlayerRaceCheckpoint(playerid, 0, -1363.3860,2623.0803,52.1508,//amirõl megy -2089.8098,-2451.4807,30.0756, 2.5); // amire megy

Checkpoint
« Válasz #3 Dátum: 2013. Augusztus 20. - 14:15:09 »
0 Show voters
Idézetet írta: Tomee date=1376993159\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"41600\" data-ipsquote-contentclass=\"forums_Topic


new JatekosCP[MAX_PLAYERS];
new Float:gCheckpoint[3][3] =
{
{709.5397,-1422.7621,13.1897}, // CP - 1
{687.9131,-1394.7529,13.0469}, // CP - 2
{651.2383,-1392.6417,13.1254}, // CP - 3
};
 

SetPlayerCheckpoint(playerid, AutoVizsgaCP[ JatekosCP[ playerid ] ][0], AutoVizsgaCP[ JatekosCP[ playerid ] ][1], AutoVizsgaCP[ JatekosCP[ playerid ] ][2], 5.0);
public OnPlayerEnterCheckpoint(playerid)
{
      //Ha belemegy a CPbe akkor
      JatekosCP[ playerid ]++;
       SetPlayerCheckpoint(playerid, AutoVizsgaCP[ JatekosCP[ playerid ] ][0], AutoVizsgaCP[ JatekosCP[ playerid ] ][1], AutoVizsgaCP[ JatekosCP[ playerid ] ][2], 5.0);
      return 1;
}

 
Persze nem teljesen így van, de szerintem ez már tökéletes alap az indulásnak
 
Mikor csinálom a /elkezd parancsot hozzá ezt tegyem alá hogy elinduljanak a CP-k???
 
SetPlayerCheckpoint(playerid, AutoVizsgaCP[ JatekosCP[ playerid ] ][0], AutoVizsgaCP[ JatekosCP[ playerid ] ][1], AutoVizsgaCP[ JatekosCP[ 

Nem elérhető BoOy

  • 3209
  • 2013-as év szkriptere
    • Profil megtekintése
Checkpoint
« Válasz #4 Dátum: 2013. Augusztus 20. - 18:03:52 »
0 Show voters
Idézetet írta: ninjo98 date=1377000909\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"41600\" data-ipsquote-contentclass=\"forums_Topic


 

new JatekosCP[MAX_PLAYERS];
new Float:gCheckpoint[3][3] =
{
{709.5397,-1422.7621,13.1897}, // CP - 1
{687.9131,-1394.7529,13.0469}, // CP - 2
{651.2383,-1392.6417,13.1254}, // CP - 3
};
 

SetPlayerCheckpoint(playerid, AutoVizsgaCP[ JatekosCP[ playerid ] ][0], AutoVizsgaCP[ JatekosCP[ playerid ] ][1], AutoVizsgaCP[ JatekosCP[ playerid ] ][2], 5.0);
public OnPlayerEnterCheckpoint(playerid)
{
      //Ha belemegy a CPbe akkor
      JatekosCP[ playerid ]++;
       SetPlayerCheckpoint(playerid, AutoVizsgaCP[ JatekosCP[ playerid ] ][0], AutoVizsgaCP[ JatekosCP[ playerid ] ][1], AutoVizsgaCP[ JatekosCP[ playerid ] ][2], 5.0);
      return 1;
}

 
Persze nem teljesen így van, de szerintem ez már tökéletes alap az indulásnak
 
Mikor csinálom a /elkezd parancsot hozzá ezt tegyem alá hogy elinduljanak a CP-k???
 
SetPlayerCheckpoint(playerid, AutoVizsgaCP[ JatekosCP[ playerid ] ][0], AutoVizsgaCP[ JatekosCP[ playerid ] ][1], AutoVizsgaCP[ JatekosCP[ 

 

[/quote]
Próbáld meg :D
Amúgy igen.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal