Raised This Month: $ Target: $400
 0% 

[Request] Personal Gravity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
A.B.
Member
Join Date: Nov 2009
Old 12-14-2009 , 22:15   [Request] Personal Gravity
Reply With Quote #1

Yes I know, it's been made before, by Chronic.
Yet it's still on manual -- amx_gravity <target> <gravoty amount>

Is there a way to assign custom gravity levels for a specific flag?
Let's use ADMIN_IMMUNITY as an example.

Last edited by A.B.; 12-15-2009 at 07:58.
A.B. is offline
Toastt
BANNED
Join Date: Nov 2009
Old 12-14-2009 , 22:19   Re: [Request] Personal Gravity
Reply With Quote #2

Quote:
Originally Posted by A.B. View Post
Yes I know, it's been made before, by Chronic.
Yet it's still on manual -- amx_gravity <target> <gravoty amount>

Is there a way to assign custom gravity levels for a specific player using admin_access?
i was gonna post for a plugin like so, very nice idea
Toastt is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 12-14-2009 , 22:26   Re: [Request] Personal Gravity
Reply With Quote #3

Quote:
Originally Posted by A.B. View Post
Yes I know, it's been made before, by Chronic.
Yet it's still on manual -- amx_gravity <target> <gravoty amount>

Is there a way to assign custom gravity levels for a specific player using admin_access?
Set a users gravity based on the flags they have? Yes this is simple.
__________________
Bugsy is offline
A.B.
Member
Join Date: Nov 2009
Old 12-14-2009 , 22:33   Re: [Request] Personal Gravity
Reply With Quote #4

#3
That would be lovely.
A.B. is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 12-14-2009 , 22:37   Re: [Request] Personal Gravity
Reply With Quote #5

Quote:
Originally Posted by A.B. View Post
#3
That would be lovely.
ok what gravity do you want each level to have?

#define ADMIN_ALL 0 /* everyone */
#define ADMIN_IMMUNITY (1<<0) /* flag "a" */
#define ADMIN_RESERVATION (1<<1) /* flag "b" */
#define ADMIN_KICK (1<<2) /* flag "c" */
#define ADMIN_BAN (1<<3) /* flag "d" */
#define ADMIN_SLAY (1<<4) /* flag "e" */
#define ADMIN_MAP (1<<5) /* flag "f" */
#define ADMIN_CVAR (1<<6) /* flag "g" */
#define ADMIN_CFG (1<<7) /* flag "h" */
#define ADMIN_CHAT (1<< /* flag "i" */
#define ADMIN_VOTE (1<<9) /* flag "j" */
#define ADMIN_PASSWORD (1<<10) /* flag "k" */
#define ADMIN_RCON (1<<11) /* flag "l" */
#define ADMIN_LEVEL_A (1<<12) /* flag "m" */
#define ADMIN_LEVEL_B (1<<13) /* flag "n" */
#define ADMIN_LEVEL_C (1<<14) /* flag "o" */
#define ADMIN_LEVEL_D (1<<15) /* flag "p" */
#define ADMIN_LEVEL_E (1<<16) /* flag "q" */
#define ADMIN_LEVEL_F (1<<17) /* flag "r" */
#define ADMIN_LEVEL_G (1<<1 /* flag "s" */
#define ADMIN_LEVEL_H (1<<19) /* flag "t" */
__________________
Bugsy is offline
A.B.
Member
Join Date: Nov 2009
Old 12-14-2009 , 22:42   Re: [Request] Personal Gravity
Reply With Quote #6

We could easilly edit the levels. Yet, since you're that nice let's go with admin_immunity, just make a single cvar, adjust it later.

ex:
#define admin_access admin_immunity

if_user_access blah blah I have no idea what I'm doing then >
sv_gravity 100
A.B. is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 12-14-2009 , 23:02   Re: [Request] Personal Gravity
Reply With Quote #7

Quote:
Originally Posted by A.B. View Post
We could easilly edit the levels. Yet, since you're that nice let's go with admin_immunity, just make a single cvar, adjust it later.

ex:
#define admin_access admin_immunity

if_user_access blah blah I have no idea what I'm doing then >
sv_gravity 100
How do you want to handle admins w\ multiple flags. Easiest way is in order as defined above.

So if you have immunity, you get flags based off immunity, or if you dont have immunity but have reservation flags then you get reservation gravity and so on.
__________________
Bugsy is offline
A.B.
Member
Join Date: Nov 2009
Old 12-14-2009 , 23:20   Re: [Request] Personal Gravity
Reply With Quote #8

#7
Why not ignore admins with multiple flags?

Set a specific amount of gravity to players with flag "X" and simply avoid other flags forcing the gravity to a specific flag only.
We could easilly adjust the gravity for our desired level after you release .sma

Am I missing something?
A.B. is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 12-15-2009 , 00:23   Re: [Request] Personal Gravity
Reply With Quote #9

Quote:
Originally Posted by A.B. View Post
#7
Why not ignore admins with multiple flags?

Set a specific amount of gravity to players with flag "X" and simply avoid other flags forcing the gravity to a specific flag only.
We could easilly adjust the gravity for our desired level after you release .sma

Am I missing something?
Ok, so we are only allowing this plugin to affect players with one level of admin powers and ignore all others?
__________________
Bugsy is offline
A.B.
Member
Join Date: Nov 2009
Old 12-15-2009 , 00:30   Re: [Request] Personal Gravity
Reply With Quote #10

Yep, that's what I personally need.

On other hand you should make it your way. Making the code much more userful to a public. ;)
A.B. 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:22.


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