Guest Jiří Šarlatán Shejdy Odesláno: 9. Prosinec, 2008 Share Odesláno: 9. Prosinec, 2008 >>NEKRITIZUJ MĚ!JSEM ZAČÁTEČNÍK<< takže mám pro vás Tutík na menu zbraní přes příkaz."možná" se to někomu hodí.takže jdeme na to. nahoru pod newy: new Menu:zbrane do public OnGameModeInit: zbrane= CreateMenu("ZBRANE", 1, 150.0, 100.0, 250.0, 150.0); //Vytvoori menu AddMenuItem(zbrane, 0, "M4"); //prida do menu jednu polozku AddMenuItem(zbrane, 0, "TEC 9"); //prida dalsi polozku AddMenuItem(zbrane, 0, "Nuz"); //prida dalsi AddMenuItem(zbrane, 0, "Raketomet"); //prida dalsi //samozdrejme jich muzeme mit vice. do OnPlayerCommandText: if (strcmp("/zbrane", cmdtext, true, 10) == 0) //prikaz { ShowMenuForPlayer(zbrane,playerid); //zobrazi menu hraci return 1; } a do OnPlayerSelectedMenuRow: if (Current == zbrane ) { switch(row) { case 0:{ SendClientMessage(playerid,COLOR_GREEN,"dal sis M4...");//zprava GivePlayerWeapon(playerid,31,1000)//prida zbran } case 1:{ SendClientMessage(playerid,COLOR_GREEN,"Dal sis TEC9.");//zprava GivePlayerWeapon(playerid,32,1000)//prida zbran } case 2:{ SendClientMessage(playerid,COLOR_GREEN,"Dal sis NUZ..");//zprava GivePlayerWeapon(playerid,4,1000)//prida zbran } case 3:{ SendClientMessage(playerid,COLOR_GREEN,"Dal sis RAKETOMET.");//zprava GivePlayerWeapon(playerid,35,1000)//prida zbran } } } return 1; } Neměla by být žádná chyba.kdyby ano,napište. //EDIT:Můžeme také přidat aby mu to odebralo peníze za to.(přidáním GivePlayerMoney(playerid,-1000) například. Link to comment Share on other sites More sharing options...
Miny24 0 Odesláno: 9. Prosinec, 2008 Share Odesláno: 9. Prosinec, 2008 Co to sem davas to uz tu je nekde myslim lol rofl hmm ..... Link to comment Share on other sites More sharing options...
Daffy 8 Odesláno: 9. Prosinec, 2008 Share Odesláno: 9. Prosinec, 2008 srry ale toto sem tu dava uz taky..nez tu neco das koukni jestli to tu neni ..a mas tam chybu :-) projed si to new Menu:zbrane menu= CreateMenu("ZBRANE", 1, 150.0, 100.0, 250.0, 150.0); //Vytvoori menuAddMenuItem(menu, 0, "M4"); //prida do menu jednu polozku AddMenuItem(menu, 0, "TEC 9"); //prida dalsi polozku AddMenuItem(menu, 0, "Nuz"); //prida dalsi AddMenuItem(menu, 0, "Raketomet"); //prida dalsi co ty na to ? Link to comment Share on other sites More sharing options...
Guest Jiří Šarlatán Shejdy Odesláno: 9. Prosinec, 2008 Share Odesláno: 9. Prosinec, 2008 ano pravda.hned to jdu opravit Link to comment Share on other sites More sharing options...
Guest Jiří Šarlatán Shejdy Odesláno: 9. Prosinec, 2008 Share Odesláno: 9. Prosinec, 2008 Opraveno Link to comment Share on other sites More sharing options...
Daffy 8 Odesláno: 9. Prosinec, 2008 Share Odesláno: 9. Prosinec, 2008 priste nez neco budes delat tak si to zkontroluj ale nejprve se podivej jestli tu uz to stejne neni Link to comment Share on other sites More sharing options...
Guest Jiří Šarlatán Shejdy Odesláno: 9. Prosinec, 2008 Share Odesláno: 9. Prosinec, 2008 ok.díky za upozornění.dám si pozor. Link to comment Share on other sites More sharing options...
Daffy 8 Odesláno: 9. Prosinec, 2008 Share Odesláno: 9. Prosinec, 2008 a spočitej si zavorky kdyz uz si to opravujes Link to comment Share on other sites More sharing options...
Guest Jiří Šarlatán Shejdy Odesláno: 9. Prosinec, 2008 Share Odesláno: 9. Prosinec, 2008 mě to jede tak jak to je Link to comment Share on other sites More sharing options...
Daffy 8 Odesláno: 9. Prosinec, 2008 Share Odesláno: 9. Prosinec, 2008 se nedivim ale nahore si zapomel pridat public selectedmenurow... { aby dole bylo return 1; } Link to comment Share on other sites More sharing options...
Guest Jiří Šarlatán Shejdy Odesláno: 9. Prosinec, 2008 Share Odesláno: 9. Prosinec, 2008 sry .moje chyba :thumbdown: :thumbdown: :mrgreen: :mrgreen: Tak sme si trošku popovídali,tak co dál? Link to comment Share on other sites More sharing options...
FreeWall 3 Odesláno: 9. Prosinec, 2008 Share Odesláno: 9. Prosinec, 2008 řeknu ti to takhle - LOCK Link to comment Share on other sites More sharing options...
Recommended Posts