Kiwix Posted March 27, 2008 Report Share Posted March 27, 2008 Tātad man ir plugins "/iedot niks summa"... Viss jau būtu ļoti labi... Bet problēma ir tā ka daži ņem naudu nost... Tāpēc es lūdzu kādu pluginu veidotāju pateikt kas jāmaina, lai varētu rakstīt tikai pozitīvos skaitļus... Jeb otra doma, ka automātiski noņemot mīnusā uzliekas gag`s uz visu mapi... Link to comment Share on other sites More sharing options...
remix.cc Posted March 27, 2008 Report Share Posted March 27, 2008 (edited) gudri cilveki paradijas, ja kaut ko tadu izdoma.. ieliec sma failu vai noradi no kurienes tu nemi... aa un vel.. tip raksta /iedot niks -16000 ? Edited March 27, 2008 by remix.cc Link to comment Share on other sites More sharing options...
Kiwix Posted March 27, 2008 Author Report Share Posted March 27, 2008 /* AMX Mod script. * * (c) 2003, AssKicR * This file is provided as is (no warranties). * Thanx to Vud911 for the idea * * Example: /iedot "persononyourteam" "amount" and it'll deducte the amount from your cash pool and add it to the targets. * * Result Of Example * SuperNewbie: "Can someone send me some $$$ for awp???" * SuperElitePlayerWhoHasTooMuch$$$: "I'm Bill Gates!!! 4000$ coming your way!!! * SuperElitePlayerWhohasTooMuch$$$: "/transfer newbie 4000" * [AMX] SuperElitePlayerWhohasTooMuch$$$ has transferred 4000$ to SuperNewbie. Give him a thanks * SuperNewbie: "Thank You SuperElitePlayerWhohasTooMuch$$$" * * Changelog * v.1.0.0 - Released * v 1.0.1 - Added a little more restriction... Dead People can't handle money anymore * v 1.0.2 - Added Restrict for cash stealing * v 1.0.3 - Added Cvars - mt_cashsteal, mt_cashdead, mt_cashteam * v 1.0.4 - Checked Code - Found one error.. Fixed * v 1.0.5 - Removed 7 instances of "return PLUGIN_CONTINUE" that was not supposed to be there * v 1.0.6 - New Bug that i had to fix :@ * v 1.0.7 - Found the bug that *** up plugin * v 1.0.8 - Another Update... */ #include <amxmod> #include <amxmisc> #include <fun> public plugin_init() { register_plugin("Cash Transfer","1.0.8","AssKicR") register_concmd("say","handle_say",ADMIN_USER) register_concmd("say_team","handle_say",ADMIN_USER) register_cvar("mt_cashsteal","1",0) register_cvar("mt_cashdead","1",0) register_cvar("mt_cashteam","1",0) return PLUGIN_CONTINUE } public handle_say(id) { //Show me the money new said[31] new cmd[10] new target[9] new amount[7] new rest[5] read_args(said, 30) replace(said, 30, "^"", "") parse(said, cmd,9, target,8, amount,6, rest,4) new player = cmd_target(id,target,8) new name[33] new name2[33] get_user_name(id,name,32) get_user_name(player,name2,32) new team[32] new team2[32] get_user_team(id,team,32) get_user_team(player,team2,32) if (equal(cmd, "/iedot", 9)) { new money = get_user_money(id) new money2 = get_user_money(player) new cash = str_to_num(amount) new bool:NoCantDo NoCantDo=false if (!is_user_alive(id)) { if (get_cvar_num("mt_cashdead")==0) { client_print(id,print_center,"You can't give away money while dead") NoCantDo=true } } if (!is_user_alive(player)) { if (get_cvar_num("mt_cashdead")==0) { client_print(id,print_center,"You can't give money to dead people") NoCantDo=true } } if (equal(name, name2)) { client_print(id,print_center,"You can't give money to yourself") NoCantDo=true } if (!equal(team, team2)) { if (get_cvar_num("mt_cashteam")==0) { client_print(id,print_center,"You can't give money to the enemy team") NoCantDo=true } } if ((money2 + cash) > 16000) { client_print(id,print_center,"%s can't carry that much money") NoCantDo=true } if (money < cash) { client_print(id,print_center,"You don't have that much money") NoCantDo=true } if (cash < 0) { if (get_cvar_num("mt_cashsteal")==0) { client_print(id,print_center,"You can't steal %s's money",name2) NoCantDo=true } } if (!NoCantDo) { set_user_money(id, money - cash,1) set_user_money(player, money2 + cash,1) client_print(0,print_chat,"[KWX-CS] %s iedeva %i $ %s. Pasaki paldies :)",name,cash,name2) engclient_cmd(id,"say Thank you %s",name) } } return PLUGIN_CONTINUE } Link to comment Share on other sites More sharing options...
remix.cc Posted March 27, 2008 Report Share Posted March 27, 2008 njaa.. pirmo reizi man nacas chakareties ar tik glukainu pluginu... XD karo4 visu izlabot es nevareju.. vieglak uztaisit jaunu pluginu... ja plugins problemas nesagadas - lieto, ja ne, tad nokacha shina pluginu, nez vai vinam tur ir izlabota ta kluda vai nav.. Link to comment Share on other sites More sharing options...
Synk Posted March 27, 2008 Report Share Posted March 27, 2008 remix.cc ar shito var visiem iedot naudu, vai tikai komandas biedriem? Link to comment Share on other sites More sharing options...
Kiwix Posted March 27, 2008 Author Report Share Posted March 27, 2008 To var mainīt... mt_cashteam "1" Link to comment Share on other sites More sharing options...
Synk Posted March 27, 2008 Report Share Posted March 27, 2008 Liels paldies Link to comment Share on other sites More sharing options...
remix.cc Posted March 27, 2008 Report Share Posted March 27, 2008 (edited) nekadu gluku nav? Edited March 27, 2008 by remix.cc Link to comment Share on other sites More sharing options...
Kiwix Posted March 27, 2008 Author Report Share Posted March 27, 2008 Nju pagaidām neko sliktu nemaniju... =) Link to comment Share on other sites More sharing options...
neC. Posted September 14, 2008 Report Share Posted September 14, 2008 Kur vajag nomanit lai sen naudu nevar iedot ? Savadak skaitas ka chiti sadod sev naudu un fsjo, un vel lai citi neredz ka transvere naudu Link to comment Share on other sites More sharing options...
Stormbraker Posted December 23, 2008 Report Share Posted December 23, 2008 Un, kur, ko mainīt, lai varētu iedot, sākot no summas 1000!? Link to comment Share on other sites More sharing options...
shine Posted December 23, 2008 Report Share Posted December 23, 2008 (edited) Pēc "NoCanDo=false iekopē šo: if(cash < 1000) { client_print(id,print_center,"jfsduhfsfsfsdfsdfsdfsdf!") NoCantDo=true } Edited December 23, 2008 by shine Link to comment Share on other sites More sharing options...
Stormbraker Posted December 23, 2008 Report Share Posted December 23, 2008 Liels paldies... Biju uz pareizā ceļa, bet sajaucu zīmes Link to comment Share on other sites More sharing options...
the best Posted December 31, 2008 Report Share Posted December 31, 2008 psc nonemot nost mt_cashteam 1 un uzlieku uz mt_cashteam 0 un ir tiesi tas pats nekas nav mainijies psc un nevar iedot time kuri nav mana team bet tikai savam team es speju iedot psc :@ Link to comment Share on other sites More sharing options...
shine Posted December 31, 2008 Report Share Posted December 31, 2008 Tam cvaram jābūt uz 1... Pārbaudi vai serverī cvars stāv uz 1. Citi gudri pārmaina .sma to rindiņu, par cvaru, un saglabā failu. Pat nesakompilējot. Pieraksti amxx.cfg beigās: mt_cashteam 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now