|
CS1.BG | DUST2 NOSHTA GARMI [RANKED PLAY] #1 45.144.155.113:27015 |
de_dust2 Играчи: 30/32 |
|
Cs-PlovdiV.com - Aim Attack | 93.123.16.4:27022 | aim_aztec | Играчи: 0/16 |
terror deagle
terror deagle
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
Код за потвърждение: Избери целия код
#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)
}
Rest in peace my friend I always will remember you!
-
OciXCrom
Извън линия - Администратор
- Мнения: 7206
- Регистриран на: 06 Окт 2016, 19:20
- Местоположение: /resetscore
- Се отблагодари: 117 пъти
- Получена благодарност: 1296 пъти
- Обратна връзка:
terror deagle
Няма такива аргументи в 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)
}
}
terror deagle
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]
Причина: [code][/code]
-
Tornado_SW
Извън линия - AMXX Скриптър
- Мнения: 159
- Регистриран на: 04 Фев 2020, 22:41
- Се отблагодари: 28 пъти
- Получена благодарност: 76 пъти
- Обратна връзка:
terror deagle
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 );
>>
new const ALLOW_WEAPONS = ( 1 << CSW_FLASHBANG ) | ( 1 << CSW_SMOKEGRENADE ) | ( 1 << CSW_HEGRENADE ) | ( 1 << CSW_DEAGLE );
terror deagle
//// 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 ...
// 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 Скриптър
- Мнения: 159
- Регистриран на: 04 Фев 2020, 22:41
- Се отблагодари: 28 пъти
- Получена благодарност: 76 пъти
- Обратна връзка:
terror deagle
It compiles successfully for me. Also, why is the file extension .dat instaed of .sma?
-
- Подобни теми
- Отговори
- Преглеждания
- Последно мнение
-
- 5 Отговори
- 1543 Преглеждания
-
Последно мнение от YankoNL
-
- 2 Отговори
- 1756 Преглеждания
-
Последно мнение от atmax
-
- 6 Отговори
- 2559 Преглеждания
-
Последно мнение от OciXCrom
-
- 5 Отговори
- 1135 Преглеждания
-
Последно мнение от To.To
-
- 9 Отговори
- 2935 Преглеждания
-
Последно мнение от OciXCrom
-
- 1 Отговори
- 1019 Преглеждания
-
Последно мнение от Siska
-
- 2 Отговори
- 764 Преглеждания
-
Последно мнение от cgozzie
Кой е на линия
Потребители разглеждащи този форум: Bing [Bot] и 3 госта