undertaker 10 Odesláno: 28. Leden, 2009 Share Odesláno: 28. Leden, 2009 jednoduse musite si koupit jizdenku stoji 5dollaru abyste mohli nastoupit jako pasazer do busu(id 431) pokud nemate tak vas to vykopne z autobusu. Jizdenka se da koupit v SF te nadrazni stanici nebo co to je... ODSKOUSENE FUNKCI 100%! #include #define COLOR_RED 0xAA3333AA new jizdenka[MAX_PLAYERS]; new jizdenkaa; new Menu:jizdenkamenu; new IsInBus[MAX_PLAYERS]; new vehicleid; ////////////////////////////JIZDENKAAAAAAAAAAAAA///////////////////////////////* ////by UNDERTAKER/////////////////////////////////////////////////////////////// public OnGameModeInit() { jizdenkaa = CreatePickup(1581,1,-1970.6497,117.4516,27.6875); jizdenkamenu= CreateMenu("Jizdenka", 1, 150.0, 100.0, 250.0, 150.0); AddMenuItem(jizdenkamenu, 0, "Jizdenka => 5$"); return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == jizdenkaa) { ShowMenuForPlayer(jizdenkamenu,playerid); } return 1; } public OnPlayerSelectedMenuRow(playerid, row) { new string[256]; new Menu:Current = GetPlayerMenu(playerid); if (Current == jizdenkamenu ) { GetPlayerMoney(playerid, 5); GivePlayerMoney(playerid, -5); SendClientMessage(playerid, COLOR_RED,"Máš jízdenku!"); jizdenka[playerid]=1; } } public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_PASSENGER) { if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 431) { if (jizdenka[playerid] == 1) IsInBus[playerid] = vehicleid; else RemovePlayerFromVehicle(playerid); } } return 1; } Link to comment Share on other sites More sharing options...
Mattsy 29 Odesláno: 28. Leden, 2009 Share Odesláno: 28. Leden, 2009 vobec nevysvetlene vsetko na jednej kope, je to vobec tvoje? Link to comment Share on other sites More sharing options...
undertaker 10 Odesláno: 28. Leden, 2009 Author Share Odesláno: 28. Leden, 2009 je to moje a co by si chtel vysvetlovat se to nauc a nesomruj Link to comment Share on other sites More sharing options...
break 0 Odesláno: 28. Leden, 2009 Share Odesláno: 28. Leden, 2009 Kamo mas to dobrej ten tut akorat je docela lechky ale jinak dobrej napad a prosimte pis vysvetleni na co to je protoze kazdej kdo se to uci tak mu to dela problem kdyz nevi o co jde :-) a to plati pro vsechny Link to comment Share on other sites More sharing options...
Mattsy 29 Odesláno: 28. Leden, 2009 Share Odesláno: 28. Leden, 2009 omg aj to wem ale mohol si dat oddelene a nie setko do spoileru napr si mohol dat takto: Medzi new dame: new blabla; new blabla2; new blabla3; Link to comment Share on other sites More sharing options...
Guest [*LoNg*]LiFe Odesláno: 28. Leden, 2009 Share Odesláno: 28. Leden, 2009 vyznam tej jizdenky:D to si radsej spravte ridicak Link to comment Share on other sites More sharing options...
Daw3 0 Odesláno: 29. Leden, 2009 Share Odesláno: 29. Leden, 2009 Co když nemá prachy?! Nic to neudělá... Je to nepromakaný tudíž si to udělá každý sám podle sebe... Link to comment Share on other sites More sharing options...
undertaker 10 Odesláno: 29. Leden, 2009 Author Share Odesláno: 29. Leden, 2009 dawe strasne tezky tam napsat else a takove loloviny... Link to comment Share on other sites More sharing options...
FreeWall 3 Odesláno: 30. Leden, 2009 Share Odesláno: 30. Leden, 2009 ODSKOUSENE FUNKCI 100%! Jsi si jistej ? GetPlayerMoney(playerid, 5); a na co tam máš new string[256]; ? ty si se asi přepsal a chtěl si napsat toto ne ? ODSKOUSENE NEFUNKCI 100%! ps: jen tak sem se kouknul na forum jak to tu fachá Link to comment Share on other sites More sharing options...
Guest DRaGsTeR Odesláno: 4. Únor, 2009 Share Odesláno: 4. Únor, 2009 Ano, souhlasím: GetPlayerMoney(playerid, 5); - je totální blbost, kdyby sis to přeložil do CZ, tak to nijak nejde vysvětlit ....... Lepší je tohle: if(GetPlayerMoney(playerid) < 5) return SendClientMessage(playerid, barva, "Nemáš 5 dollarů na jízdenku:)"); Nadále moc nechápu to Current..... taky to není tvoje proměnná, viděl jsem to snad všude... Celej ten kod by šel přepsat daleko líp.... Moje hodnocení: 2 / 10 Link to comment Share on other sites More sharing options...
FreeWall 3 Odesláno: 4. Únor, 2009 Share Odesláno: 4. Únor, 2009 že new Menu:Current neni jeho kód ? to si měl napsat že new string[256] taky neni jeho kód Link to comment Share on other sites More sharing options...
undertaker 10 Odesláno: 4. Únor, 2009 Author Share Odesláno: 4. Únor, 2009 ty vole pry ODSKOUSENE NEFUNKCI 100%! ja to skousel a fungovalo to! to sou dneska lidi... Link to comment Share on other sites More sharing options...
FreeWall 3 Odesláno: 4. Únor, 2009 Share Odesláno: 4. Únor, 2009 nj, to GetPlayerMoney(playerid, 5); ti musí hodně fungovat Link to comment Share on other sites More sharing options...
Daw3 0 Odesláno: 5. Únor, 2009 Share Odesláno: 5. Únor, 2009 No rofl... to sem ještě neviděl a to jsem napsal i SCM bez playerid ale tohle xD GetPlayer.. :-D ROFL Link to comment Share on other sites More sharing options...
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