Raised This Month: $ Target: $400
 0% 

modify low grav plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
The Red Smiley!!
Junior Member
Join Date: Apr 2005
Old 12-02-2007 , 06:49   modify low grav plugin
Reply With Quote #1

I want to use this low grav plugin for a gungame server, but the plugin removes the low grav on death...and in gungame, that can be about every 10-20 seconds. If someone could modify it to last the entire map, I would apreciate it.

THX
The Red Smiley!!
Indiana CS (more than corn)*Gungame*
Attached Files
File Type: sma Get Plugin or Get Source (personalgravity.sma - 760 views - 4.8 KB)
The Red Smiley!! is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-02-2007 , 07:14   Re: modify low grav plugin
Reply With Quote #2

Simple plugin that will set a different gravity each time a player spawn.

Code:
#include <amxmodx> #include <fakemeta> public plugin_init() {     register_plugin("Personal Gravity","0.1","connorr")     register_event("ResetHUD", "eResetHUD", "be") } public eResetHUD(id) {     set_pev(id, pev_gravity, random_float(200.0, 800.0)) }

Last edited by ConnorMcLeod; 12-02-2007 at 07:16.
ConnorMcLeod is offline
The Red Smiley!!
Junior Member
Join Date: Apr 2005
Old 12-03-2007 , 02:14   Re: modify low grav plugin
Reply With Quote #3

Thanks, but I really don't want random grav's. I want people to be able to pick the gravity setting they like, and keep it for the entire map. The random grav plugin may come in handy in the future.

THX
The Red Smiley
Indiana CS (more than corn)*Gungame*
The Red Smiley!! is offline
djmd378
Senior Member
Join Date: Sep 2004
Old 12-03-2007 , 04:25   Re: modify low grav plugin
Reply With Quote #4

Not tested but in theory, it should work.
Attached Files
File Type: sma Get Plugin or Get Source (personalgravity.sma - 853 views - 5.0 KB)
__________________
djmd378 is offline
The Red Smiley!!
Junior Member
Join Date: Apr 2005
Old 12-03-2007 , 07:31   Re: modify low grav plugin
Reply With Quote #5

Thank you very much, djmd378, exactly want I wanted, and it works perfectly.


The Red Smiley
Indiana CS (more than corn)*Gungame*
The Red Smiley!! 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 02:14.


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