Skocz do zawartości

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.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

EDUCJA - zdjęcie

EDUCJA

Rejestracja: 03.03.2020
Aktualnie: Nieaktywny
Poza forum Ostatnio: 26.09.2021 22:25
-----

Moje tematy

grenade error menu

21.03.2020 03:40

hello could you help me add the grenade drug to the grenade menu

try but it only gives me 1 single drug grenade when it should give me 2 or 3 depending on the level
 
public hand_buy3_info(id, key, menu)
{
	switch (key)
	{
		case 0:
		{
			if (g_level[id] >= GRANADAS[g_arm_sele[id][2]][GRANADA_LVL])
			{
				g_granadas[id] = g_arm_sele[id][2]
				show_buy(id)
				return PLUGIN_HANDLED;
			}
		}
		case 1:
		{
			if (g_level[id] >= GRANADAS[g_arm_sele[id][2]][GRANADA_LVL] && g_compro[id] == 0)
			{
				if (g_compro[id] == 0)
				{
					if (g_level[id] < PRIMARIAS[g_primaria[id]][ARMA_LVL] || g_level[id] < SECUNDARIAS[g_secundaria[id]][ARMA_LVL] || g_level[id] < GRANADAS[g_granadas[id]][GRANADA_LVL])
					{
						zp_colored_print(id, "%s No cumples con el nivel de algun arma", Prefix)
						g_auto_comprador[id] = 0
						show_buy(id)
					}
					else
					{
						g_granadas[id] = g_arm_sele[id][2]
						g_compro[id] = 1
						fm_strip_user_weapons(id)
						fm_give_item(id, "weapon_knife")
						fm_give_item(id, PRIMARIAS[g_primaria[id]][ARMA_WEAPON])
						fm_give_item(id, SECUNDARIAS[g_secundaria[id]][ARMA_WEAPON])
						fm_give_item(id, "weapon_hegrenade")
						fm_give_item(id, "weapon_flashbang")
						fm_give_item(id, "weapon_smokegrenade")
						fm_set_user_bpammo(id, CSW_HEGRENADE, GRANADAS[g_granadas[id]][GRANADA_CANTIDA_FIRE] += GRANADAS[g_granadas[id]][GRANADA_CANTIDA_DROGA])
						fm_set_user_bpammo(id, CSW_HEGRENADE, GRANADAS[g_granadas[id]][GRANADA_CANTIDA_DROGA])
						fm_set_user_bpammo(id, CSW_FLASHBANG, GRANADAS[g_granadas[id]][GRANADA_CANTIDA_FROST])
						fm_set_user_bpammo(id, CSW_SMOKEGRENADE, GRANADAS[g_granadas[id]][GRANADA_CANTIDA_FLARE] + GRANADAS[g_granadas[id]][GRANADA_CANTIDA_BUBBLE])
						g_skin[id][0] = g_primaria[id]
						g_skin[id][1] = g_secundaria[id]

						g_has_bombdroga[id] = GRANADAS[g_granadas[id]][GRANADA_CANTIDA_DROGA]
						g_has_bombbubble[id] = GRANADAS[g_granadas[id]][GRANADA_CANTIDA_BUBBLE]
					}
				}
			}
		}
		case 7:
		{
			if (g_arm_sele[id][2] > 0)
			{
				g_arm_sele[id][2] --
			}
			show_buy3_info(id)
			return PLUGIN_HANDLED;
		}
		case 8:
		{
			if (g_arm_sele[id][2]+1 < sizeof GRANADAS)
			{
				g_arm_sele[id][2] ++
			}
			show_buy3_info(id)
			return PLUGIN_HANDLED;
		}
		case 9:
		{
			show_buy3(id)
			return PLUGIN_HANDLED;
		}
	}
	show_buy3_info(id)
	return PLUGIN_HANDLED;
}
this would be the variable of the drug grenade: g_has_bombdroga
 

 

 

