Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[Help] - Timer death


Belzebu
 Share

Recommended Posts

@'Mohenjo:

> Lavos, I have a perma death code that you can use for a guide in this (granted there's more to the code because it's an on/off code) but let me know if you'd like to see it for this.

Sure thing bruh, just show me the door and ill get right to it.
Link to comment
Share on other sites

I tried to post this earlier, but it didn't work apparently. *Fingers crossed*

This is some pseudo VB code I wrote up as a solution to this.

The way it works is, OnDeath, send a packet to the client with the wait time, On the server, store it with the player.
On the client, render "Respawn in X seconds…" and disable input until the time is complete.
On the server, refuse input from the client until the time is complete.

Client
http://pastebin.com/KuDj4vEJ

Server
http://pastebin.com/zBDv4pj6
Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
  • 8 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...