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

restart after 15 round


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pourya
Member
Join Date: Sep 2011
Location: Iran
Old 10-04-2012 , 17:11   restart after 15 round
Reply With Quote #1

hi all
it's my 3 ask to make plugin that restart server after 15 round

any body can write this plugin?
Pourya is offline
Send a message via Yahoo to Pourya
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 10-04-2012 , 17:34   Re: restart after 15 round
Reply With Quote #2

PHP Code:
#include <amxmodx>

new g_pRestart

public plugin_init()
{
    
register_plugin("Auto Restart""0.0.1""Khalid :)")
    
register_event("HLTV""New_Round""a""1=0""2=0")
    
g_pRestart get_cvar_pointer("sv_restart")
}

public 
New_Round()
{
    static 
iRoundCount
    
++iRoundCount
    
    
if(iRoundCount == 16)        // Restart on the 16th round
    
{
        
iRoundCount 0
        set_pcvar_num
(g_pRestart1)
    }

__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster 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 04:26.


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