Problem mod

11.03.2020 18:26

Hi, can you help me with this? When I choose a player that is licker from the menu, he randomly chooses it

else  if ((mode == MODE_NONE && (!get_pcvar_num(cvar_preventconsecutive) || g_lastmode != MODE_LICKER) && random_num(1, get_pcvar_num(cvar_lickerchance)) == get_pcvar_num(cvar_licker) && iPlayersnum >= get_pcvar_num(cvar_lickerminplayers)) 
    || mode == MODE_LICKER )
    {
        // Licker Mode
        g_lickerround = true
        g_lastmode = MODE_LICKER

        set_cvar_num("pbk_afk_time", 900);

        // Make sure there are alive players on both teams (BUGFIX)
        if(!fnGetAliveTs())
        {
            // Move random player to T team
            id = fnGetRandomAlive(random_num(1, iPlayersnum))
            remove_task(id+TASK_TEAM)
            fm_cs_set_user_team(id, FM_CS_TEAM_T)
            fm_user_team_update(id)
        }
        else if(!fnGetAliveCTs())
        {
            // Move random player to CT team
            id = fnGetRandomAlive(random_num(1, iPlayersnum))
            remove_task(id+TASK_TEAM)
            fm_cs_set_user_team(id, FM_CS_TEAM_CT)
            fm_user_team_update(id)
        }

        new i;

        for(i = 1; i <= g_maxplayers; ++i) 
        {
            if(!g_isalive[i]) 
            {
                continue;
            }
            
            set_task(1.0, "Effect1_Licker_Mode", i); 

            remove_task(TASK_ESCONDIDO)
            
            g_count_licker = 10
            set_task(3.0, "Effect2_Licker_Mode", TASK_ESCONDIDO, _, _, "a", g_count_licker)
        }
                
        set_task(30.0, "Start_Licker_Mode");

        // Mode fully started!
        g_modestarted = true
    }

This part of the code would be where I would send the mode

public Start_Licker_Mode(mode, id)
{
    set_lights("a")

    //new id;
    static forward_id, iPlayersnum
    iPlayersnum = fnGetAlive()

    // Choose player randomly?
    if (mode == MODE_NONE)
        id = fnGetRandomAlive(random_num(1, iPlayersnum))
            
    // Remember id for calling our forward later
    forward_id = id
        
    // Turn player into licker
    zombieme(id, 0, 3, 0, 0)
        
    // Remaining players should be humans (CTs)
    for (id = 1; id <= g_maxplayers; id++)
    {
        // Not alive
        if (g_isalive[id])
            continue;
            
        // First licker
        if (g_zombie[id])
            continue;

        // Switch to CT
        if (fm_cs_get_user_team(id) != FM_CS_TEAM_CT) // need to change team?
        {
            // Change team
            remove_task(id+TASK_TEAM)
            fm_cs_set_user_team(id, FM_CS_TEAM_CT)
            fm_user_team_update(id)
        }
    }
    
    // Show Licker HUD notice
    set_dhudmessage(255, 150, 20, HUD_EVENT_X, HUD_EVENT_Y, 1, 0.0, 5.0, 1.0, 1.0)
    show_dhudmessage(0, "%s es un Licker !!!", g_playername[forward_id])
        
    // Mode fully started!
    g_modestarted = true
        
    // Round start forward
    ExecuteForward(g_fwRoundStart, g_fwDummyResult, MODE_LICKER, forward_id);
}

 

 

[SOLVED] respawn mod nemesis

03.03.2020 17:57

hello can you help me what I want to have 2 respawn humans in nemesis mode

Pomóż odrodzić mod

03.03.2020 03:16

Hola, ¿Me pueden Ayudar, quiero del 2 personajes de Modo revivieron Nemesis

 


cześć, czy możesz mi pomóc, kiedy to robię, aby ludzie mieli 2 odrodzenia w trybie nemezis