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

Auto Restart In X Round


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Event Related        Approver:   Hawk552 (427)
independent
Member
Join Date: Jan 2009
Location: Bulgaria, Sofia
Old 09-21-2009 , 06:24   Auto Restart In X Round
Reply With Quote #1

Description: restarts the game in round, out by cvar(after map changing/server start)
Servers, using the plugin: click here!
Modules: no.
Version: 0.3

CVARS:

amx_restart_round "2"
In which round, the game restarts?

amx_restart_time "10.0"
How many seconds after roundstart the game will restart(in the round, which you selected)? It have to be a Float.


amx_restart_notice "3"
How to notice the players for the restart?
0: no notice
1: via chat message
2: via hud message
3: via chat and hud message

amx_restart_message "That's the %round% round!Restarting..."
What to be the chat message?

You can use %round% for the number of the round.

amx_restart_message_color "4"
The color of the chat message?

1: green
2: red
3: grey
4: blue
5: normal(con_color)
6: team color

amx_restart_hud "%seconds% seconds until restart!"
What to be the hud message?
You can use:

%round% - for the number of the round
%seconds - seconds remaining(it's a timer - 10, 9, 8 etc).
/n - for new line.

amx_restart_hud_color "0 255 0"
The color of the hud message via RGB? Look here for RGB colors.

amx_restart_sound "1"
Vox sounds in the counting(for remaining seconds until restart)?


Thanks to:

Changelog:
  • 0.1
    • First version.
  • 0.2
    • Added 3 cvars.
      • amx_restart_notice
      • amx_restart_hud
      • amx_restart_hud_color
  • 0.3
    • Added 1 cvar.
      • amx_restart_sound
Attached Files
File Type: sma Get Plugin or Get Source (auto_res_in_x_round.sma - 7350 views - 7.5 KB)

Last edited by independent; 09-28-2009 at 15:40. Reason: 0.3 update
independent is offline
mAr7obg
Senior Member
Join Date: May 2007
Location: Bulgaria
Old 09-21-2009 , 07:42   Re: Auto Restart In X Round
Reply With Quote #2

nice
mAr7obg is offline
Send a message via Skype™ to mAr7obg
GmTx
BANNED
Join Date: May 2009
Location: Mountains [BG/Sofia]
Old 09-21-2009 , 07:49   Re: Auto Restart In X Round
Reply With Quote #3

PHP Code:
register_logevent("roundStart"2"1=Round_Start"
Use HLTV event

and use this not the colorchat
PHP Code:
new g_msgSayText
-----------------------------------------------
g_msgSayText get_user_msgid("SayText")
-----------------------------------------------
stock chat_color(const input[], any:...)
{
    static 
msg[191]
    
vformat(msg190input2)
    
    
message_begin(MSG_BROADCASTg_msgSayText)
    
write_byte(1)
    
write_string(msg)
    
message_end()

GmTx is offline
Send a message via Skype™ to GmTx
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 09-21-2009 , 08:44   Re: Auto Restart In X Round
Reply With Quote #4

Why should he use HLTV event instead of the roundstart event? The only difference (as far as I know) is that the HLTV event kicks in when freezetime is over.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-21-2009 , 09:05   Re: Auto Restart In X Round
Reply With Quote #5

Quote:
Originally Posted by DarkGod View Post
Why should he use HLTV event instead of the roundstart event? The only difference (as far as I know) is that the HLTV event kicks in when freezetime is over.
Wrong.

The round start from using HLTV event is when the new round starts and freezetime starts counting down (if no freezetime, it's the same as the logevent).
The round start from using logevent 1=Round_Start is when freezetime has finished counting down and players are allowed to move.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
independent
Member
Join Date: Jan 2009
Location: Bulgaria, Sofia
Old 09-21-2009 , 10:29   Re: Auto Restart In X Round
Reply With Quote #6

Quote:
Originally Posted by GmTx View Post
Use HLTV event

and use this not the colorchat
I'm not good at the events and i don't want to. For some seconds is not a big problem. ;[

And why not using the colorchat?

Last edited by independent; 09-21-2009 at 13:58.
independent is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 09-21-2009 , 18:51   Re: Auto Restart In X Round
Reply With Quote #7

really nice :
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
independent
Member
Join Date: Jan 2009
Location: Bulgaria, Sofia
Old 09-22-2009 , 02:58   Re: Auto Restart In X Round
Reply With Quote #8

New version!
independent is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 09-22-2009 , 16:33   Re: Auto Restart In X Round
Reply With Quote #9

maybe instead of only after X rounds also after X seconds.
__________________
I am out of order!
grimvh2 is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 09-22-2009 , 22:23   Re: Auto Restart In X Round
Reply With Quote #10

@grimvh2

Well, you can use:

amx_restart_round 1

And:

amx_restart_time <seconds>
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
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 13:31.


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