Approved [ZE] Extra Item: Fire m4a1

Zombies/Humans Extra-Items
Post Reply
User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 258
Joined: 7 years ago
Contact:

[ZE] Extra Item: Fire m4a1

#1

Post by sPe3doN » 1 year ago

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 12859 times
ze_1.bmp
ze_1.bmp (2.93 MiB) Viewed 12859 times
ze_2.bmp
ze_2.bmp (2.93 MiB) Viewed 12859 times
ze_2.bmp
ze_2.bmp (2.93 MiB) Viewed 12859 times
ze_3.bmp
ze_3.bmp (2.93 MiB) Viewed 12859 times
ze_3.bmp
ze_3.bmp (2.93 MiB) Viewed 12859 times
Installation & Instructions:
Simply install it like any plugin, dont forget models
[ZE] Extra Fire M4A1.rar
(499.36 KiB) Downloaded 987 times
[ZE] Extra Fire M4A1.rar
(499.36 KiB) Downloaded 987 times
Last edited by sPe3doN 1 year ago, edited 1 time in total.
Image

User avatar
z0h1r-LK
Mod Developer
Mod Developer
Morocco
Posts: 487
Joined: 5 years ago
Location: The Red City ❤
Contact:

#2

Post by z0h1r-LK » 1 year ago

Nice !!

User avatar
z0h1r-LK
Mod Developer
Mod Developer
Morocco
Posts: 487
Joined: 5 years ago
Location: The Red City ❤
Contact:

#3

Post by z0h1r-LK » 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.  

User avatar
z0h1r-LK
Mod Developer
Mod Developer
Morocco
Posts: 487
Joined: 5 years ago
Location: The Red City ❤
Contact:

#4

Post by z0h1r-LK » 1 year ago

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 617 times
[ZE] Extra M4A1 Flame.7z
Source Code/Plugin + Resources.
(292.63 KiB) Downloaded 617 times

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 258
Joined: 7 years ago
Contact:

#5

Post by sPe3doN » 1 year ago

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
Image

User avatar
z0h1r-LK
Mod Developer
Mod Developer
Morocco
Posts: 487
Joined: 5 years ago
Location: The Red City ❤
Contact:

#6

Post by z0h1r-LK » 1 year ago

Approved !

Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Who is online

Users browsing this forum: No registered users and 0 guests