Raised This Month: $51 Target: $400
 12% 

Deathrun 15 sec respawn +timer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kovalski12
Junior Member
Join Date: Dec 2014
Old 12-24-2014 , 14:48   Deathrun 15 sec respawn +timer
Reply With Quote #1

Hello,i would really appreciate if someone could make this plugin for me ... Basically it would respawn players every round for the first 15 sec, something like noobrespawn but with timer added so the players can see how much respawn time they still have.and i need that timer to be on Serbian,like this:
Respawn traje jos 15 sec
Respawn traje jos 14 sec
Respawn traje jos 13 sec
Respawn traje jos 12 sec
Respawn traje jos 11 sec
Respawn traje jos 10 sec
Respawn traje jos 9 sec
Respawn traje jos 8 sec
Respawn traje jos 7 sec
Respawn traje jos 6 sec
Respawn traje jos 5 sec
Respawn traje jos 4 sec
Respawn traje jos 3 sec
Respawn traje jos 2 sec
Respawn traje jos 1 sec
Respawn je onemogucen!

This would really help me ... so if anyone can do this please do it.It is for deathrun server so ofc it would apply only for CT. Thanks guys !
Kovalski12 is offline
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 12-25-2014 , 06:50   Re: Deathrun 15 sec respawn +timer
Reply With Quote #2

Try
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>


#define PLUGIN "Deathrun Rs "
#define VERSION "1.0"
#define AUTHOR "EaGle07"

new iTime

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("ResetHUD""newRound""b")
    
register_event"DeathMsg""Hook_Deathmessage""a" );
    
}
public 
newRound(id)
{
    if( 
task_exists1337 ) )
        
remove_task1337 )
    
    
iTime 15
    set_task
1.0"countdown"1337__"a"15 )
    
    return 
PLUGIN_HANDLED;
}
public 
countdown()
{
    if( 
iTime >= )
    {
        
iTime--

        
set_hudmessage(17900, -1.0, -1.020.021.00.010.110);   
        
show_hudmessage0"Respawn traje jos %i sec"iTime )
    }
    
    else if( 
iTime == )
    {
        
iTime--
        
        
set_hudmessage(0,0,205, -1.0, -1.011.04.00.10.52)
        
show_hudmessage0"Respawn je onemogucen!" )
    }
    

public 
Hook_Deathmessage()
{
    new 
victim read_data);
    
    if(
iTime >= 1)
        
set_task(1.0,"Spawn",victim)
    
    return 
PLUGIN_HANDLED
}
public 
Spawn(id)
{
    if(
cs_get_user_team(id) == CS_TEAM_CT)
        
ExecuteHamB(Ham_CS_RoundRespawnid);

__________________
Eagle07 is offline
bsparty
Member
Join Date: Sep 2014
Location: India
Old 12-25-2014 , 08:22   Re: Deathrun 15 sec respawn +timer
Reply With Quote #3

Quote:
Originally Posted by Eagle07 View Post
Try
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>


#define PLUGIN "Deathrun Rs "
#define VERSION "1.0"
#define AUTHOR "EaGle07"

new iTime

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("ResetHUD""newRound""b")
    
register_event"DeathMsg""Hook_Deathmessage""a" );
    
}
public 
newRound(id)
{
    if( 
task_exists1337 ) )
        
remove_task1337 )
    
    
iTime 15
    set_task
1.0"countdown"1337__"a"15 )
    
    return 
PLUGIN_HANDLED;
}
public 
countdown()
{
    if( 
iTime >= )
    {
        
iTime--

        
set_hudmessage(17900, -1.0, -1.020.021.00.010.110);   
        
show_hudmessage0"Respawn traje jos %i sec"iTime )
    }
    
    else if( 
iTime == )
    {
        
iTime--
        
        
set_hudmessage(0,0,205, -1.0, -1.011.04.00.10.52)
        
show_hudmessage0"Respawn je onemogucen!" )
    }
    

public 
Hook_Deathmessage()
{
    new 
victim read_data);
    
    if(
iTime >= 1)
        
set_task(1.0,"Spawn",victim)
    
    return 
PLUGIN_HANDLED
}
public 
Spawn(id)
{
    if(
cs_get_user_team(id) == CS_TEAM_CT)
        
ExecuteHamB(Ham_CS_RoundRespawnid);

Can You Translate this into English
Thanks in advance
bsparty is offline
Kovalski12
Junior Member
Join Date: Dec 2014
Old 12-25-2014 , 09:30   Re: Deathrun 15 sec respawn +timer
Reply With Quote #4

Woah,it works like a charm.dude you are life saver one question,countdown is at the middle,is there any way to put it in the top left corner ? if not thats ok,thanks anyway,you helped me so much already ! And do you know any deathrun timer plugin ? like with the button on the beggining of the map and at the end(with / best option to show record of the map) i am really gratefull.
Kovalski12 is offline
gooseman
Member
Join Date: Jul 2014
Old 12-25-2014 , 10:47   Re: Deathrun 15 sec respawn +timer
Reply With Quote #5

Quote:
Originally Posted by bsparty View Post
Can You Translate this into English
Thanks in advance
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>


#define PLUGIN "Deathrun Rs "
#define VERSION "1.0"
#define AUTHOR "EaGle07"

new iTime

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("ResetHUD""newRound""b")
    
register_event"DeathMsg""Hook_Deathmessage""a" );
    
}
public 
newRound(id)
{
    if( 
task_exists1337 ) )
        
remove_task1337 )
    
    
iTime 15
    set_task
1.0"countdown"1337__"a"15 )
    
    return 
PLUGIN_HANDLED;
}
public 
countdown()
{
    if( 
iTime >= )
    {
        
iTime--

        
set_hudmessage(17900, -1.0, -1.020.021.00.010.110);   
        
show_hudmessage0"Respawning in %i sec"iTime )
    }
    
    else if( 
iTime == )
    {
        
iTime--
        
        
set_hudmessage(0,0,205, -1.0, -1.011.04.00.10.52)
        
show_hudmessage0"You Have Been Respawned!" )
    }
    

public 
Hook_Deathmessage()
{
    new 
victim read_data);
    
    if(
iTime >= 1)
        
set_task(1.0,"Spawn",victim)
    
    return 
PLUGIN_HANDLED
}
public 
Spawn(id)
{
    if(
cs_get_user_team(id) == CS_TEAM_CT)
        
ExecuteHamB(Ham_CS_RoundRespawnid);

gooseman 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 18:02.


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