Granaty w rundzie rozgrzewkowej
bakul. <3
28.01.2009
Szukam pluginu, który w rundzie rozgrzewkowej będzie dawał nieskończoną ilość granatów wybuchowych. Może być z muzyką, ale może być sam plugin (bez muzyki).
naven
28.01.2009
#include <amxmodx> #include <fun> #include <cstrike> new bool:gPlayerFirstSpawn[33] new bool:is_warmup new warmup_time new time_left public plugin_init() { register_plugin("warmup on first round", "1.0", "x-raycat") warmup_time = register_cvar("amx_warmup_time", "1m 0s") register_event("ResetHUD", "Event_ResetHud", "be") register_event("CurWeapon", "Event_CurWeapon", "be") is_warmup = true init_warmup_time() } public restartround(id){ gPlayerFirstSpawn[id] = true return PLUGIN_CONTINUE } public countdown(){ time_left-- if(time_left < 0) { restart() } return PLUGIN_CONTINUE } public init_warmup_time(){ new time[24], temp[2][6] get_pcvar_string(warmup_time, time, 23) replace(time, 23, "m", "") replace(time, 23, "s", "") parse(time, temp[0], 5, temp[1], 5) time_left = str_to_num(temp[0]) * 60 + str_to_num(temp[1]) set_task(1.0, "countdown", 4567,_,_,"b") set_task(1.0, "show_time", 2345,_,_,"b") } public show_time(){ set_hudmessage(255, 255, 255, -1.0, 0.31, 0, 6.0, 2.0) show_hudmessage(0, "Runda rozgrzekowa, %d:%02d sekund do konca.", time_left / 60, time_left % 60) } public restart(){ is_warmup = false remove_task(4567) remove_task(2345) server_cmd("sv_restart 1") } public Event_ResetHud(id) { if(is_warmup) set_task(0.1, "task_give", id) } public task_give(id){ if (!is_user_alive(id)) return strip_user_weapons(id); give_item(id, "weapon_CSW_M3") cs_set_user_bpammo(id, CSW_HEGRENADE, 4) cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM) cs_set_user_money (id , 10000) //Set money 0 that they will not buy anything } public Event_CurWeapon(id){ //just to make sure if they get weapons somewhere... static trash1, trash2 new weapon = get_user_weapon(id, trash1, trash2) new bool:hasInvalidWeapon = (weapon != CSW_HEGRENADE) if (hasInvalidWeapon && is_warmup) { client_cmd(id, "drop;hegren;hegren;hegren;hegren;hegren") } }
bakul. <3
28.01.2009
Nie o to mi chodzi. Chodzi dokładniej o taki plugin:
1. Ustawia granaty wybuchowe na runde rozgrzewkową.
2. Jest ich nieskończoność.
Ten plugin jest zły, ponieważ gdy wchodzę na mapę, a kolega już czekał - robi się Game Commencing, a runda rozgrzewkowa nadal trwa. Ustawiłem czas rozgrzewki na 55 sec., a gdy wchodziłem na mape i robił się Game Commencing już było 27 sec. do końca. Więc czekam na kolejne propozycje
1. Ustawia granaty wybuchowe na runde rozgrzewkową.
2. Jest ich nieskończoność.
Ten plugin jest zły, ponieważ gdy wchodzę na mapę, a kolega już czekał - robi się Game Commencing, a runda rozgrzewkowa nadal trwa. Ustawiłem czas rozgrzewki na 55 sec., a gdy wchodziłem na mape i robił się Game Commencing już było 27 sec. do końca. Więc czekam na kolejne propozycje
bakul. <3
29.01.2009
Może być podobne do he_arena.amxx, ale żeby było na rundzie nożowej i by spełniało wymagania, które napisałem w #3 poście.
Kajtekk
29.01.2009
naXe 29.01.2009
to : http://amxx.pl/viewt...ghlight=granaty
tylko musisz ustawić na same granaty.
tylko musisz ustawić na same granaty.