matko.basket 0 Odesláno: 26. Prosinec, 2009 Share Odesláno: 26. Prosinec, 2009 caves all skusal som o radu aby ste mi poradili s alkacom ale nikto nepomohol ..tak este raz by som chcel .ze kto mi spravi alkohol system ako je v vg5 aj s animaciami a vsetko co k tomu patri ...ponukam i financnu odmenu tak piste Link to comment Share on other sites More sharing options...
0 Guest Stefi414 Odesláno: 26. Prosinec, 2009 Share Odesláno: 26. Prosinec, 2009 kolko Link to comment Share on other sites More sharing options...
0 matko.basket 0 Odesláno: 26. Prosinec, 2009 Author Share Odesláno: 26. Prosinec, 2009 5e Link to comment Share on other sites More sharing options...
0 Guest Stefi414 Odesláno: 26. Prosinec, 2009 Share Odesláno: 26. Prosinec, 2009 5€ura oo dobre a posles postou :DD Link to comment Share on other sites More sharing options...
0 matko.basket 0 Odesláno: 26. Prosinec, 2009 Author Share Odesláno: 26. Prosinec, 2009 NEMAS NAHODU SERVER NA SYNBIANE ??? BY SOM TI HO ZAPLATIL Link to comment Share on other sites More sharing options...
0 Guest Stefi414 Odesláno: 26. Prosinec, 2009 Share Odesláno: 26. Prosinec, 2009 ee treba mi na domenu webhosting Link to comment Share on other sites More sharing options...
0 matko.basket 0 Odesláno: 26. Prosinec, 2009 Author Share Odesláno: 26. Prosinec, 2009 A DA SA PLATIT I SMS ?? Link to comment Share on other sites More sharing options...
0 Guest Stefi414 Odesláno: 26. Prosinec, 2009 Share Odesláno: 26. Prosinec, 2009 ee # a postu nemate? Link to comment Share on other sites More sharing options...
0 matko.basket 0 Odesláno: 26. Prosinec, 2009 Author Share Odesláno: 26. Prosinec, 2009 no ok tak postou mne to je jedno..ale budes vediet spravit presne taky alkohol script ako na vg5 ...tak aby sa mi nezrusila animacia ked nieco stlacim a aby si sa odpil po urcitom case a tiez je tami animacia ze spadnes na zem a si v krcoch si to poizri nieco take chcem Link to comment Share on other sites More sharing options...
0 Guest Stefi414 Odesláno: 26. Prosinec, 2009 Share Odesláno: 26. Prosinec, 2009 jj spravim ale ked posles prachy Link to comment Share on other sites More sharing options...
0 ATomas 286 Odesláno: 26. Prosinec, 2009 Share Odesláno: 26. Prosinec, 2009 ja sem ha*zl ja to osobe vim forward alkoholcheck(); forward triezvenie(); forward SellPlayerAlcohol(playerid,money,alc,const alcname[]); enum pInfo { speed, alkohol } new hrac[MAX_SLOT][pInfo]; new Menu:barmenu; new Float:tmpx; public OnGameModeInit() { SetTimer("alkoholcheck",1000,1); SetTimer("triezvenie",30000,1); CreatePickup(1234,1,X,Y,Z); barmenu = CreateMenu("~r~B~g~ar", 2, 150.0, 120.0, 250.0, 250.0); AddMenuItem(barmenu, 0, "Kofola 0.5L"); AddMenuItem(barmenu, 0, "Pivo Gazda 0.5L"); AddMenuItem(barmenu, 0, "Pivo Topvar 0.5L"); AddMenuItem(barmenu, 0, "Pivo Heineken 0.5L"); AddMenuItem(barmenu, 0, "Vodka 200ml"); AddMenuItem(barmenu, 0, "Slivovica 200ml"); AddMenuItem(barmenu, 0, "Hruskovica 200ml"); AddMenuItem(barmenu, 0, "Tokajske vino 1L"); AddMenuItem(barmenu, 0, "Ovocne vino 1L"); AddMenuItem(barmenu, 1, "15$"); AddMenuItem(barmenu, 1, "5$"); AddMenuItem(barmenu, 1, "7$"); AddMenuItem(barmenu, 1, "7$"); AddMenuItem(barmenu, 1, "20$"); AddMenuItem(barmenu, 1, "23$"); AddMenuItem(barmenu, 1, "21$"); AddMenuItem(barmenu, 1, "200$"); AddMenuItem(barmenu, 1, "2$"); AddMenuItem(barmenu, 1, "$"); return 1; } public OnPlayerPickUpPickup(playerid,pickupid) { if(IsPlayerInSphere(playerid,X,Y,Z,2)) ShowMenuForPlayer(barmenu,playerid); return 1; } public OnPlayerSelectedMenuRow(playerid, row) { else if(Current == barmenu) { switch(row) { case 0:SellPlayerAlcohol(playerid,15,0,"Kofola 0.5L"); case 1:SellPlayerAlcohol(playerid,5,1,"Pivo Gazda 0.5L"); case 2:SellPlayerAlcohol(playerid,7,2,"Pivo Topvar 0.5L"); case 3:SellPlayerAlcohol(playerid,7,2,"Pivo Heineken 0.5L"); case 4:SellPlayerAlcohol(playerid,20,3,"Vodka 200ml"); case 5:SellPlayerAlcohol(playerid,23,3,"Slivovica 200ml"); case 6:SellPlayerAlcohol(playerid,21,3,"Hruskovica 200ml"); case 7:SellPlayerAlcohol(playerid,200,5,"Tokajske vino 1L"); case 8:SellPlayerAlcohol(playerid,2,5,"Ovocne vino 1L"); } } return 1; } public alkoholcheck() { for(new i=0; i { if(IsPlayerConnected(i)) { if(GetPlayerState(i) == PLAYER_STATE_DRIVER) { if(hrac[alkohol]>5) { if(hrac[speed]>20) { GetVehicleZAngle(GetPlayerVehicleID(i),tmpx); new rand = random(4); switch(rand) { case 0:SetVehicleZAngle(GetPlayerVehicleID(i),tmpx-(random(40))); case 3:SetVehicleZAngle(GetPlayerVehicleID(i),tmpx+(random(40))); } } } } if (GetPlayerState(i) == PLAYER_STATE_ONFOOT) { if(hrac[alkohol]>1) { if (hrac[alkohol] >= 2 && hrac[alkohol] < 4 ){ ApplyAnimation(i,"PED","WALK_DRUNK",0.05,1,1,1,1,1); } else if (hrac[alkohol] >= 4 && hrac[alkohol] < 6 ){ ApplyAnimation(i,"PED","WALK_DRUNK",0.1,1,1,1,1,1); } else if (hrac[alkohol] >= 6 && hrac[alkohol] < 8 ){ ApplyAnimation(i,"PED","WALK_DRUNK",0.15,1,1,1,1,1); } else if (hrac[alkohol] >= 8 && hrac[alkohol] < 10 ){ ApplyAnimation(i,"PED","WALK_DRUNK",0.2,1,1,1,1,1); } else if (hrac[alkohol] >= 10 && hrac[alkohol] < 12 ){ ApplyAnimation(i,"PED","WALK_DRUNK",0.25,1,1,1,1,1); } else if (hrac[alkohol] >= 12 && hrac[alkohol] < 14 ){ ApplyAnimation(i,"PED","WALK_DRUNK",0.4,1,1,1,1,1); } else if (hrac[alkohol] >= 14 && hrac[alkohol] < 16 ){ ApplyAnimation(i,"PED","WALK_DRUNK",0.5,1,1,1,1,1); } else if (hrac[alkohol] >= 16 && hrac[alkohol] < 18 ){ ApplyAnimation(i,"PED","WALK_DRUNK",0.7,1,1,1,1,1); } else if (hrac[alkohol] >= 18 && hrac[alkohol] < 20 ){ ApplyAnimation(i,"PED","WALK_DRUNK",0.9,1,1,1,1,1); } } } } } } public triezvenie() { for(new i=0; i { if(IsPlayerConnected(i)) { if (GetPlayerState(i) == PLAYER_STATE_ONFOOT){ if (hrac[alkohol] >= 1){ hrac[alkohol]--; } } } } } public SellPlayerAlcohol(playerid,money,alc,const alcname[]) { if(GetPlayerMoney(playerid)>=money) { format(pom,sizeof(pom),"Kupili ste si ~r~%s~w~ za ~r~%d$",alcname,money); ShowTableMessage(playerid,3,pom,false); GivePlayerMoney(playerid,-money); hrac[playerid][alkohol]+=alc; }else{ format(pom,sizeof(pom),"Nemate dostatok penazi. ~r~%s~w~ stoji ~r~%d$",alcname,money); ShowTableMessage(playerid,3,pom,false); } return 1; } Vytazeno z VG6 Autor bzuco a misco Link to comment Share on other sites More sharing options...
0 Guest Stefi414 Odesláno: 26. Prosinec, 2009 Share Odesláno: 26. Prosinec, 2009 ty zidze ! Link to comment Share on other sites More sharing options...
0 Guest Smaženy Syr Odesláno: 26. Prosinec, 2009 Share Odesláno: 26. Prosinec, 2009 ATomas koukáš to píšeš? je sotva 5.2 beta a ne 6 Link to comment Share on other sites More sharing options...
0 matko.basket 0 Odesláno: 26. Prosinec, 2009 Author Share Odesláno: 26. Prosinec, 2009 dakujem ti velmi pekne atomas ale pocuuj ako mam tam zakomponovat SetPlayerDrunkLevel???tu to uz hodi samo opilost a aj jazdenie autom -- sob 26. pro 2009 16:09:51 -- pise mi to error tmpx neviem co to je pls este jeden help -- sob 26. pro 2009 16:14:16 -- mam tam este jeden error tmpx co to je ?? Link to comment Share on other sites More sharing options...
0 ATomas 286 Odesláno: 26. Prosinec, 2009 Share Odesláno: 26. Prosinec, 2009 DjKappa[ ! ]":35pxw5lh]ATomas koukáš to píšeš? je sotva 5.2 beta a ne 6 ehm.. na pawnoboxu zverejnil bzuco VG6 ptal sem se jakuba proc maji na serveru vg 5.2 a ne vg 6 a on mi rekl ze se prej vg6 nepovedla ze je onicem ze lidi maji raci 5.2 Link to comment Share on other sites More sharing options...
0 Guest Smaženy Syr Odesláno: 26. Prosinec, 2009 Share Odesláno: 26. Prosinec, 2009 ATomas dej link chci se z toho učit Link to comment Share on other sites More sharing options...
0 ATomas 286 Odesláno: 26. Prosinec, 2009 Share Odesláno: 26. Prosinec, 2009 DjKappa[ ! ]":2bd6iyir]ATomas dej link chci se z toho učit tak nwm jestli by ses z toho ucil bzuco pouziva na vsechno publici ktere si vytvari nwm jestli to dela schalne proti kopirakum mimochodem je to nekde na pawnoboxe uz nwm presne kde k tomu erroru zapomel sem ze si bzuco setri ram takze nahoru new Float:tmpx v modu potokl prej aby server nemusel tvorit porat tuto promenou a zbytecne zatezovat ram Link to comment Share on other sites More sharing options...
0 matko.basket 0 Odesláno: 26. Prosinec, 2009 Author Share Odesláno: 26. Prosinec, 2009 dikes atomas jediny si mi pomohol na tomto fore s alkoholom klobuuuk dole si good :thumbup: Link to comment Share on other sites More sharing options...
0 Guest Frodo Odesláno: 26. Prosinec, 2009 Share Odesláno: 26. Prosinec, 2009 public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/pivo", true)) //Příkaz strcmp { SetPlayerDrunkLevel(playerid, 100); } return 1; //vrátíme honotu } Link to comment Share on other sites More sharing options...
0 ATomas 286 Odesláno: 26. Prosinec, 2009 Share Odesláno: 26. Prosinec, 2009 public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/pivo", true)) //Příkaz strcmp { SetPlayerDrunkLevel(playerid, 100); } return 1; //vrátíme honotu } jenom dotaz fungoval vam ten drunk level mne zaboda ne sem mu nastavil treba 50 a nic se nedela zadny motani obrazovky Link to comment Share on other sites More sharing options...
0 Guest Frodo Odesláno: 26. Prosinec, 2009 Share Odesláno: 26. Prosinec, 2009 ja nevim... tohle sem psal z blbosti jak udelat ten SetDrunkLVL Link to comment Share on other sites More sharing options...
0 matko.basket 0 Odesláno: 28. Prosinec, 2009 Author Share Odesláno: 28. Prosinec, 2009 ten alkohol script co mi al atomas je super lenze mam este jedn problem nehce sa mi zrusit animacia ..promile sa mi pekne odpocitava lenze animacia opytosti ostane ..pozrite si public trezvenie ...co by tam trebalo dopisat aby mi ju zrusilo skusil som viacero napadov alee nejde mi to prosiim vas o pomoc Link to comment Share on other sites More sharing options...
0 ATomas 286 Odesláno: 28. Prosinec, 2009 Share Odesláno: 28. Prosinec, 2009 public triezvenie() { for(new i=0; i{ if(IsPlayerConnected(i)) { if (GetPlayerState(i) == PLAYER_STATE_ONFOOT){ if (hrac[i][alkohol] >= 1){ hrac[i][alkohol]--; } else if(hrac[i][alkohol] == 0) ClearAnimations(i);//ze by bzuco zapomel ? } } } } Link to comment Share on other sites More sharing options...
0 matko.basket 0 Odesláno: 28. Prosinec, 2009 Author Share Odesláno: 28. Prosinec, 2009 tak som to i ja skusal ale mi aj tak animacia ostane nehce sa to zrusit co moze byt zle ?? Link to comment Share on other sites More sharing options...
0 Guest Bruska Odesláno: 28. Prosinec, 2009 Share Odesláno: 28. Prosinec, 2009 Ja ti to urobim mam na sinbiane hosting tak zaplatis uz som ti to zacal robit do filter criptu napis na icq 596-667-850 alebo na skype fantomas7892 Link to comment Share on other sites More sharing options...
0 Adamos 1 Odesláno: 28. Prosinec, 2009 Share Odesláno: 28. Prosinec, 2009 Ja ti to urobim mam na sinbiane hosting tak zaplatis uz som ti to zacal robit do filter criptu napis na icq 596-667-850 alebo na skype fantomas7892 Ty mas hosting na Synbiane? Spis server, ne? Link to comment Share on other sites More sharing options...
Dotaz
matko.basket 0
caves all skusal som o radu aby ste mi poradili s alkacom ale nikto nepomohol ..tak este raz by som chcel .ze kto mi spravi alkohol system ako je v vg5 aj s animaciami a vsetko co k tomu patri ...ponukam i financnu odmenu tak piste
Link to comment
Share on other sites
48 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