View Single Post
Author Message
paulitooo
Member
Join Date: Dec 2018
Old 04-26-2020 , 05:37   auto restart plugin
Reply With Quote #1

hii all this code is auto restart but it is have gravity, i need delete gravity

PHP Code:
include <amxmodx>
#include <amxmisc>
#include <dhudmessage>
 
new const PLUGIN_NAME[] = "Auto rr"
new const PLUGIN_VERSION[] = "1.0"
new const PLUGIN_AUTHOR[] = "9 rpamm!?"
 
new TimerSecondsCvar;
 
public 
plugin_init()
{
   
    
register_pluginPLUGIN_NAME PLUGIN_VERSIONPLUGIN_AUTHOR );
    
register_dictionary("auto_rr.txt");
       
    
SecondsCvar register_cvar("auto_rr_time","60.0")
       
    
Timer floatround(get_pcvar_float(SecondsCvar))
    
set_task(1.0"start_rr_timer"___"a"floatround(get_pcvar_float(SecondsCvar)))
}
 
public 
start_rr_timer()
{
    
set_dhudmessage(25500, -1.00.0800.00.01)
    
show_dhudmessage(0"%L"LANG_PLAYER"RR_TIME" Timer)
 
    if(
Timer == 1)
        {
        
server_cmd("sv_restartround 1")
        
set_task(3.0"rr_end")
        }
    
Timer--
}
 
public 
rr_end()
{
    
set_dhudmessagerandom_num(0255), random_num(0255), random_num(0255), -1.00.7826.03.00.11.5false )
    
show_dhudmessage(0"%L"LANG_PLAYER"RR_GG")

paulitooo is offline