Counter-Strike 1.6
CS1.BG | DUST2 NOSHTA GARMI [RANKED PLAY] #1
45.144.155.113:27015
de_dust2
Играчи: 30/32
de_dust2
Counter-Strike 1.6
Cs-PlovdiV.com - Aim Attack 93.123.16.4:27022 aim_aztec Играчи: 0/16

terror deagle

В този раздел можете да подавате всякакви заявки за намиране, изработка или преработка на плъгини/модове.
Аватар
Cirovic
Извън линия
Foreigner
Foreigner
Мнения: 50
Регистриран на: 31 Мар 2020, 23:55

terror deagle

Мнение от Cirovic » 24 Май 2020, 14:30

Can i please someone to create a plugin that will after 1.1 second of round give DEAGLE with 3 bullets for TR Team

Аватар
atmax
Извън линия
Потребител
Потребител
Мнения: 492
Регистриран на: 22 Мар 2018, 15:06
Се отблагодари: 37 пъти
Получена благодарност: 43 пъти

terror deagle

Мнение от atmax » 24 Май 2020, 15:15

Код за потвърждение: Избери целия код

#include <amxmodx>
#include <hamsandwich>
#include <fun>
#include <cstrike>

public plugin_init()
{
register_plugin("tr deagle @amxx-bg", "0.1a", "aTmAx")
RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1)
}

public fwHamPlayerSpawnPost(id)
{
	if ( cs_get_user_team(id) == CS_TEAM_T )
	{
		set_task(1.1, "give_deagle", id)
	}
}

public give_deagle(id)
{
	give_item(id, "weapon_deagle", 3, 0)
}
Test it its from phone so I can't test it now
Rest in peace my friend I always will remember you! 🖤👊

Аватар
OciXCrom
Извън линия
Администратор
Администратор
Мнения: 7206
Регистриран на: 06 Окт 2016, 19:20
Местоположение: /resetscore
Се отблагодари: 117 пъти
Получена благодарност: 1296 пъти
Обратна връзка:

terror deagle

Мнение от OciXCrom » 24 Май 2020, 15:26

Няма такива аргументи в give_item.

Код за потвърждение: Избери целия код

#include <amxmodx>
#include <hamsandwich>
#include <fun>
#include <cstrike>

public plugin_init()
{
	register_plugin("tr deagle @amxx-bg", "0.1a", "aTmAx")
	RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1)
}

public fwHamPlayerSpawnPost(id)
{
	if ( is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_T )
	{
		set_task(1.1, "give_deagle", id)
	}
}

public give_deagle(id)
{
	if(is_user_alive(id))
	{
		cs_set_weapon_ammo(give_item(id, "weapon_deagle"), 3)
	}
}

Аватар
Cirovic
Извън линия
Foreigner
Foreigner
Мнения: 50
Регистриран на: 31 Мар 2020, 23:55

terror deagle

Мнение от Cirovic » 24 Май 2020, 15:29

it works, can you add deagle to this weapon allows list please?

Код за потвърждение: Избери целия код

#include <amxmodx> 
#include <hamsandwich> 
#include <fakemeta> 
#include <cstrike> 

new const Version[] = "0.1"; 

#define MAX_PLAYERS 32 

new const ALLOW_WEAPONS = ( 1 << CSW_FLASHBANG ) | ( 1 << CSW_SMOKEGRENADE ) | ( 1 << CSW_HEGRENADE ); 

public plugin_init()  
{ 
    register_plugin( "Block Weapons" , Version , "bugsy" ); 
     
    RegisterHam( Ham_AddPlayerItem , "player" , "AddPlayerItem" ); 
} 

public AddPlayerItem( id , iItemEntity ) 
{ 
    if ( !( ALLOW_WEAPONS & ( 1 << cs_get_weapon_id( iItemEntity ) ) ) )     
    { 
        set_pev( iItemEntity , pev_flags , FL_KILLME ); 
        SetHamReturnInteger( false ); 
        return HAM_SUPERCEDE;  
    } 
     
    return HAM_IGNORED;  
}
Последно промяна от thoughtz на 24 Май 2020, 16:09, променено общо 1 път.
Причина: [code][/code]

Аватар
Tornado_SW
Извън линия
AMXX Скриптър
AMXX Скриптър
Мнения: 159
Регистриран на: 04 Фев 2020, 22:41
Се отблагодари: 28 пъти
Получена благодарност: 76 пъти
Обратна връзка:

terror deagle

Мнение от Tornado_SW » 24 Май 2020, 16:26

new const ALLOW_WEAPONS = ( 1 << CSW_FLASHBANG ) | ( 1 << CSW_SMOKEGRENADE ) | ( 1 << CSW_HEGRENADE );

>>

new const ALLOW_WEAPONS = ( 1 << CSW_FLASHBANG ) | ( 1 << CSW_SMOKEGRENADE ) | ( 1 << CSW_HEGRENADE ) | ( 1 << CSW_DEAGLE );

Аватар
Cirovic
Извън линия
Foreigner
Foreigner
Мнения: 50
Регистриран на: 31 Мар 2020, 23:55

terror deagle

Мнение от Cirovic » 24 Май 2020, 17:18

//// digltr.dat
// C:\Users\Cirovic\Desktop\novi compiler\digltr.dat(10) : error 029: invalid expression, assumed zero
//
// 1 Error.
// Could not locate output file C:\Users\Cirovic\Desktop\novi compiler\compiled\digltr.amx (compile failed).
//
// Compilation Time: 0.12 sec
// ----------------------------------------

Press enter to exit ...

Аватар
Tornado_SW
Извън линия
AMXX Скриптър
AMXX Скриптър
Мнения: 159
Регистриран на: 04 Фев 2020, 22:41
Се отблагодари: 28 пъти
Получена благодарност: 76 пъти
Обратна връзка:

terror deagle

Мнение от Tornado_SW » 24 Май 2020, 20:45

It compiles successfully for me. Also, why is the file extension .dat instaed of .sma?

Публикувай отговор
  • Подобни теми
    Отговори
    Преглеждания
     Последно мнение

Обратно към “Заявки за плъгини”

Кой е на линия

Потребители разглеждащи този форум: Bing [Bot] и 3 госта