Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 Before February 2015

Vitalijus
Member
From: Lithuania
Joined: 2015-02-15
Posts: 1,384
Website

If player dies?

Is it possible to check if player dies / gets killed?


wn7I7Oa.png

Offline

#2 Before February 2015

Creature
Member
From: The Dark Web
Joined: 2015-02-15
Posts: 9,658

Re: If player dies?

Yes, I saw bots that could detect, but I don't know how.


This is a false statement.

Offline

#3 Before February 2015

Mr. Force
Guest

Re: If player dies?

Use EEPhysics! https://github.com/cap9/EEPhysics
It's easier //forums.everybodyedits.com/img/smilies/smile

#4 Before February 2015

912468
Member
Joined: 2015-02-21
Posts: 212
Website

Re: If player dies?

It's send in the case tele, wich is also used for teleportation.

You should put it like this in your void OnMessage:

if ((m.Type == "tele") && (!m.GetBool(0))) //maybe it's m.GetBoolean(0) but I'm not sure {     //Do stuff when a player dies     int userid = m.GetInt(1);     int spawnposX = m.GetInt(2);     int spawnposY = m.GetInt(3); }

Last edited by 912468 (Jan 2 2015 1:23:58 pm)


vF0MA5o.png

Offline

#5 Before February 2015

Vitalijus
Member
From: Lithuania
Joined: 2015-02-15
Posts: 1,384
Website

Re: If player dies?

912468 wrote:

It's send in the case tele, wich is also used for teleportation.

You should put it like this in your void OnMessage:

if ((m.Type == "tele") && m.GetBool(0)) //maybe it's m.GetBoolean(0) but I'm not sure {     //Do stuff when a player dies     int userid = m.GetInt(1);     int spawnposX = m.GetInt(2);     int spawnposY = m.GetInt(3); }

tele is for /respawn and /loadlevel.


wn7I7Oa.png

Offline

#6 Before February 2015

912468
Member
Joined: 2015-02-21
Posts: 212
Website

Re: If player dies?

Vitalijus wrote:

tele is for /respawn and /loadlevel.

If you look here, it says: False = Someone got killed by hazard

Also, it should be:

if ((m.Type == "tele) && (!m.GetBool(0)))

I also edited in my previous post...


vF0MA5o.png

Offline

#7 Before February 2015

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: If player dies?

Vitalijus wrote:
912468 wrote:

It's send in the case tele, wich is also used for teleportation.

You should put it like this in your void OnMessage:

if ((m.Type == "tele") && m.GetBool(0)) //maybe it's m.GetBoolean(0) but I'm not sure {     //Do stuff when a player dies     int userid = m.GetInt(1);     int spawnposX = m.GetInt(2);     int spawnposY = m.GetInt(3); }

tele is for /respawn and /loadlevel.

No it's not. I have investigated the tele message.

Offline

#8 Before February 2015

912468
Member
Joined: 2015-02-21
Posts: 212
Website

Re: If player dies?

Vitalijus wrote:

tele is for /respawn and /loadlevel.

tele is also used for when a player dies.

if ((m.Type == "tele") && (!m.GetBool(0))) {     int playerID = m.GetInt(1); }

Last edited by 912468 (Jan 4 2015 3:58:14 am)


vF0MA5o.png

Offline

#9 Before February 2015

Jabatheblob1
Member
Joined: 2015-03-01
Posts: 856

Re: If player dies?

there's a kill message?....


If you would like me to make a bot for you, go here.

Offline

#10 Before February 2015

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: If player dies?

Jabatheblob1 wrote:

there's a kill message?....

They wouldn't change it if it wasn't broken or unless a new update requires 'kill'


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

Vitalijus1423759083202349

Board footer

Powered by FluxBB

[ Started around 1711615346.1899 - Generated in 0.061 seconds, 12 queries executed - Memory usage: 1.54 MiB (Peak: 1.71 MiB) ]