Page 1 of 1

[ZE] Extra Item: Fire m4a1

Posted: 19 Aug 2022, 16:49
by sPe3doN
Fire m4a1
Description:
if you shoot zombie, you will burn him for x seconds (default 12 seconds)
Screenshots:
ze_1.bmp
ze_1.bmp (2.93 MiB) Viewed 12701 times
ze_1.bmp
ze_1.bmp (2.93 MiB) Viewed 12701 times
ze_2.bmp
ze_2.bmp (2.93 MiB) Viewed 12701 times
ze_2.bmp
ze_2.bmp (2.93 MiB) Viewed 12701 times
ze_3.bmp
ze_3.bmp (2.93 MiB) Viewed 12701 times
ze_3.bmp
ze_3.bmp (2.93 MiB) Viewed 12701 times
Installation & Instructions:
Simply install it like any plugin, dont forget models
[ZE] Extra Fire M4A1.rar
(499.36 KiB) Downloaded 948 times
[ZE] Extra Fire M4A1.rar
(499.36 KiB) Downloaded 948 times

Re: [ZE] Extra Item: Fire m4a1

Posted: 27 Aug 2022, 19:39
by z0h1r-LK
Nice !!

Re: [ZE] Extra Item: Fire m4a1

Posted: 28 Aug 2022, 22:16
by z0h1r-LK
But u forgot something, Weapon is available for Zombies

Change this:
  1. public ze_select_item_pre(id, itemid)
  2. {
  3.     if(itemid != g_iItemID) return ZE_ITEM_AVAILABLE;
  4.    
  5.     return ZE_ITEM_AVAILABLE;
  6. }
To
  1. public ze_select_item_pre(id, itemid)
  2. {
  3.     // This is not our item?
  4.     if (itemid != g_iItemID)
  5.         return ZE_ITEM_AVAILABLE
  6.    
  7.     // Player is Zombie?
  8.     if (ze_is_user_zombie(id))
  9.         return ZE_ITEM_DONT_SHOW
  10.  
  11.     // Show item for player.
  12.     return ZE_ITEM_AVAILABLE
  13. }
  14.  

Re: [ZE] Extra Item: Fire m4a1

Posted: 28 Aug 2022, 22:33
by z0h1r-LK
Use my M4A1 Flame, It's like it, But it's optimized well ! :D
[ZE] Extra M4A1 Flame.7z
Source Code/Plugin + Resources.
(292.63 KiB) Downloaded 592 times
[ZE] Extra M4A1 Flame.7z
Source Code/Plugin + Resources.
(292.63 KiB) Downloaded 592 times

Re: [ZE] Extra Item: Fire m4a1

Posted: 02 Sep 2022, 22:51
by sPe3doN
z0h1r-LK wrote: 1 year ago But u forgot something, Weapon is available for Zombies

Change this:
  1. public ze_select_item_pre(id, itemid)
  2. {
  3.     if(itemid != g_iItemID) return ZE_ITEM_AVAILABLE;
  4.    
  5.     return ZE_ITEM_AVAILABLE;
  6. }
To
  1. public ze_select_item_pre(id, itemid)
  2. {
  3.     // This is not our item?
  4.     if (itemid != g_iItemID)
  5.         return ZE_ITEM_AVAILABLE
  6.    
  7.     // Player is Zombie?
  8.     if (ze_is_user_zombie(id))
  9.         return ZE_ITEM_DONT_SHOW
  10.  
  11.     // Show item for player.
  12.     return ZE_ITEM_AVAILABLE
  13. }
  14.  
yes you're right, updated

Re: [ZE] Extra Item: Fire m4a1

Posted: 03 Sep 2022, 02:22
by z0h1r-LK
Approved !