Guest woor Odesláno: 21. Leden, 2009 Share Odesláno: 21. Leden, 2009 Definícia //========================= new lslet; new Menu:letls; new Menu:letsf; new sflet; new Menu:letlv; new lvlet; //========================= OnGameModeInit : ========================= //LS LET lslet = CreatePickup(Id Pickupu,1,Vlastné súradnice); letls = CreateMenu("lslet", 1, 50.0, 180.0, 200.0, 200.0); AddMenuItem(letls, 0, "SF"); AddMenuItem(letls, 0, "LV"); AddMenuItem(letls, 0, "Koniec"); //========================== //SF LET sflet = CreatePickup(Id Pickupu,1,Vlastné súradnice); letsf = CreateMenu("sflet", 1, 50.0, 180.0, 200.0, 200.0); AddMenuItem(letsf, 0, "LS"); AddMenuItem(letsf, 0, "LV"); AddMenuItem(letsf, 0, "Koniec"); //========================== //LV LET sflet = CreatePickup(Id Pickupu,1,Vlastné súradnice); letlv = CreateMenu("lvlet", 1, 50.0, 180.0, 200.0, 200.0); AddMenuItem(letlv, 0, "LS"); AddMenuItem(letlv, 0, "SF"); AddMenuItem(letlv, 0, "Koniec"); //=========================== OnPlayerPickUpPickUp: //======================= //LS LET if(pickupid == lslet) : { ShowMenuForPlayer(letls,playerid); //ukaze hraci menu } //========================== //SFLET if(pickupid == sflet) : { ShowMenuForPlayer(letsf,playerid); //ukaze hraci menu } //============================ //LS LET if(pickupid == lvlet) : { ShowMenuForPlayer(letlv,playerid); //ukaze hraci menu } //=========================== OnPlayerSelectedMenuRow : //====================== new Menu:current; //=================== //Los Santos Let //============================ current = GetPlayerMenu(playerid); if(current == letls) { switch(row) { case 0:{ //Row 1 code } case 1:{ //Row 2 code } case 2:{ //Row 3 code } } } //====================== //San Fiero Let current = GetPlayerMenu(playerid); if(current == letsf) { switch(row) { case 0:{ //Row 1 code } case 1:{ //Row 2 code } case 2:{ //Row 3 code } } } //========================= // Lav Venturas Let current = GetPlayerMenu(playerid); if(current == letlv) { switch(row) { case 0:{ //Row 1 code } case 1:{ //Row 2 code } case 2:{ //Row 3 code } } } return 1; } //======================= //Row Code nahradte vlastnym portom priklad : SetPlayerPos(playerid,Vlastné súradnice..); SetPlayerInterior(playerid,Id Interieru); Tut som netestoval,skúste ak nebude funogvať napíšte sem... Robil som tento tut sám,nieje to nič tažkého len treba vedieť používať Menu+PickUp+Port Link to comment Share on other sites More sharing options...
Guest obzi Odesláno: 21. Leden, 2009 Share Odesláno: 21. Leden, 2009 je to sice pekne to jo...ae mam dojem ze uz to tu minimalne jednou je Link to comment Share on other sites More sharing options...
Guest woor Odesláno: 21. Leden, 2009 Share Odesláno: 21. Leden, 2009 Sak ale sa nato pozri ako to vypada,je to skopirovane a jeden prikaz/buyletenkaSF a cely cod je COpy.... Link to comment Share on other sites More sharing options...
Daffy 8 Odesláno: 21. Leden, 2009 Share Odesláno: 21. Leden, 2009 Zbytecne to tu cpes a :arrow: if(pickupid == lslet) : { ShowMenuForPlayer(letls,playerid); //ukaze hraci menu } //========================== //SFLET if(pickupid == sflet) : { ShowMenuForPlayer(letsf,playerid); //ukaze hraci menu } //============================ //LS LET if(pickupid == lvlet) : { ShowMenuForPlayer(letlv,playerid); //ukaze hraci menu } to : si tam dal proc ? a tady ti chybi jedna zavorka a proc si neudelal new Menu:Current = GetPlayerMenu(playerid); a psal si to vsude ? jinak sem tam nic tak nenasel... //======================new Menu:current; //=================== //Los Santos Let //============================ current = GetPlayerMenu(playerid); if(current == letls) { switch(row) { case 0:{ //Row 1 code } case 1:{ //Row 2 code } case 2:{ //Row 3 code } } } //====================== //San Fiero Let current = GetPlayerMenu(playerid); if(current == letsf) { switch(row) { case 0:{ //Row 1 code } case 1:{ //Row 2 code } case 2:{ //Row 3 code } } } //========================= // Lav Venturas Let current = GetPlayerMenu(playerid); if(current == letlv) { switch(row) { case 0:{ //Row 1 code } case 1:{ //Row 2 code } case 2:{ //Row 3 code } } } return 1; } //======================= Link to comment Share on other sites More sharing options...
Daw3 0 Odesláno: 22. Leden, 2009 Share Odesláno: 22. Leden, 2009 ROFL ctj... Neřeknu kdyby jsi to promakal ale takovýhle odfláklý TUTy %) Zkusím udělat tedkon taky na něco tut ale snaž se to propracoavt Toto je základ menu pickup a co se děje potom... To tady už je... 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