Author Topic: Kill Code  (Read 1115 times)

Could someone please tell me the code to kill a player?

findClientByName("Name").Player.Kill();

findClientByName("Name").Player.Kill();
Nope, didin't work.

Nope, didin't work.
Then you obviously typed it wrong, or can't even replace "Name" with the name of the person.

Did you remove the ""? Don't, leave them then put the name in.

I want whoever uses the item to die.

You should probably make a topic in coding help, and be more specific.

I want whoever uses the item to die.
Whoever uses what item?

Also: servercmdSelf Delete(findclientbyname("name"));   < that's the one I always use

Um... are you talking about a modded weapon, or
onPlayerPickupItem -> player - > kill?

Ok I'm saying: I make an item and put it in the game, when the person has the item in their inventory and uses it he is supposed to die.
Got it?

Oh, you want a gun or something that kills you when you use it.

Oh, you want a gun or something that kills you when you use it.
Yes(except it's not a gun)


Did you remove the ""? Don't, leave them then put the name in.

I just want to clarify: This is required. If it's a single word, Blockland corrects for this. But if there's more than one word, it must be in quotations, as Blockland can't correct for this.

A gun with animations that puts it up to your player's head, and it fires, you're dead.
Self Delete gun.