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

gravity for 10 seconds


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 06-07-2010 , 11:10   gravity for 10 seconds
Reply With Quote #1

Can anybody tell me, how to give a index gravity for 10 secons?
mottzi is offline
Send a message via MSN to mottzi
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 06-07-2010 , 11:24   Re: gravity for 10 seconds
Reply With Quote #2

Search, (hint : hide n seek shop)
__________________
I am out of order!
grimvh2 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-07-2010 , 13:44   Re: gravity for 10 seconds
Reply With Quote #3

Set gravity to whatever then call set_task for the desired time to set back to normal.
__________________
Bugsy is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 06-08-2010 , 00:34   Re: gravity for 10 seconds
Reply With Quote #4

yeah, i did it like u said
mottzi is offline
Send a message via MSN to mottzi
elec1shock
Member
Join Date: Jul 2008
Old 10-16-2010 , 07:14   Re: gravity for 10 seconds
Reply With Quote #5

#include <amxmodx>

new NormalGravityAmount;

public plugin_init()
register_event("HLTV", "NewRoundEvent", "a", "1=0", "2=0");

public plugin_cfg()
NormalGravityAmount = get_cvar_num("sv_gravity");

public NewRoundEvent()
{
remove_task(1);

set_cvar_num("sv_gravity", 200);
set_task(10.0, "RestoreGravityTask", 1);
}

public RestoreGravityTask()
set_cvar_num("sv_gravity", NormalGravityAmount);
elec1shock is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 10-16-2010 , 10:18   Re: gravity for 10 seconds
Reply With Quote #6

Quote:
Originally Posted by mottzi View Post
yeah, i did it like u said
Then why did u asked again ?
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 10-16-2010 , 11:05   Re: gravity for 10 seconds
Reply With Quote #7

Why you anser this topic? Look at the date...
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
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 09:11.


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