Raised This Month: $32 Target: $400
 8% 

[CS:GO] Gravity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KerimCMN
Member
Join Date: Jul 2018
Old 10-18-2018 , 17:32   [CS:GO] Gravity
Reply With Quote #1

My English : When the round is finished gravity must be 100 if round started gravity must be normally can any body make it ?
KerimCMN is offline
iskenderkebab33
Senior Member
Join Date: Jun 2018
Old 10-18-2018 , 17:43   Re: [CS:GO] Gravity
Reply With Quote #2

not tested
PHP Code:
#include <sourcemod>

#pragma semicolon 1
#pragma newdecls required

public void OnPluginStart()
{
    
HookEvent("round_start"Event_RoundStart);
    
HookEvent("round_end"Event_RoundEnd);
}

public 
Action Event_RoundStart(Event hEvent, const char[] sNamebool bDontBroadcast)
{
    
ServerCommand("sv_gravity 800");
}

public 
Action Event_RoundEnd(Event hEvent, const char[] sNamebool bDontBroadcast)
{
    
ServerCommand("sv_gravity 100");


Last edited by iskenderkebab33; 10-18-2018 at 17:43.
iskenderkebab33 is offline
iskenderkebab33
Senior Member
Join Date: Jun 2018
Old 10-19-2018 , 05:10   Re: [CS:GO] Gravity
Reply With Quote #3

PHP Code:
#include <sourcemod>

#pragma semicolon 1
#pragma newdecls required

public void OnPluginStart()
{
    
HookEvent("round_start"Event_RoundStart);
    
HookEvent("round_end"Event_RoundEnd);
}

public 
Action Event_RoundStart(Event hEvent, const char[] sNamebool bDontBroadcast)
{
    
FindConVar("sv_gravity").SetInt(800);
    
PrintToChatAll("Uçma modumuz kapatılmıştır!");
}

public 
Action Event_RoundEnd(Event hEvent, const char[] sNamebool bDontBroadcast)
{
    
FindConVar("sv_gravity").SetInt(100);
    
PrintToChatAll("Uçma modumuz açılmıştır!");


Last edited by iskenderkebab33; 10-19-2018 at 10:46.
iskenderkebab33 is offline
LenHard
Senior Member
Join Date: Jan 2016
Old 10-19-2018 , 08:49   Re: [CS:GO] Gravity
Reply With Quote #4

Quote:
Originally Posted by iskenderkebab33 View Post
PHP Code:
#include <sourcemod>

#pragma semicolon 1
#pragma newdecls required

public void OnPluginStart()
{
    
HookEvent("round_start"Event_RoundStart);
    
HookEvent("round_end"Event_RoundEnd);
}

public 
Action Event_RoundStart(Event hEvent, const char[] sNamebool bDontBroadcast)
{
    
ServerCommand("sv_gravity 800");
    
PrintToChatAll("Uçma modumuz kapatılmıştır!");
}

public 
Action Event_RoundEnd(Event hEvent, const char[] sNamebool bDontBroadcast)
{
    
ServerCommand("sv_gravity 100");
    
PrintToChatAll("Uçma modumuz açılmıştır!");

Don't use ServerCommand but rather use FindConVar
PHP Code:
FindConVar("sv_gravity").SetInt(100); 
__________________
LenHard 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:45.


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