Raised This Month: $ Target: $400
 0% 

[csgo] Fix respawn plugin for Minigames [Idea]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Krotis
Senior Member
Join Date: Aug 2012
Old 06-22-2015 , 14:58   [csgo] Fix respawn plugin for Minigames [Idea]
Reply With Quote #1

So im looking for a Respawn plugin designed for minigames servers! I found one but itīs not really what im looking for.
The problem is some maps have auto death after 30sec and some of them have 20sec and the list goes on. Now im looking for someone that can fix this plugin so it auto detect if someone respawns and dies within 3sec it doesnt respawn them again.

The code for the current plugin:

PHP Code:
#pragma semicolon 1
#include <sourcemod>
#include <sdktools>
#include <cstrike>

new roundTime;
new 
currentTime

public 
OnPluginStart()
{
    
HookEvent("round_start"Event_RoundStart);
    
HookEvent("player_death"Event_PlayerDeath);
}

public 
Event_RoundStart(Handle:event, const String:name[], bool:dontBroadcast)
{
    
roundTime GetTime();
}

public 
Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
{
    
currentTime GetTime();
    
    if (
currentTime-roundTime 30)
        return;
    
    new 
client GetClientOfUserId(GetEventInt(event"userid"));
    
CreateTimer(1.0ExecRespawnclient);
}

public 
Action:ExecRespawn(Handle:timerany:client)
{
    if ( 
client && (!IsPlayerAlive(client)))
    {
            
CS_RespawnPlayer(client);
    }    
    return 
Plugin_Stop;

Krotis is offline
hu3br
Senior Member
Join Date: Apr 2015
Old 06-22-2015 , 15:46   Re: [csgo] Fix respawn plugin for Minigames [Idea]
Reply With Quote #2

I'm looking for this too, i saw one like this in a server, will be amazing if anyone can make this public!

Last edited by hu3br; 06-22-2015 at 15:46.
hu3br is offline
lay295
Senior Member
Join Date: Sep 2013
Old 06-22-2015 , 18:35   Re: [csgo] Fix respawn plugin for Minigames [Idea]
Reply With Quote #3

I plan on making a minigames server too with some course maps, I plan on editing this plugin someone made when I searched around. You have to manually set the time in a text file, but that's fine with me.

https://forums.alliedmods.net/showpo...3&postcount=16
__________________

lay295 is offline
hu3br
Senior Member
Join Date: Apr 2015
Old 06-24-2015 , 17:23   Re: [csgo] Fix respawn plugin for Minigames [Idea]
Reply With Quote #4

Quote:
Originally Posted by lay295 View Post
I plan on making a minigames server too with some course maps, I plan on editing this plugin someone made when I searched around. You have to manually set the time in a text file, but that's fine with me.

https://forums.alliedmods.net/showpo...3&postcount=16
Nice, but if it were self identified would be better.
hu3br is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 06-24-2015 , 19:58   Re: [csgo] Fix respawn plugin for Minigames [Idea]
Reply With Quote #5

This is for zombies. Not sure if it requires ZR. However it does exactly what your asking.

https://forums.alliedmods.net/showth...61254?t=161254
__________________

Last edited by Neuro Toxin; 06-24-2015 at 19:58.
Neuro Toxin is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 06-24-2015 , 21:19   Re: [csgo] Fix respawn plugin for Minigames [Idea]
Reply With Quote #6

The proper thing to do is hook player death and respawn them there.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Krotis
Senior Member
Join Date: Aug 2012
Old 09-04-2015 , 12:30   Re: [csgo] Fix respawn plugin for Minigames [Idea]
Reply With Quote #7

Well, im still looking for something like that. Is it possible that anyone can fix it?
Krotis is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 09-05-2015 , 21:02   Re: [csgo] Fix respawn plugin for Minigames [Idea]
Reply With Quote #8

I have exactly what you want, but im not going to give it to you for free. Included .cfg files with different times for 53 course maps. It respawn a player after die or team change.
ESK0 is offline
Sprilo
Member
Join Date: Aug 2014
Old 09-05-2015 , 23:49   Re: [csgo] Fix respawn plugin for Minigames [Idea]
Reply With Quote #9

Have you tried this? https://forums.alliedmods.net/showthread.php?p=2141816

"Players can be killed too quickly if there is an AFK killer or auto-killer on the map (ie: in many mg_ maps) and therefore, I made this modified version of the Player Respawn plugin in an attempt to mitigate this issue."

For setting times you could use this and create a cfg for each map (sm_auto_respawn_time), it may be a bit time consuming though
https://forums.alliedmods.net/showthread.php?p=607079
Sprilo is offline
iGANGNAM
AlliedModders Donor
Join Date: Sep 2012
Location: Lithuania
Old 09-06-2015 , 01:15   Re: [csgo] Fix respawn plugin for Minigames [Idea]
Reply With Quote #10

Quote:
Originally Posted by Sprilo View Post
Have you tried this? https://forums.alliedmods.net/showthread.php?p=2141816

"Players can be killed too quickly if there is an AFK killer or auto-killer on the map (ie: in many mg_ maps) and therefore, I made this modified version of the Player Respawn plugin in an attempt to mitigate this issue."

For setting times you could use this and create a cfg for each map (sm_auto_respawn_time), it may be a bit time consuming though
https://forums.alliedmods.net/showthread.php?p=607079
What it was all about that it should be automaticly detected.
iGANGNAM 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 01:03.


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