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

auto restart plugin


Post New Thread Reply   
 
Thread Tools Display Modes
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
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 04-26-2020 , 08:21   Re: auto restart plugin
Reply With Quote #2

This plugin has nothing to do with your gravity problem.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 04-26-2020 , 08:32   Re: auto restart plugin
Reply With Quote #3

another plugin is causing this, because the code you gave us its not altering gravity

and this line
PHP Code:
include <amxmodx
supposed to be
PHP Code:
#include <amxmodx> 
tarsisd2 is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 04-26-2020 , 08:54   Re: auto restart plugin
Reply With Quote #4

Quote:
Originally Posted by paulitooo View Post
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")

This plugin for auto restart round only there's not codes typed for gravity
You have another plugin do gravity in your server
And fix this plugin
Add this button #
From this
PHP Code:
include <amxmodx
To this
PHP Code:
#include <amxmodx> 
Supremache is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 04-26-2020 , 08:59   Re: auto restart plugin
Reply With Quote #5

why post exactly what i posted supremache?
tarsisd2 is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 04-26-2020 , 09:06   Re: auto restart plugin
Reply With Quote #6

Quote:
Originally Posted by tarsisd2 View Post
why post exactly what i posted supremache?
Iam sorry but i want to give him more example
Supremache is offline
Reply


Thread Tools
Display Modes

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 07:36.


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