IsPlayerCrashing function - possible?
#1

Hello,

Is it possible to create some kind of IsPlayerCrashing function?
I guess it is if you find a way to check if the player's client is still responding to given signals.

Possible? Discuss it here!

Greetz,
Danny
Reply
#2

Hm, maybe. But why don't you use crash detect plugin?
Reply
#3

Couldn't you send an action, then check if it's done?

pawn Код:
PutPlayerInVehicle(...);
if(IsPlayerInVehicle(...)) //Action completed, they're still with us!
else //The action didn't complete, we lost them! :(
Reply
#4

But wouldn't that also happen if a player is paused?
Reply
#5

Quote:
Originally Posted by PlayHard
Посмотреть сообщение
Hm, maybe. But why don't you use crash detect plugin?
I think you're mixing a few things up now. The crashdetect plugin is used to detect a scriptcrash and not a player-crash.

Quote:
Originally Posted by funky1234
Посмотреть сообщение
Couldn't you send an action, then check if it's done?

pawn Код:
PutPlayerInVehicle(...);
if(IsPlayerInVehicle(...)) //Action completed, they're still with us!
else //The action didn't complete, we lost them! :(
That's a good suggestion, but i question if it will return false. Ofcourse the client isn't connected anymore, but the server is still up and sends some data that tells Player X is in a vehicle.

I'm wondering if it's possible to send some sort of ping package and check if it's coming back.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)