Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Blokada teamuRuletka
#1
Napisano 02.01.2011 16:28
A i druga sprawa chodzi mi o nieskończoność Ammo co muszę dodać jak sie nawywa nieskończoność amunicji w Amx ?
#2
Napisano 02.01.2011 16:38
enum Nagrody{ HP, FRAGI, GRANAT }; new giNagrodyDlaCT[] = {HP, GRANAT}; new giNagrodyDlaTe[] = {HP, FRAGI};i losuj index z tablicy zależnie od drużyny
new nagroda = -1; switch(cs_get_user_team(id)){ case CS_TEAM_CT:{ nagroda = giNagrodyDlaCt(random(sizeof giNagrodyDlaCt)); } case CS_TEAM_CT:{ nagroda = giNagrodyDlaTe(random(sizeof giNagrodyDlaTe)); } } switch(nagroda){ case HP:{} case FRAGI:{} case GRANAT:{} }
A nieskończoność ammo skopiuj sobie stąd, ja zawsze tak robiłem Unlimited Ammo ( the better way ) 0.3.1 *FIXED AGAIN* - AlliedModders
#3
Napisano 02.01.2011 16:47
jak wkleilem tą blokade to mi bląd wyskakiwał
Użytkownik MrCma edytował ten post 02.01.2011 16:50
#5
Napisano 02.01.2011 16:52
#6
Napisano 02.01.2011 17:04
case 1 : { set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1); show_hudmessage(0,"%s Wylosowal kamizelke! .",nick); client_print(id,print_chat,"Dostales kamizelke"); give_item(id, "item_kevlar"); } case 2: { set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1); show_hudmessage(0,"%s Wylosowal autokampe .",nick); client_print(id,print_chat,"Otrzymujesz autokampe"); give_item(id,"ammo_762nato"); give_item(id, "weapon_g3sg1"); } case 3: { set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1); show_hudmessage(0,"%s Wylosowal Rambo .",nick); client_print(id,print_chat,"Rambo!!"); give_item(id, "weapon_m249"); give_item(id,"ammo_556natobox"); give_item(id, "item_kevlar"); give_item(id, "weapon_smokegrenade"); give_item(id, "weapon_flashbang"); give_item(id, "weapon_hegrenade"); } case 4: { set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1); show_hudmessage(0,"%s Wylosowal 255 HP .",nick); client_print(id,print_chat,"Masz 255 HP"); set_user_health(id,255); } case 5: { set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1); show_hudmessage(0,"%s Wylosowal 10 HP .",nick); client_print(id,print_chat,"Masz 10 HP powodzenia <img src='http://images.amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue.gif' class='bbc_emoticon' alt=':P' />"); set_user_health(id,10); } case 6: { set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1); show_hudmessage(0,"%s Wylosowal... nic <img src='http://images.amxx.pl/public/style_emoticons/<#EMO_DIR#>/biggrin.gif' class='bbc_emoticon' alt=':D' /> .",nick); client_print(id,print_chat,"Pusto <img src='http://images.amxx.pl/public/style_emoticons/<#EMO_DIR#>/biggrin.gif' class='bbc_emoticon' alt=':D' />"); } case 7: { set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1); show_hudmessage(0,"%s Wylosowal spowolnienie .",nick); client_print(id,print_chat,"Wolno biegasz <img src='http://images.amxx.pl/public/style_emoticons/<#EMO_DIR#>/biggrin.gif' class='bbc_emoticon' alt=':D' />"); set_user_maxspeed (id, 100.0); } case 8: { set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1); show_hudmessage(0,"%s Dostal flare .",nick); client_print(id,print_chat,"Dostales flare"); give_item(id, "weapon_smokegrenade"); } case 9: { set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1); show_hudmessage(0,"%s Dostal frosta .",nick); client_print(id,print_chat,"Dostales fosta"); give_item(id, "weapon_flashbang"); } case 10: { set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1); show_hudmessage(0,"%s Dostal granat podpalajacy! .",nick); client_print(id,print_chat,"Dostales granat podpalajacy"); give_item(id, "weapon_hegrenade");
to sa nagrody gdzie to wpisać?
Dodano 02 styczeń 2011 - 20:43:
mógł by ktoś help ?
#7
Napisano 03.01.2011 00:43
Na górze
new const giNagrodyDlaCt[] = {1, 2, 3, 4, 5, 6, 7, 8, 9 ,10}; new const giNagrodyDlaTe[] = {1, 2, 3, 4, 5, 6, 7, 8, 9 ,10};
Potem przed tymi case 1:, case 2: zmiast losowania co tam masz
new nagroda = -1; switch(cs_get_user_team(id)){ case CS_TEAM_CT:{ nagroda = giNagrodyDlaCt(random(sizeof giNagrodyDlaCt)); } case CS_TEAM_CT:{ nagroda = giNagrodyDlaTe(random(sizeof giNagrodyDlaTe)); } } switch(nagroda){
#8
Napisano 03.01.2011 20:53
Dodano 03 styczeń 2011 - 21:27:
a bawił sie ktos kiedys pluginami na ZM ? chce zrobić żeby w ruletce bylo można wygrac ammo packi i także je przegrać ale nie wiem jak to zapisać
Dodano 03 styczeń 2011 - 21:38:
new const giNagrodyDlaCt[] = {1, 2, 3, 4, 5, 6, 7, 8, 9 ,10};
w tych numerkach wpisac która nagrada jest dla kogo ? np case5 to tam wpisuje 5 ?
#9
Napisano 03.01.2011 23:24
#10
Napisano 06.01.2011 11:51
new nagroda = -1; switch(cs_get_user_team(id)){ case CS_TEAM_CT:{ nagroda = giNagrodyDlaCt(random(sizeof giNagrodyDlaCt)); } case CS_TEAM_CT:{ nagroda = giNagrodyDlaTe(random(sizeof giNagrodyDlaTe)); } } switch(nagroda){A to gdzie powklejać ?
np w tym
case 1 : { set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1); show_hudmessage(0,"%s Wylosowal kamizelke! .",nick); client_print(id,print_chat,"Dostales kamizelke"); give_item(id, "item_kevlar");
Dodano 08 styczeń 2011 - 16:33:
mógł by ktoś na GG napisać ? 18248908 bo tu na forum to za dużo roboty... i tu nie będę plików ujawniał
Dodano 13 styczeń 2011 - 17:24:
pomoże ktoś?
#11
Napisano 13.01.2011 17:43
#12
Napisano 13.01.2011 17:58
#include <amxmodx> #include <amxmisc> #include <fun> #include <zombieplague> #define PLUGIN "Ruletka_By_Mr.Cma" #define VERSION "1.0 BETA" #define AUTHOR "Mr.Cma" new last_used[33] = 0; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); register_clcmd("say /ruletka","ruletka"); register_clcmd("say_team /ruletka","ruletka"); set_task(144.0, "printer", _, _, _, "b"); } public client_connect(id) { last_used[id] = 0; } stock client_no_print(id, type, const message[], any:...) { static msg[512]; vformat(msg, charsmax(msg), message, 4) new players[32], num; for (new i=0; i<num; i++) { new aid = players[i]; if (aid == id) continue; client_print(aid, type, msg); } } public ruletka(id) { if (get_systime()-last_used[id]<100){ client_print(id, print_chat, "Musisz odczekac jeszcze %d sekund aby uzyc ruletki", 100-get_systime()+last_used[id]) return PLUGIN_HANDLED; } last_used[id] = get_systime(); new nick[36]; get_user_name(id, nick, charsmax(nick)); switch(random_num(1, 11)) { case 1 : { set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1); show_hudmessage(0,"%s Wylosowal kamizelke! .",nick); client_print(id,print_chat,"Dostales kamizelke"); give_item(id, "item_kevlar"); } case 2: { set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1); show_hudmessage(0,"%s Wylosowal autokampe .",nick); client_print(id,print_chat,"Otrzymujesz autokampe"); give_item(id,"ammo_762nato"); give_item(id, "weapon_g3sg1"); } case 3: { set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1); show_hudmessage(0,"%s Wylosowal Rambo .",nick); client_print(id,print_chat,"Rambo!!"); give_item(id, "weapon_m249"); give_item(id,"ammo_556natobox"); give_item(id, "item_kevlar"); give_item(id, "weapon_smokegrenade"); give_item(id, "weapon_flashbang"); give_item(id, "weapon_hegrenade"); } case 4: { set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1); show_hudmessage(0,"%s Wylosowal 255 HP .",nick); client_print(id,print_chat,"Masz 255 HP"); set_user_health(id,255); } case 5: { set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1); show_hudmessage(0,"%s Wylosowal 10 HP .",nick); client_print(id,print_chat,"Masz 10 HP powodzenia <img src='http://images.amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue.gif' class='bbc_emoticon' alt=':P' />"); set_user_health(id,10); } case 6: { set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1); show_hudmessage(0,"%s Wylosowal... nic <img src='http://images.amxx.pl/public/style_emoticons/<#EMO_DIR#>/biggrin.gif' class='bbc_emoticon' alt=':D' /> .",nick); client_print(id,print_chat,"Pusto <img src='http://images.amxx.pl/public/style_emoticons/<#EMO_DIR#>/biggrin.gif' class='bbc_emoticon' alt=':D' />"); } case 7: { set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1); show_hudmessage(0,"%s Wylosowal spowolnienie .",nick); client_print(id,print_chat,"Wolno biegasz <img src='http://images.amxx.pl/public/style_emoticons/<#EMO_DIR#>/biggrin.gif' class='bbc_emoticon' alt=':D' />"); set_user_maxspeed (id, 100.0); } case 8: { set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1); show_hudmessage(0,"%s Dostal flare .",nick); client_print(id,print_chat,"Dostales flare"); give_item(id, "weapon_smokegrenade"); } case 9: { set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1); show_hudmessage(0,"%s Dostal frosta .",nick); client_print(id,print_chat,"Dostales fosta"); give_item(id, "weapon_flashbang"); } case 10: { set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1); show_hudmessage(0,"%s Dostal granat podpalajacy! .",nick); client_print(id,print_chat,"Dostales granat podpalajacy"); give_item(id, "weapon_hegrenade"); } case 11: { set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1); show_hudmessage(0,"%s Wylosowal... nic <img src='http://images.amxx.pl/public/style_emoticons/<#EMO_DIR#>/biggrin.gif' class='bbc_emoticon' alt=':D' /> .",nick); client_print(id,print_chat,"Pusto <img src='http://images.amxx.pl/public/style_emoticons/<#EMO_DIR#>/biggrin.gif' class='bbc_emoticon' alt=':D' />"); } case 12: { set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1); show_hudmessage(0,"%s Wylosowal 5 AP.",nick); client_print(id,print_chat,"Masz 5 AP wiecej"); zp_set_user_ammo_packs(id,5); } } } public printer() { { client_print(0, print_chat, " [Ruletka by ErroR' and Mr.Cma]Aby zagrac w ruletke wpisz: say /ruletka.") client_print(0, print_chat, " Zyczymy wielu wygranych.") client_print(0, print_chat, " W razie bledow proszę pisac na forum lub GG 18248908 .") }
proszę dodaj
#13
Napisano 14.01.2011 18:01
unlimitedammo.amxx 2,03 KB 5 Ilość pobrań
Użytkownik krysteksulek edytował ten post 14.01.2011 18:03
#14
Napisano 14.01.2011 18:22
Załączone pliki
#15
Napisano 14.01.2011 21:03
jak zrobić żeby ded i widownia nie mogli grać
#16
Napisano 14.01.2011 21:27
#17
Napisano 14.01.2011 21:53
Dodano 14 styczeń 2011 - 21:56:
funkcji łapiącej say
Co to za funkcja ?
#18
Napisano 15.01.2011 14:26
Ta funkcja łapie wiadomości z saya
public ruletka(id){
#19
Napisano 15.01.2011 14:33
Dzięki
Dodano 16 styczeń 2011 - 23:19:
Wie ktoś może (R3X ) jak dodac do pluginu "black list" żebym u siebie na kompie lub gdzieś w inny sposób mógł zablokować komuś używanie pluginu np na IP
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych