Guest StReeY [Dinti] Odesláno: 11. Říjen, 2008 Share Odesláno: 11. Říjen, 2008 takze mam jednu banku ako teray urobim druhu ??? dcmd_vloz(playerid,params[]) { new castka = strval(params[0]); if(!params[0])return SendClientMessage(playerid, COLOR_SYSTEM, "Použití: /vloz [částka]"); new string[256]; new string2[256]; if(IsPlayerConnected(playerid)){ if (IsPlayerInSphere(playerid,2112.2891,964.9794,10.8203,5) == 1){ new sendermoney = GetPlayerMoney(playerid); if(castka <= sendermoney){ if(castka > 0){ bank[playerid] +=castka; GivePlayerMoney(playerid,-castka); format(string, sizeof(string), "V pořádku jsi uložil %d$ na svůj účet.", castka); SendClientMessage(playerid, COLOR_YELLOW, string); format(string2, sizeof(string), "Aktuální stav konta je : %d$", bank[playerid]); SendClientMessage(playerid, COLOR_YELLOW, string2); }else{ SendClientMessage(playerid, COLOR_RED, "Chybná částka!"); }}else{ SendClientMessage(playerid, COLOR_RED, "Nemáš tolik peněz na tento vklad!"); }}else{ SendClientMessage(playerid, COLOR_RED, "Nejsi v bance!"); }} return true; } //--------------------------------------------------------------------------------------------------------------- dcmd_vyber(playerid,params[]) { new castka = strval(params[0]); if(!params[0])return SendClientMessage(playerid, COLOR_SYSTEM, "Použití: /vyber [částka]"); new string[256]; new string2[256]; if(IsPlayerConnected(playerid)){ if (IsPlayerInSphere(playerid,2112.2891,964.9794,10.8203,5) == 1){ if(castka <= bank[playerid]){ if(castka > 0){ bank[playerid] -=castka; GivePlayerMoney(playerid,castka); format(string, sizeof(string), "V pořádku jsi vybral %d$ z tvého účtu.", castka); SendClientMessage(playerid, COLOR_YELLOW, string); format(string2, sizeof(string), "Aktuální stav konta je : %d$", bank[playerid]); SendClientMessage(playerid, COLOR_YELLOW, string2); }else{ SendClientMessage(playerid, COLOR_RED, "Chybná částka!"); }}else{ SendClientMessage(playerid, COLOR_RED, "Nemáš tolik peněz v bance!"); }}else{ SendClientMessage(playerid, COLOR_RED, "Nejsi v bance!"); }} return true; } Link to comment Share on other sites More sharing options...
0 Daw3 0 Odesláno: 11. Říjen, 2008 Share Odesláno: 11. Říjen, 2008 Uplně stejně jen změníš souřadky. Teda apon myslím. Já mám v mode 1 banku. Spiš si udělej bankomaty Link to comment Share on other sites More sharing options...
0 Guest StReeY [Dinti] Odesláno: 11. Říjen, 2008 Share Odesláno: 11. Říjen, 2008 uz som skusal zmenit surandnice nabehlo kopu errorov takze bude v tom nejaka chyba Link to comment Share on other sites More sharing options...
0 Daffy 8 Odesláno: 12. Říjen, 2008 Share Odesláno: 12. Říjen, 2008 tak tam pridej jeste jedny ne ? Link to comment Share on other sites More sharing options...
0 Guest StReeY [Dinti] Odesláno: 12. Říjen, 2008 Share Odesláno: 12. Říjen, 2008 ale pls napis ako by to malo vyzerat Link to comment Share on other sites More sharing options...
0 Guest ShockyCZE Odesláno: 12. Říjen, 2008 Share Odesláno: 12. Říjen, 2008 Prosimte,musis zmenit new ....; terba na new banka2; nevidmi ti do modu tak nwm Link to comment Share on other sites More sharing options...
0 Guest Gormy Odesláno: 12. Říjen, 2008 Share Odesláno: 12. Říjen, 2008 a co takhle nakej good navod na bankomaty ?? :wtf: :shh: Link to comment Share on other sites More sharing options...
0 Guest CHEF Odesláno: 12. Říjen, 2008 Share Odesláno: 12. Říjen, 2008 ok udelam Link to comment Share on other sites More sharing options...
0 FreeWall 3 Odesláno: 12. Říjen, 2008 Share Odesláno: 12. Říjen, 2008 ok udelam né radši né Link to comment Share on other sites More sharing options...
0 Guest StReeY [Dinti] Odesláno: 12. Říjen, 2008 Share Odesláno: 12. Říjen, 2008 lol proc ne ved mne by sa to zišlo nie ? :rap: :rap: aspon mne urcite Link to comment Share on other sites More sharing options...
0 Guest [*LoNg*]LiFe Odesláno: 13. Říjen, 2008 Share Odesláno: 13. Říjen, 2008 ak ti to nefunguje tak tu mas nieco takeho nazaciatok new bank[MAX_PLAYERS]; tu mas prikazy dcmd_vlozit(playerid,params[]) { new castka = strval(params[0]); if(!params[0])return SendClientMessage(playerid, COLOR_SYSTEM, "POUŽI: /vloz [čiastka]"); new string[256]; new string2[256]; if(IsPlayerConnected(playerid)){ if (IsPlayerInSphere(playerid,*suradnice*,5) == 1){ new sendermoney = GetPlayerMoney(playerid); if(castka <= sendermoney){ if(castka > 0){ bank[playerid] +=castka; GivePlayerMoney(playerid,-castka); format(string, sizeof(string), "V poriadku si uložil %d$ na svoj účet.", castka); SendClientMessage(playerid, COLOR_****, string); format(string2, sizeof(string), "Teraz tam máš %d$", bank[playerid]); SendClientMessage(playerid, COLOR_****, string2); }else{ SendClientMessage(playerid, COLOR_***, "Chybná čiastka!"); }}else{ SendClientMessage(playerid, COLOR_***, "Nemáš tolko peňazí zo sebou!"); }}else{ SendClientMessage(playerid, COLOR_***, "Niesi v banke!"); }} return true; } dcmd_vybrat(playerid,params[]) { new castka = strval(params[0]); if(!params[0])return SendClientMessage(playerid, COLOR_SYSTEM, "POUŽI: /vyber [čiastka]"); new string[256]; new string2[256]; if(IsPlayerConnected(playerid)){ if (IsPlayerInSphere(playerid,*suradnice*,5) == 1){ if(castka <= bank[playerid]){ if(castka > 0){ bank[playerid] -=castka; GivePlayerMoney(playerid,castka); format(string, sizeof(string), "V poriadku si vybral %d$ z tvojho účtu.", castka); SendClientMessage(playerid, COLOR_****, string); format(string2, sizeof(string), "Teraz tam máš %d$", bank[playerid]); SendClientMessage(playerid, COLOR_****, string2); }else{ SendClientMessage(playerid, COLOR_****, "Chybná čiastka!"); }}else{ SendClientMessage(playerid, COLOR_****, "Nemáš tolko peňazí v banke!"); }}else{ SendClientMessage(playerid, COLOR_****, "Niesi v banke!"); }} return true; } ok tak a teraz niečo takéto funguje to ale ešte nwm ako spravyt to že keď máš napr 10000 tak mi to vypíše že nemáš 10000 lebo tam mam nieco ... uvidiš ale strhne ti to 10000 tu je to dcmd_pvlozit(playerid,params[]) { new castka = strval(params[0]); if(!params[0])return SendClientMessage(playerid, COLOR_SYSTEM, "POUŽI: /pvlozit [čiastka]"); new string[256]; new string2[256]; if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid,COLOR_****,"Nemáš dostatok penazí!"); GivePlayerMoney(playerid,-10000); new sendermoney = GetPlayerMoney(playerid); if(castka <= sendermoney){ if(castka > 0){ bank[playerid] +=castka; GivePlayerMoney(playerid,-castka); format(string, sizeof(string), "V poriadku si uložil %d$ na svoj účet.", castka); SendClientMessage(playerid, COLOR_****, string); format(string2, sizeof(string), "Teraz tam máš %d$", bank[playerid]); SendClientMessage(playerid, COLOR_****, string2); }else{ SendClientMessage(playerid, COLOR_****, "Chybná čiastka!"); }}else{ SendClientMessage(playerid, COLOR_****, "Nemáš toľko peňazí zo sebou!"); } return true; } prikaz pvybrat ešte nemám ale pridám playercommand... dcmd(vlozit,6,cmdtext); dcmd(vybrat,6,cmdtext); dcmd(pvlozit,7,cmdtext); EDIT: ZABUDOL SOM NA ONPLAYERCOMMAND... Link to comment Share on other sites More sharing options...
0 Daw3 0 Odesláno: 15. Říjen, 2008 Share Odesláno: 15. Říjen, 2008 a co takhle nakej good navod na bankomaty ?? :wtf: :shh: Ale ten už zde je Link to comment Share on other sites More sharing options...
Dotaz
Guest StReeY [Dinti]
takze mam jednu banku ako teray urobim druhu ???
Link to comment
Share on other sites
11 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