Serwery wiaderko.com Zwiń / Rozwiń kategorię

HashJama [TP] 193.33.176.148:27015 | tp.wiaderko.com status serwera HashJama [TP] połącz

HashJama CS:GO [DM] 193.33.176.53:27015 | dm.wiaderko.com status serwera HashJama CS:GO [DM] połącz

HashJama CS:GO [FFA] 193.33.176.15:27015 | ffa.wiaderko.com status serwera HashJama CS:GO FFA [FFA] połącz

HashJama [TeamSpeak 3] 62.210.99.220:9987 | ts.wiaderko.com status serwera HashJama [TP ELITE] 62.210.99.220:27015 połącz

SPONSOR:
pukawka.pl

Nabór na JUNIOR ADMINA forum - Więcej informacji > Klik <
Pokaż wyniki od 1 do 5 z 5
  1. #1
    Starsza lamka Awatar Kub@S
    Dołączył
    Jan 2010
    Posty
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Domyślnie Przerobienie pluginu

    Witam
    Tj. w temacie proszę o przerobienie pluginu tego
    Ultimate Warm-Up 1.3: - Nieoficjalny polski support AMX Mod X
    Ponieważ mam mały problem, mam nową muzyczkę nie tą co jest, ale mam tą samą nazwe: play_muza i dlaczego to nie dziala, przerabiałem coś w sma ale nic nie dziala dalej, proszę dać może mi kod sma ponieważ nie mogę zrobić i zeby bylo w formacie mp3 play_muza.mp3
    dzieki

  2. #2
    Starsza lamka Awatar Kub@S
    Dołączył
    Jan 2010
    Posty
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Domyślnie Odp: Przerobienie pluginu

    Ty chcesz pieniądze, także nie dziękuję, czy może ktoś to zrobić za darmo ;/ za przerobienie chce kase...

  3. #3
    pro Awatar peku33
    Dołączył
    Oct 2008
    Posty
    7,248
    Thanks
    29
    Thanked 534 Times in 453 Posts

    Domyślnie Odp: Przerobienie pluginu

    po pierwsze muza musi mieć inną nazwę.
    Bo się innym nie ściągnie.

    Po drugie musi mieć określony format.
    WAV 22Khz, 8BIT MONO

  4. #4
    Starsza lamka Awatar Kub@S
    Dołączył
    Jan 2010
    Posty
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Domyślnie Odp: Przerobienie pluginu

    Okej, ja to mam all, zaraz zobaczę czy działa tak jak mówisz, ale trzeba sma przerobić jak się zmienia. możesz dać sma z inną nazwą np. rozgrzewka.wav dac kod ?

    ---------- Post dodany 28-07-2010 o godzinie 10:03 ----------

    Pokaże Ci moje sma które przerobiłem chyba dobrze ;p[COLOR="orange"]

    ---------- Post dodany 28-07-2010 o godzinie 10:07 ----------

    Kod:
    #include <amxmodx>
    #include <fun>
    #include <cstrike>
    #include <hamsandwich>
    #include <fakemeta>
    
    new bool:gPlayerFirstSpawn[33]
    new bool:is_warmup
    new warmup_time
    new time_left
    
    /*
    Plugin was originally developed by x-raycat.
    Cvary/cvars
    amx_warmup_time <czas> przykład: "1m 30s" równa się 1 minuta i 30 sekund.
    amx_warmup_time <time> example: "1m 30s" equals 1 minute and 30 seconds.
    
    amx_warmup_respawn(0- ożywianie wyłączone, 1- ożywianie włączone)
    amx_warmup_respawn(0- auto-respawn off, 1- auto-respawn ON)
    
    amx_warmup_weapon:
    Każdy numer odpowiada broni.
    amx_warmup_weapon:
    Each number is a weapon for this plugin. List:
    
    1   weapon_p228			//p228(pistolet)
    2   weapon_scout    		//scout         
    3   weapon_hegrenade		//granat HE
    4   weapon_xm1014		//auto-pompa
    5   weapon_mac10           	//uzi tt              
    6   weapon_aug        		//aug      
    7   weapon_elites		//elites        
    8   weapon_fiveseven		//fiveseven
    9   weapon_ump45		//b(3(2))
    10   weapon_sg550		//autokampa cT
    11   weapon_galil		//galil
    12   weapon_famas		//famas
    13   weapon_usp			//usp
    14   weapon_glock18		//glock
    15   weapon_awp  		//awp
    16   weapon_mp5navy   		//MP5
    17   weapon_m249       		//krowa
    18   weapon_m3         		//pompa
    19   weapon_m4a1        	//M4
    20   weapon_tmp         	//tmp
    21   weapon_g3sg1		//autokampa TT
    22   weapon_deagle		//dgl
    23   weapon_sg552		//sg552(tt)
    24   weapon_ak47		//ak47
    25   weapon_p90  		//P90
    26   weapon_knife		//nóż
    Ustawienie każdej innej wartości cvaru amx_warmup_weapon powoduje ustawienie domyślnej broni- nóż.
    By setting any different number as a cvar value causes to use default weapon- knife.
    
    Change-Log
    
    v.1.3
    -added multilingual support,
    -added commented examples of using mp3 format.
    
    v.1.2
    -little code cleanup.
    
    v.1.1
    -added most of available things: weapons, respawns, countdown, sound.
    
    v.1.0
    -first written, testing, testing and once more testing.
    
    
    To do list:
    -optimize and remove useless code with giving weapons.
    */
    
    public plugin_init() {
    	register_plugin("Ultimate Warm-Up", "1.3", "naven")
    	warmup_time = register_cvar("amx_warmup_time", "1m 0s")
    	register_cvar("amx_warmup_respawn", "1")
    	register_cvar("amx_warmup_weapon","3")
    	register_event("ResetHUD", "Event_ResetHud", "be")
    	register_event("DeathMsg", "DeathMsg", "a")
    	register_dictionary("ultimate_warmup.txt")
    	
    	set_task(15.0,"muza_on", 0)
    	is_warmup = true
    	init_warmup_time()
    }
    public muza_on(){
    	client_cmd(0,"stopsound")
        client_cmd(0,"sound/misc/rozgrzewka.wav")
    }
    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(random_num(0,255), random_num(0,255), random_num(0,255), -1.0, random_float(0.15, 0.40), /*0.31,*/ 0, 6.0, 2.0)
    	//show_hudmessage(0, "Rozgrzewka pozostalo %d:%02d sekund.", time_left / 60, time_left % 60)
    	show_hudmessage(0, "%L", LANG_PLAYER, "WARMUP_COUNTDOWN", time_left / 60, time_left % 60)
    }
    public restart(){
    	is_warmup = false
    	remove_task(4567)
    	remove_task(2345)
    	
    	server_cmd("sv_restart 1")
    	new Players[32], playerCount;
    	get_players(Players, playerCount);
    	for (new i=0; i<playerCount; i++){
    	new id = Players[i];
    	if(cs_get_user_bpammo(id, CSW_HEGRENADE)) 
    	cs_set_user_bpammo(id, CSW_HEGRENADE, 0);
    }
    }
    public Event_ResetHud(id) {
    	if(is_warmup)
    		set_task(0.1, "task_give", id)
    } 
    public DeathMsg()
    {
    	if((is_warmup) && (get_cvar_num("amx_warmup_respawn") ==1)){
    		new id = read_data(2)
    		set_task(1.0,"respawn_player",id)
    	}
    }
    public respawn_player(id)	//zerżnięte od seby
    {     
    	if(is_user_connected(id))
    		ExecuteHamB(Ham_CS_RoundRespawn, id)     
    }
    
    public task_give(id){
    	if (!is_user_alive(id))
    		return
    	//obecna_bron = get_user_weapon(id)
    	new cvar_na_bronie = get_cvar_num("amx_warmup_weapon")
    	strip_user_weapons(id);
    	switch(cvar_na_bronie){
    	case 1 : 
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0)
    		give_item(id, "weapon_p228")
    		give_item(id, "ammo_357sig")
    		give_item(id, "ammo_357sig")
    		give_item(id, "ammo_357sig")
    		give_item(id, "ammo_357sig")
    	}
    	case 2 :
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0)
    		give_item(id, "weapon_scout")
    		give_item(id, "ammo_762nato")
    		give_item(id, "ammo_762nato")
    		give_item(id, "ammo_762nato")
    		give_item(id, "ammo_762nato")
    		give_item(id, "ammo_762nato")
    		give_item(id, "ammo_762nato")
    		give_item(id, "ammo_762nato")
    		give_item(id, "ammo_762nato")
    		give_item(id, "ammo_762nato")
    	}
    	case 3 :
    	{
    	give_item(id, "weapon_hegrenade");
    	cs_set_user_bpammo(id, CSW_HEGRENADE, 100)
    	}
    	case 4 :
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0)
    		give_item(id, "weapon_xm1014")
    		give_item(id, "ammo_buckshot")	
    		give_item(id, "ammo_buckshot")	
    		give_item(id, "ammo_buckshot")	
    		give_item(id, "ammo_buckshot")	
    		give_item(id, "ammo_buckshot")	
    	}
    	case 5 :
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0) 
    		give_item(id, "weapon_mac10")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    	}
    	case 6 :
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0) 
    		give_item(id, "weapon_aug")
    		give_item(id, "ammo_556nato")
    		give_item(id, "ammo_556nato")
    		give_item(id, "ammo_556nato")
    	}
    	case 7 :
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0) 
    		give_item(id, "weapon_elite")
    		give_item(id, "ammo_9mm")
    		give_item(id, "ammo_9mm")
    		give_item(id, "ammo_9mm")
    		give_item(id, "ammo_9mm")
    	}
    	case 8 :
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0) 
    		give_item(id, "weapon_fiveseven")
    		give_item(id, "ammo_57mm")
    		give_item(id, "ammo_57mm")
    		give_item(id, "ammo_57mm")
    		give_item(id, "ammo_57mm")
    		give_item(id, "ammo_57mm")
    		give_item(id, "ammo_57mm")
    	}
    	case 9 :
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0) 
    		give_item(id, "weapon_ump45")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    	}
    	case 10 :
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0) 
    		give_item(id, "weapon_sg550")
    		give_item(id, "ammo_556nato")
    		give_item(id, "ammo_556nato")
    		give_item(id, "ammo_556nato")
    		give_item(id, "ammo_556nato")
    	}
    	case 11 :
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0) 
    		give_item(id, "weapon_galil")
    		give_item(id, "ammo_556nato")
    		give_item(id, "ammo_556nato")
    		give_item(id, "ammo_556nato")
    		give_item(id, "ammo_556nato")
    	}
    	case 12 :
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0) 
    		give_item(id, "weapon_famas")
    		give_item(id, "ammo_556nato")
    		give_item(id, "ammo_556nato")
    		give_item(id, "ammo_556nato")
    		give_item(id, "ammo_556nato")
    	}
    	case 13 :
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0) 
    		give_item(id, "weapon_usp")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    		give_item(id, "ammo_45acp")
    	}
    	case 14 :
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0) 
    		give_item(id, "weapon_glock18")
    		give_item(id, "ammo_9mm")
    		give_item(id, "ammo_9mm")
    		give_item(id, "ammo_9mm")
    		give_item(id, "ammo_9mm")
    		give_item(id, "ammo_9mm")
    		give_item(id, "ammo_9mm")
    		give_item(id, "ammo_9mm")
    	}
    	case 15 :
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0) 
    		give_item(id, "weapon_awp")
    		give_item(id, "ammo_338magnum")
    		give_item(id, "ammo_338magnum")
    		give_item(id, "ammo_338magnum")
    		give_item(id, "ammo_338magnum")
    	}
    	case 16 :
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0) 
    		give_item(id, "weapon_mp5navy")
    		give_item(id, "ammo_9mm")
    		give_item(id, "ammo_9mm")
    		give_item(id, "ammo_9mm")
    		give_item(id, "ammo_9mm")
    		give_item(id, "ammo_9mm")
    		give_item(id, "ammo_9mm")
    	}
    	case 17 :
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0) 
    		give_item(id, "weapon_m249")
    		give_item(id, "ammo_556natobox")
    		give_item(id, "ammo_556natobox")
    		give_item(id, "ammo_556natobox")
    		give_item(id, "ammo_556natobox")
    		give_item(id, "ammo_556natobox")
    		give_item(id, "ammo_556natobox")
    		give_item(id, "ammo_556natobox")
    		give_item(id, "ammo_556natobox")
    		give_item(id, "ammo_556natobox")
    	}
    	case 18 :
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0) 
    		give_item(id, "weapon_m3")
    		give_item(id, "ammo_buckshot")
    		give_item(id, "ammo_buckshot")
    		give_item(id, "ammo_buckshot")
    		give_item(id, "ammo_buckshot")
    	}
    	case 19 :
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0) 
    		give_item(id, "weapon_m4a1")
    		give_item(id, "ammo_556nato")
    		give_item(id, "ammo_556nato")
    		give_item(id, "ammo_556nato")
    		give_item(id, "ammo_556nato")
    		give_item(id, "ammo_556nato")
    	}
    	case 20 :
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0) 
    		give_item(id, "weapon_tmp")
    		give_item(id, "ammo_9mm")
    		give_item(id, "ammo_9mm")
    		give_item(id, "ammo_9mm")
    		give_item(id, "ammo_9mm")
    	}
    	case 21 :
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0) 
    		give_item(id, "weapon_g3sg1")
    		give_item(id, "ammo_762nato")
    		give_item(id, "ammo_762nato")
    		give_item(id, "ammo_762nato")
    		give_item(id, "ammo_762nato")
    		give_item(id, "ammo_762nato")
    	}
    	case 22 :
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0) 
    		give_item(id, "weapon_deagle")
    		give_item(id, "ammo_50ae")
    		give_item(id, "ammo_50ae")
    		give_item(id, "ammo_50ae")
    		give_item(id, "ammo_50ae")
    		give_item(id, "ammo_50ae")
    	}
    	case 23 :
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0) 
    		give_item(id, "weapon_sg552")
    		give_item(id, "ammo_556nato")
    		give_item(id, "ammo_556nato")
    		give_item(id, "ammo_556nato")
    		give_item(id, "ammo_556nato")
    	}
    	case 24 :
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0) 
    		give_item(id, "weapon_ak47")
    		give_item(id, "ammo_762nato")
    		give_item(id, "ammo_762nato")
    		give_item(id, "ammo_762nato")
    		give_item(id, "ammo_762nato")
    	}
    	case 25 :
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0) 
    		give_item(id, "weapon_p90")
    		give_item(id, "ammo_57mm")
    		give_item(id, "ammo_57mm")
    		give_item(id, "ammo_57mm")
    	}
    	case 26 :
    	{
    		cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    		cs_set_user_money (id , 0) 
    		give_item(id, "weapon_knife")
    	}
    	
    	default :
    {
    	log_amx("Nieprawidlowa wartosc cvar amx_warmup_weapon, ustawiam domyslna bron- noz")
    	cs_set_user_armor (id, 100, CS_ARMOR_VESTHELM)
    	cs_set_user_money (id , 0) 
    	give_item(id, "weapon_knife")
    }
    }
    }
    public plugin_precache() 
    {
    	precache_sound("misc/rozgrzewka.wav")
    	
    	
    	return PLUGIN_CONTINUE
    }
    Ostatnio edytowane przez Kub@S ; 28-07-2010 o 13:08

  5. #5
    Adminus pospolitus Awatar naven
    Dołączył
    Jan 2008
    Wiek
    27
    Posty
    10,802
    Thanks
    31
    Thanked 652 Times in 605 Posts

    Domyślnie Odp: Przerobienie pluginu

    Nic w kodzie nie zmieniłeś o soundach...
    Najlepszy hosting Hidden Content href="Hidden Content target="_blank">tutaj
    Konfiguracja amxx, instalacja pluginów, pisanie pluginów AMXX. Więcej info na Hidden Content

    "At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.

