Guest MiNNo Odesláno: 15. Prosinec, 2008 Share Odesláno: 15. Prosinec, 2008 Takže si ukážeme jak na bankomat : Hore do modu : new bankk; //Banka new bank[MAX_PLAYERS]; new neco; OngamemodeInit : //-------------------bank------------------------- CreateObject(1977,2194.911,1993.555,11.295,0.0,0.0,-90.000);//Vytvori bankomat v LS,mozte zmenit suradnice //-------------------bank------------------ bankk = CreatePickup(1274,1,2193.6909,1993.6216,12.2969);//vytvori pickup OnPlayerPickUpPickUp //Banka if(pickupid == neco) { SetPlayerInterior(playerid,3); SetPlayerPos(playerid,-23.4095,-55.3713,1003.5469); //Suradnice pred bankomatom,kde sa nachadza pickup } //----------------bank----------------- if(pickupid == bankk) //Co sa stane ked vojdete do pickupu { SendClientMessage(playerid, COLOR_WHITE, "[ ! ] Pre vloženie peňazí napíšte /vloz částka ."); SendClientMessage(playerid, COLOR_WHITE, "[ ! ] Pre vybranie peňazí napíšte /vyber částka ."); } Vo(lne v mode ja ´to mam pod typmi mam Onplayer Selected menu row ptm public tip a pod tym mamtoto //Banka dcmd_vloz(playerid,params[]) { new castka = strval(params[0]); if(!params[0])return SendClientMessage(playerid, COLOR_WHITE, "Použitie: /vloz [čiastka]"); new string[256]; new string2[256]; if(IsPlayerConnected(playerid)){ if (IsPlayerInSphere(playerid,2193.6909,1993.6216,12.2969,5) == 1){ new sendermoney = GetPlayerMoney(playerid); if(castka <= sendermoney){ if(castka > 0){ bank[playerid] +=castka; GivePlayerMoney(playerid,-castka); SetPlayerInterior(playerid,0); format(string, sizeof(string), "V poriadku si uložil %d$ na svoj účet.", castka); SendClientMessage(playerid, COLOR_WHITE, string); format(string2, sizeof(string), "Aktuálny stav konta je : %d$", bank[playerid]); SendClientMessage(playerid, COLOR_WHITE, string2); }else{ SendClientMessage(playerid, COLOR_RED, "Chybná čiastka!"); }}else{ SendClientMessage(playerid, COLOR_RED, "Nemáš tolko penazý na tento vklad!"); }}else{ SendClientMessage(playerid, COLOR_RED, "Nejsi v banke!"); }} return true; } dcmd_vyber(playerid,params[]) { new castka = strval(params[0]); if(!params[0])return SendClientMessage(playerid, COLOR_WHITE, "Použitie: /vyber [čiastka]"); new string[256]; new string2[256]; if(IsPlayerConnected(playerid)){ SetPlayerInterior(playerid,0); if (IsPlayerInSphere(playerid,2193.6909,1993.6216,12.2969,5) == 1){ if(castka <= bank[playerid]){ if(castka > 0){ bank[playerid] -=castka; GivePlayerMoney(playerid,castka); format(string, sizeof(string), "V poriadku si vybral %d$ zo svojho účtu peniaze .", castka); SendClientMessage(playerid, COLOR_WHITE, string); format(string2, sizeof(string), "Aktuálny stav konta je : %d$", bank[playerid]); SendClientMessage(playerid, COLOR_WHITE, string2); }else{ SendClientMessage(playerid, COLOR_RED, "Chybná čiastka !"); }}else{ SendClientMessage(playerid, COLOR_RED, "Nemáš tolko penazý na tento výber !"); }}else{ SendClientMessage(playerid, COLOR_RED, "Niesi v banke !"); }} return true; } Ak nejaké chyby napíšte. Tutorial by [tShC]sMRt4k_xP] Súradnice,pickupy úprava a popis MiNNo Link to comment Share on other sites More sharing options...
癌癌癌 1 Odesláno: 15. Prosinec, 2008 Share Odesláno: 15. Prosinec, 2008 Sry...Ale tohle tu za 1.) už je a za 2.) puživej tlačitko HLEDAT Ale jinak je taky docela good.... Link to comment Share on other sites More sharing options...
Guest MiNNo Odesláno: 15. Prosinec, 2008 Share Odesláno: 15. Prosinec, 2008 Ono som to tu uz hladal,aj som si to hodil do modu uz davnejsie od CHEFA a este jeden tu je uz nwm presne od koho a ani edno mi nefugovaloo Link to comment Share on other sites More sharing options...
癌癌癌 1 Odesláno: 15. Prosinec, 2008 Share Odesláno: 15. Prosinec, 2008 Mě fungovalo...měls definovany všechno? Link to comment Share on other sites More sharing options...
Daw3 0 Odesláno: 15. Prosinec, 2008 Share Odesláno: 15. Prosinec, 2008 Bez tak taky copy... Link to comment Share on other sites More sharing options...
Guest MiNNo Odesláno: 15. Prosinec, 2008 Share Odesláno: 15. Prosinec, 2008 OmFg jake copy ? ty ..... Som to robil zo sMRt4kom u neho dobre(tu banku) To ti prisahaaaam Link to comment Share on other sites More sharing options...
Daw3 0 Odesláno: 15. Prosinec, 2008 Share Odesláno: 15. Prosinec, 2008 vždyt mě to nezajíma si kopči já říkám diagnozu Link to comment Share on other sites More sharing options...
Guest machovci Odesláno: 15. Prosinec, 2008 Share Odesláno: 15. Prosinec, 2008 pls napiste sem dcmd vloz adcmd vyber prikaz do commands text Link to comment Share on other sites More sharing options...
癌癌癌 1 Odesláno: 15. Prosinec, 2008 Share Odesláno: 15. Prosinec, 2008 pls napiste sem dcmd vloz adcmd vyber prikaz do commands text Proč podle mě je to lepší a míň padá hra EDIT: //sry špatně sem si přečetl příspěvek Link to comment Share on other sites More sharing options...
Guest obzi Odesláno: 15. Prosinec, 2008 Share Odesláno: 15. Prosinec, 2008 dyt to mas v dcmd Link to comment Share on other sites More sharing options...
Daw3 0 Odesláno: 15. Prosinec, 2008 Share Odesláno: 15. Prosinec, 2008 Neřeš (nějaká lama) Link to comment Share on other sites More sharing options...
Guest MiNNo Odesláno: 15. Prosinec, 2008 Share Odesláno: 15. Prosinec, 2008 Otázka,nekdo kto to už skúšal(tú banku)chcem vedeť či vám to ide.. Link to comment Share on other sites More sharing options...
Daw3 0 Odesláno: 15. Prosinec, 2008 Share Odesláno: 15. Prosinec, 2008 To nikdo zkušat nebude když už tu jeden tut na bankomaty je... Link to comment Share on other sites More sharing options...
癌癌癌 1 Odesláno: 15. Prosinec, 2008 Share Odesláno: 15. Prosinec, 2008 tjn... Link to comment Share on other sites More sharing options...
Guest liscze Odesláno: 11. Září, 2010 Share Odesláno: 11. Září, 2010 Ahoj já ji zkoušel a píše mi to: C:\Documents and Settings\Administrator\Plocha\pawno+server\gamemodes\nt1.0.pwn(759) : warning 203: symbol is never used: "dcmd_vloz" C:\Documents and Settings\Administrator\Plocha\pawno+server\gamemodes\nt1.0.pwn(759) : warning 203: symbol is never used: "dcmd_vyber" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 3 Warnings. Kdyžtak mi poraďte jsem nováček .. :-) Link to comment Share on other sites More sharing options...
MIKI785 14 Odesláno: 11. Září, 2010 Share Odesláno: 11. Září, 2010 Ahoj já ji zkoušel a píše mi to: C:\Documents and Settings\Administrator\Plocha\pawno+server\gamemodes\nt1.0.pwn(759) : warning 203: symbol is never used: "dcmd_vloz" C:\Documents and Settings\Administrator\Plocha\pawno+server\gamemodes\nt1.0.pwn(759) : warning 203: symbol is never used: "dcmd_vyber" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 3 Warnings. Kdyžtak mi poraďte jsem nováček .. :-) Skus to nechat - sou to jen warningy Link to comment Share on other sites More sharing options...
Guest liscze Odesláno: 11. Září, 2010 Share Odesláno: 11. Září, 2010 Ahoj já ji zkoušel a píše mi to: C:\Documents and Settings\Administrator\Plocha\pawno+server\gamemodes\nt1.0.pwn(759) : warning 203: symbol is never used: "dcmd_vloz" C:\Documents and Settings\Administrator\Plocha\pawno+server\gamemodes\nt1.0.pwn(759) : warning 203: symbol is never used: "dcmd_vyber" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 3 Warnings. Kdyžtak mi poraďte jsem nováček .. :-) Skus to nechat - sou to jen warningy No hele nejdou prikazy ..... jo a napsal jsem ti pm ... tak se koukni jestli ti to prislo .. Link to comment Share on other sites More sharing options...
MIKI785 14 Odesláno: 11. Září, 2010 Share Odesláno: 11. Září, 2010 Hmmm ja mel jednou 18 warningu a fakalo to jo a odepsal sem ti xD Link to comment Share on other sites More sharing options...
Om3n 78 Odesláno: 11. Září, 2010 Share Odesláno: 11. Září, 2010 este aby ti sly prikazy kdyz je tam nemas... Link to comment Share on other sites More sharing options...
Guest liscze Odesláno: 11. Září, 2010 Share Odesláno: 11. Září, 2010 este aby ti sly prikazy kdyz je tam nemas... Jsem novacek ... Co bych tam mel pridat ? Pridal jsem tam #pragma unused dcmd_vloz #pragma unused dcmd_vyber (rada) Ale ted mi to pise C:\Documents and Settings\Administrator\Plocha\pawno+server\gamemodes\nt1.0.pwn(716) : error 017: undefined symbol "IsPlayerInSphere" C:\Documents and Settings\Administrator\Plocha\pawno+server\gamemodes\nt1.0.pwn(744) : error 017: undefined symbol "IsPlayerInSphere" Link to comment Share on other sites More sharing options...
Guest [BJ]boban88 Odesláno: 11. Září, 2010 Share Odesláno: 11. Září, 2010 daj si tam uplne hore kde mas definy toto: #define IsPlayerInSphere(%0,%1,%2,%3,%4) IsPlayerInRangeOfPoint(%0,%4,%1,%2,%3) Link to comment Share on other sites More sharing options...
Guest liscze Odesláno: 11. Září, 2010 Share Odesláno: 11. Září, 2010 0 Chyb to je vyresene !!! Ale ..... Prikazy mi nejdou ..... Proc ? Link to comment Share on other sites More sharing options...
Guest [BJ]boban88 Odesláno: 11. Září, 2010 Share Odesláno: 11. Září, 2010 hmm pretoze si dal pragma unused params mas v prikaze params a ty ich vypnes tak sa potom necuduj ze ti to nejde vymaz to pragma unused params v tych prikazoch a napis co ti to pise Link to comment Share on other sites More sharing options...
Guest liscze Odesláno: 11. Září, 2010 Share Odesláno: 11. Září, 2010 C:\Documents and Settings\Administrator\Plocha\pawno+server\gamemodes\nt1.0.pwn(759) : warning 203: symbol is never used: "dcmd_vloz" C:\Documents and Settings\Administrator\Plocha\pawno+server\gamemodes\nt1.0.pwn(759) : warning 203: symbol is never used: "dcmd_vyber" Link to comment Share on other sites More sharing options...
Guest [BJ]boban88 Odesláno: 11. Září, 2010 Share Odesláno: 11. Září, 2010 do publicu OnPlayerCommandText si daj : dcmd(vloz,4, cmdtext); dcmd(vyber,5, cmdtext); 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