Zombies/Humans Extra-Items
-
z0h1r-LK
- Mod Developer


- Posts: 446
- Joined: 4 Years Ago
- Location: Morocco
-
Has thanked:
148 times
-
Been thanked:
48 times
- Age: 21
-
Contact:
-
Quote
-
1
login to like this post
#3
Post
by z0h1r-LK » 6 Months Ago
But u forgot something, Weapon is available for Zombies
Change this:
public ze_select_item_pre(id, itemid)
{
if(itemid != g_iItemID) return ZE_ITEM_AVAILABLE;
return ZE_ITEM_AVAILABLE;
}
To
public ze_select_item_pre(id, itemid)
{
// This is not our item?
if (itemid != g_iItemID)
return ZE_ITEM_AVAILABLE
// Player is Zombie?
if (ze_is_user_zombie(id))
return ZE_ITEM_DONT_SHOW
// Show item for player.
return ZE_ITEM_AVAILABLE
}
- These users thanked the author z0h1r-LK for the post:
- sPe3doN (6 Months Ago)
-
z0h1r-LK
- Mod Developer


- Posts: 446
- Joined: 4 Years Ago
- Location: Morocco
-
Has thanked:
148 times
-
Been thanked:
48 times
- Age: 21
-
Contact:
-
Quote
-
0
login to like this post
#4
Post
by z0h1r-LK » 6 Months Ago
Use my M4A1 Flame, It's like it, But it's optimized well !
-
sPe3doN
- Senior Member


- Posts: 257
- Joined: 6 Years Ago
-
Has thanked:
17 times
-
Been thanked:
21 times
- Age: 23
-
Contact:
-
Quote
-
1
login to like this post
#5
Post
by sPe3doN » 6 Months Ago
z0h1r-LK wrote: ↑6 Months Ago
But u forgot something, Weapon is available for Zombies
Change this:
public ze_select_item_pre(id, itemid)
{
if(itemid != g_iItemID) return ZE_ITEM_AVAILABLE;
return ZE_ITEM_AVAILABLE;
}
To
public ze_select_item_pre(id, itemid)
{
// This is not our item?
if (itemid != g_iItemID)
return ZE_ITEM_AVAILABLE
// Player is Zombie?
if (ze_is_user_zombie(id))
return ZE_ITEM_DONT_SHOW
// Show item for player.
return ZE_ITEM_AVAILABLE
}
yes you're right, updated
- These users thanked the author sPe3doN for the post:
- z0h1r-LK (6 Months Ago)
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
Users browsing this forum: No registered users and 4 guests