Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin

sv_gravity

by blobby · 2007-08-31 · 3 replies · 943 views · 3 downloads

Read the thread (4 posts)

From the first post

Now i know what your thinking by the title is he all there, I know there are loads of these plugins about but because im learning how to script i though this would be a challenge. But what i need to know is kinda ruffly where to start i don't mean with the cvars or the commands i mean with the settings for the actual gravity such as 100 to (800 standard setting) if any one can like show me how this would be done so it would work it would be much appreciated as i don't have a clue on how to make this work at the moment
rn
rnRegards and thanks
rn
rnBlobby

Added later in the thread

gravity.sma Plugin Source 3 KB 3 dl Download Compile

The thread

All 4 posts from 2 people on sv_gravity, kept as they were written.

blobby
started this thread
Posts: 421
Threads: 47
Joined: Apr 2007
08-31-2007, 07:57 PM #1

Now i know what your thinking by the title is he all there, I know there are loads of these plugins about but because im learning how to script i though this would be a challenge. But what i need to know is kinda ruffly where to start i don't mean with the cvars or the commands i mean with the settings for the actual gravity such as 100 to (800 standard setting) if any one can like show me how this would be done so it would work it would be much appreciated as i don't have a clue on how to make this work at the momentrnrnRegards and thanksrnrnBlobby

blobby
started this thread
Posts: 421
Threads: 47
Joined: Apr 2007
09-08-2007, 03:47 PM #2

Ok so i have managed to get this far with the sv_gravity plugin i wanted to make but i have 1 tiny problem its kicking out 1 error when i try to compile it now ive looked and looked at this code and i can not see any thing wrong so if one of you super people who know what you are looking for would be as kind enough as to look over this for me i would be very greatfullrnrnThanks in advance and regardsrnrnBlobby

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
09-08-2007, 06:00 PM #3

the error is becuase you have a character before the comments...nnthe *'snnchangen

     *////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////n*//DOD_GRAVITY//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////n*//by Blobby///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////n*//Make sure you define you admin level where this line is shown register_concmd("amx_gravity","admin_gravity",ADMIN_LEVEL_H,"<n*gravity >") where admin_level_h is to suit your settings////////////////////////////////////////////////////////////////////////n*///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////n*//The commands for this plugin are as follows/////////////////////////////////////////////////////////////////////////////////n*//To change the gravity of your server in console type sv_gravity 800 is standard settings and 100 is fun gravity////////////n*//you can choose any setting or gravity from 100 to 1000////////////////////////////////////////////////////////////////////////////////////////////////////////n*//There are also 2 chat commands for players to be able to find out what gravity is set to the command for this is /gravity in ither team chat or player chat//n*//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////n
to this:n
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////n//DOD_GRAVITY//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////n//by Blobby///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////n//Make sure you define you admin level where this line is shown register_concmd("amx_gravity","admin_gravity",ADMIN_LEVEL_H,"<n//gravity >") where admin_level_h is to suit your settings////////////////////////////////////////////////////////////////////////n///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////n//The commands for this plugin are as follows/////////////////////////////////////////////////////////////////////////////////n//To change the gravity of your server in console type sv_gravity 800 is standard settings and 100 is fun gravity////////////n//you can choose any setting or gravity from 100 to 1000////////////////////////////////////////////////////////////////////////////////////////////////////////n//There are also 2 chat commands for players to be able to find out what gravity is set to the command for this is /gravity in ither team chat or player chat//n//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////n
blobby
started this thread
Posts: 421
Threads: 47
Joined: Apr 2007
09-08-2007, 08:00 PM #4

OMGZ Now i feel stupid thanks dimond optic m8

DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC