i need public fuction help

Coding Help/Re-API Supported
Post Reply
User avatar
z0h1r-LK
Mod Developer
Mod Developer
Morocco
Posts: 473
Joined: 5 years ago
Location: The Red City ❤
Contact:

i need public fuction help

#1

Post by z0h1r-LK » 4 years ago

I need public fuction kill victim or human

plz guys
Last edited by z0h1r-LK 4 years ago, edited 2 times in total.

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

#2

Post by z0h1r-LK » 4 years ago

@Raheem

User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

#3

Post by Night Fury » 4 years ago

What?????????
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
Image

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

#4

Post by z0h1r-LK » 4 years ago

Mohamed Alaa wrote: 4 years ago 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

Muhammet20
Veteran Member
Veteran Member
Posts: 408
Joined: 5 years ago
Contact:

#5

Post by Muhammet20 » 4 years ago

just use this user_silentkill(index) in

Code: Select all

ze_user_infected(iVictim, iInfector)
index mean: iVictim/iInfector

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

#6

Post by z0h1r-LK » 4 years ago

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)
	}
}	 
Are this is Correct or No !!!

Muhammet20
Veteran Member
Veteran Member
Posts: 408
Joined: 5 years ago
Contact:

#7

Post by Muhammet20 » 4 years ago

lizoumapper wrote: 4 years ago

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)
	}
}	 
Are this is Correct or No !!!
what you mean by 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)
}
and you will need @Raheem help

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 3 guests