i need public fuction help
i need public fuction help
I need public fuction kill victim or human
plz guys
plz guys
Last edited by z0h1r-LK 4 years ago, edited 2 times in total.
- Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
- Contact:
What?????????
i want create plugin nemesis
you know nemesis have more hp and low gravity and have long jump and he is kill not infect and
how to make nemesis kill not infect
@Jack
-
- Veteran Member
- Posts: 407
- Joined: 5 years ago
- Contact:
just use this
index mean: iVictim/iInfector
user_silentkill(index)
in Code: Select all
ze_user_infected(iVictim, iInfector)
Code: Select all
// Kill Player
public ze_user_killer(iVictim, iInfector, iAttacker)
{
if(iVictim == iAttacker || ze_is_user_zombie(iInfector))
{
return 0;
}
else
{
user_silentkill(iInfector)
}
}
-
- Veteran Member
- Posts: 407
- Joined: 5 years ago
- Contact:
what you mean bylizoumapper wrote: ↑4 years agoAre this is Correct or No !!!Code: Select all
// Kill Player public ze_user_killer(iVictim, iInfector, iAttacker) { if(iVictim == iAttacker || ze_is_user_zombie(iInfector)) { return 0; } else { user_silentkill(iInfector) } }
ze_user_killer(iVictim, iInfector, iAttacker)
?also you should make it like this:
Code: Select all
public ze_user_infected(iVictim, iInfector, iDamage)
{
if(iInfector == iVictim || !ze_is_user_zombie(iVictim))
return
user_silentkill(iVictim)
}
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
Sign in
Who is online
Users browsing this forum: No registered users and 0 guests