Podobne wątki

  1. Przerobienie pluginu VIP
    By tYsU^ in forum Pisanie pluginów AMXX
    Odpowiedzi: 1
    Ostatni post / autor: 28-01-2011, 12:15
  2. Prośba o przerobienie pluginu
    By $Mok3r in forum Pisanie pluginów AMXX
    Odpowiedzi: 0
    Ostatni post / autor: 17-01-2011, 04:00
  3. Prośba o przerobienie pluginu
    By mateuszszwaba in forum Pisanie pluginów AMXX
    Odpowiedzi: 2
    Ostatni post / autor: 23-12-2010, 11:18
  4. Przerobienie pluginu
    By #T-Pain in forum Pisanie pluginów AMXX
    Odpowiedzi: 2
    Ostatni post / autor: 14-12-2010, 18:38
  5. [Przerobienie] prośba o przerobienie pluginu na non steam
    By Nindża in forum Pisanie pluginów AMXX
    Odpowiedzi: 1
    Ostatni post / autor: 04-07-2010, 22:11
  6. Prośba o przerobienie pluginu
    By Spyrek in forum Pisanie pluginów AMXX
    Odpowiedzi: 1
    Ostatni post / autor: 23-06-2010, 17:18
  7. Przerobienie PLUGINU
    By ToToro_ in forum Pisanie pluginów AMXX
    Odpowiedzi: 4
    Ostatni post / autor: 08-06-2010, 18:26
  8. Przerobienie Pluginu
    By bolek007 in forum Pisanie pluginów AMXX
    Odpowiedzi: 7
    Ostatni post / autor: 31-08-2009, 14:53
  9. Przerobienie pluginu HP
    By krzysiekgame in forum Pisanie pluginów AMXX
    Odpowiedzi: 8
    Ostatni post / autor: 27-07-2009, 20:14
  10. Przerobienie pluginu
    By Bongos1 in forum Szukam pluginu AMX/AMXX
    Odpowiedzi: 1
    Ostatni post / autor: 21-05-2008, 13:16

Odwiedzający poszukiwali:

Nikt jeszcze nie odwiedził tej strony poprzez wyszukiwarki

Uprawnienia umieszczania postów

  • Nie możesz zakładać nowych tematów
  • Nie możesz pisać wiadomości
  • Nie możesz dodawać załączników
  • Nie możesz edytować swoich postów
  •