Raised This Month: $32 Target: $400
 8% 

Respawn player after being dead for more than 7 seconds


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MihailoZ
Member
Join Date: Aug 2013
Old 08-06-2017 , 16:15   Respawn player after being dead for more than 7 seconds
Reply With Quote #1

Hello, I need a plugin that respawns a player and transfers him to CT if he is dead for more than 8 seconds. No hun messages or anything.

I already have HNS Deathmatch MOD but sometimes it does not respawn player, so just make it with no conflict between these two plugins.
__________________
mhvtnns
MihailoZ is offline
Rohanlogs
Senior Member
Join Date: Nov 2015
Old 08-06-2017 , 16:23   Re: Respawn player after being dead for more than 7 seconds
Reply With Quote #2

Hey.

Search?
Took me 3 seconds....
https://forums.alliedmods.net/showthread.php?t=99283
__________________
Rohanlogs is offline
Rohanlogs
Senior Member
Join Date: Nov 2015
Old 08-06-2017 , 16:31   Re: Respawn player after being dead for more than 7 seconds
Reply With Quote #3

I forgot your CT switch request though, but its really easy to do.
Try this I took this code from the thread I linked

Spoiler
Attached Files
File Type: sma Get Plugin or Get Source (revive.sma - 568 views - 574 Bytes)
__________________
Rohanlogs is offline
MihailoZ
Member
Join Date: Aug 2013
Old 08-06-2017 , 16:33   Re: Respawn player after being dead for more than 7 seconds
Reply With Quote #4

I'll explain a bit better.

1. Plugin checks if player is dead more than 6 seconds.
2. Plugin checks if there is no respawn after 2 seconds
3. Respawns player and transfers him automatically to CT

Edit: I will try your plugin.
__________________
mhvtnns

Last edited by MihailoZ; 08-06-2017 at 16:33.
MihailoZ is offline
Rohanlogs
Senior Member
Join Date: Nov 2015
Old 08-06-2017 , 16:35   Re: Respawn player after being dead for more than 7 seconds
Reply With Quote #5

The respawn time in the plugin is 20 seconds you can change it from the set_task part.
Yes it checks if there hasn't been a respawn.
__________________
Rohanlogs is offline
MihailoZ
Member
Join Date: Aug 2013
Old 08-06-2017 , 16:41   Re: Respawn player after being dead for more than 7 seconds
Reply With Quote #6

There's a bug. If I transfer player to T he's automatically respawned, so he's in CT. Other than that, plugin works perfectly fine.

This can be locked now. Plugin is working perfectly fine, I just can't use transfer (amxmodmenu) and that's okay.
__________________
mhvtnns

Last edited by MihailoZ; 08-09-2017 at 13:17.
MihailoZ is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode