Respawn hook player death
Ok so question for you guys is ther a way i can hook the event player death? something similar to this
public hook_death(id) { if(player dies) { set_task(5.0, "respawn") } } public respawn(id) { spawn(id) } and if there is a way can i put text that says You will re spawn in %s Seconds and count down |
Re: Respawn hook player death
Code:
|
Re: Respawn hook player death
The above example has an error in registering the DeathMsg event. It should read:
register_event("DeathMsg", "hook_death", "a") |
Re: Respawn hook player death
yes,thanks for the warning.
|
Re: Respawn hook player death
i just changed it to edeathmsg or w/e on the public lol it was a bit easier to me.. but 5.0 is five min? right not seconds .5 would be five seconds correct?
|
Re: Respawn hook player death
|
| All times are GMT -4. The time now is 05:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.