lekpri 0 Odesláno: 13. Listopad, 2014 Share Odesláno: 13. Listopad, 2014 Ahoj Chtěl bych vytvořit povolání řidič autobusu. Povolání tak nějak zvládnu, ale chtěl bych aby se ta trasa co vytvořím opakoval dokola a dokola dokud hráč nevystoupí. Proto Vás prosím o radu. Děkuji Link to comment Share on other sites More sharing options...
0 Polisek Polismanovic 76 Odesláno: 13. Listopad, 2014 Share Odesláno: 13. Listopad, 2014 Třeba takhle Proměna: new mise[MAX_PLAYERS]; Definace #define MP3 3 #define MP4 4 #define MP5 5 //Checkpoint switch(mise[playerid]){ case MP3: { if(IsPlayerInCheckpoint(playerid)) DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,78.5069,2004.6786,17.6406,1.0); mise[playerid] = MP4; } case MP4: { if(IsPlayerInCheckpoint(playerid)) DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,85.7207,1993.3427,17.8584,1.0); mise[playerid] = MP5; } case MP5: { if(IsPlayerInCheckpoint(playerid)) DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,85.2980,2002.9158,17.8190,1.0); mise[playerid] = MP3; } Všimni si toho posledního Checkpoitu mise[playerid] = MP3; Přesměruje zpět na první Checkpoint Do: public OnPlayerExitVehicle(playerid, vehicleid){ mise[playerid] = 0; return 1; } Link to comment Share on other sites More sharing options...
0 Om3n 78 Odesláno: 13. Listopad, 2014 Share Odesláno: 13. Listopad, 2014 nebyl by lepsi RaceCheckPoint? Link to comment Share on other sites More sharing options...
0 Lusky 4 Odesláno: 13. Listopad, 2014 Share Odesláno: 13. Listopad, 2014 Prečo používaš viacero premenných keď môžeš použiť jednu? Link to comment Share on other sites More sharing options...
0 Om3n 78 Odesláno: 13. Listopad, 2014 Share Odesláno: 13. Listopad, 2014 dyt pouziva jednu promenou... Link to comment Share on other sites More sharing options...
0 Lusky 4 Odesláno: 13. Listopad, 2014 Share Odesláno: 13. Listopad, 2014 Ups, moja chyba. Myslel som, prečo použil 3x define keď mohol použiť jednú premennú? Link to comment Share on other sites More sharing options...
0 Om3n 78 Odesláno: 13. Listopad, 2014 Share Odesláno: 13. Listopad, 2014 asi si chtel nadefinovat cisla aby to mel prehlednejsi. zbytecny to je, ale nicemu to neskodi. Link to comment Share on other sites More sharing options...
0 lekpri 0 Odesláno: 13. Listopad, 2014 Author Share Odesláno: 13. Listopad, 2014 Dík Polis_Polismanovic chápu a jde to Link to comment Share on other sites More sharing options...
Dotaz
lekpri 0
Ahoj
Chtěl bych vytvořit povolání řidič autobusu. Povolání tak nějak zvládnu, ale chtěl bych aby se ta trasa co vytvořím opakoval dokola a dokola dokud hráč nevystoupí.
Proto Vás prosím o radu.
Děkuji
Link to comment
Share on other sites
7 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now