Approved [ZE] Extra Item: Fire m4a1

Zombies/Humans Extra-Items
Post Reply
User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 257
Joined: 6 Years Ago
Has thanked: 17 times
Been thanked: 21 times
Age: 24
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 6528 times
ze_1.bmp
ze_1.bmp (2.93 MiB) Viewed 6528 times
ze_2.bmp
ze_2.bmp (2.93 MiB) Viewed 6528 times
ze_2.bmp
ze_2.bmp (2.93 MiB) Viewed 6528 times
ze_3.bmp
ze_3.bmp (2.93 MiB) Viewed 6528 times
ze_3.bmp
ze_3.bmp (2.93 MiB) Viewed 6528 times
Installation & Instructions:
Simply install it like any plugin, dont forget models
[ZE] Extra Fire M4A1.rar
(499.36 KiB) Downloaded 454 times
[ZE] Extra Fire M4A1.rar
(499.36 KiB) Downloaded 454 times
Last edited by sPe3doN on 02 Sep 2022, 22:50, edited 1 time in total.
These users thanked the author sPe3doN for the post:
z0h1r-LK (1 Year Ago)
Image

User avatar
z0h1r-LK
Mod Developer
Mod Developer
Morocco
Posts: 447
Joined: 4 Years Ago
Location: Morocco
Has thanked: 139 times
Been thanked: 48 times
Age: 21
Contact:

#2

Post by z0h1r-LK » 1 Year Ago

Nice !!
These users thanked the author z0h1r-LK for the post:
sPe3doN (1 Year Ago)

User avatar
z0h1r-LK
Mod Developer
Mod Developer
Morocco
Posts: 447
Joined: 4 Years Ago
Location: Morocco
Has thanked: 139 times
Been thanked: 48 times
Age: 21
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.  
These users thanked the author z0h1r-LK for the post:
sPe3doN (1 Year Ago)

User avatar
z0h1r-LK
Mod Developer
Mod Developer
Morocco
Posts: 447
Joined: 4 Years Ago
Location: Morocco
Has thanked: 139 times
Been thanked: 48 times
Age: 21
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 196 times
[ZE] Extra M4A1 Flame.7z
Source Code/Plugin + Resources.
(292.63 KiB) Downloaded 196 times

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 257
Joined: 6 Years Ago
Has thanked: 17 times
Been thanked: 21 times
Age: 24
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
These users thanked the author sPe3doN for the post:
z0h1r-LK (1 Year Ago)
Image

User avatar
z0h1r-LK
Mod Developer
Mod Developer
Morocco
Posts: 447
Joined: 4 Years Ago
Location: Morocco
Has thanked: 139 times
Been thanked: 48 times
Age: 21
Contact:

#6

Post by z0h1r-LK » 1 Year Ago

Approved !
These users thanked the author z0h1r-LK for the post:
sPe3doN (1 Year Ago)

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 1 guest