Zombies/Humans Extra-Items
-
sPe3doN
- Senior Member
- Posts: 258
- Joined: 7 years ago
-
Contact:
-
Quote
-
1
login to like this post
#1
Post
by sPe3doN » 1 year ago
Last edited by
sPe3doN 1 year ago, edited 1 time in total.
-
z0h1r-LK
- Mod Developer
- Posts: 486
- Joined: 5 years ago
- Location: The Red City ❤
-
Contact:
-
Quote
-
1
login to like this post
#2
Post
by z0h1r-LK » 1 year ago
Nice !!
-
z0h1r-LK
- Mod Developer
- Posts: 486
- Joined: 5 years ago
- Location: The Red City ❤
-
Contact:
-
Quote
-
1
login to like this post
#3
Post
by z0h1r-LK » 1 year 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
}
-
z0h1r-LK
- Mod Developer
- Posts: 486
- Joined: 5 years ago
- Location: The Red City ❤
-
Contact:
-
Quote
-
0
login to like this post
#4
Post
by z0h1r-LK » 1 year ago
Use my M4A1 Flame, It's like it, But it's optimized well !
-
sPe3doN
- Senior Member
- Posts: 258
- Joined: 7 years ago
-
Contact:
-
Quote
-
1
login to like this post
#5
Post
by sPe3doN » 1 year ago
z0h1r-LK wrote: ↑1 year 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
-
z0h1r-LK
- Mod Developer
- Posts: 486
- Joined: 5 years ago
- Location: The Red City ❤
-
Contact:
-
Quote
-
1
login to like this post
#6
Post
by z0h1r-LK » 1 year ago
Approved !
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 1 guest