gravity for 10 seconds
Can anybody tell me, how to give a index gravity for 10 secons?
|
Re: gravity for 10 seconds
Search, (hint : hide n seek shop)
|
Re: gravity for 10 seconds
Set gravity to whatever then call set_task for the desired time to set back to normal.
|
Re: gravity for 10 seconds
yeah, i did it like u said :D
|
Re: gravity for 10 seconds
#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); |
Re: gravity for 10 seconds
Quote:
|
Re: gravity for 10 seconds
Why you anser this topic? Look at the date...
|
| All times are GMT -4. The time now is 05:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.