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

Saving days for XP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 11-15-2010 , 16:29   Saving days for XP
Reply With Quote #1

I was just explaining a few things regarding index'es and stuff to Exploited, so I was looking at the include files.

I noticed this in the const include:

Code:
#define SH_FLAG_XPIMMUNE    (1<<2)    /* flag "c" */    // Immue to xp reset from savedays. (Not available for nVault)
How do I use this? Do I need to make a plugin, and then add the steamID's which should not be reset or how do I use it?
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 11-15-2010 , 20:40   Re: Saving days for XP
Reply With Quote #2

Code:
register_concmd("amx_shimmunexp", "adminImmuneXP", aLevel, "<name|^"steamid^"|#userid> <0=OFF|1=ON> - Sets/Unsets player immune from sh_savedays XP prune only")

It's not very useful other than for the core itself as it needs to interact with the save system.

Last edited by vittu; 11-15-2010 at 20:43.
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
G-Dog
Senior Member
Join Date: Dec 2005
Location: Thunderstorm Central
Old 11-15-2010 , 22:05   Re: Saving days for XP
Reply With Quote #3

Looking at the superhero core it doesn't look like it works for nvault save method, only mysql and the file(vault) method are set to obey that flag.
__________________
If at first you don't succeed, then skydiving isn't for you.
G-Dog is offline
Send a message via AIM to G-Dog
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 11-16-2010 , 13:22   Re: Saving days for XP
Reply With Quote #4

Quote:
Originally Posted by vittu View Post
Code:
register_concmd("amx_shimmunexp", "adminImmuneXP", aLevel, "<name|^"steamid^"|#userid> <0=OFF|1=ON> - Sets/Unsets player immune from sh_savedays XP prune only")
It's not very useful other than for the core itself as it needs to interact with the save system.
Ahh great. Thanks. Why is that command not on the list then?

Quote:
Originally Posted by G-Dog View Post
Looking at the superhero core it doesn't look like it works for nvault save method, only mysql and the file(vault) method are set to obey that flag.
Code:
// Immue to xp reset from savedays. (Not available for nVault)
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 11-16-2010 , 20:01   Re: Saving days for XP
Reply With Quote #5

Quote:
Originally Posted by Jelle View Post
Why is that command not on the list then?
what list?
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 11-17-2010 , 11:01   Re: Saving days for XP
Reply With Quote #6

Quote:
Originally Posted by vittu View Post
what list?
http://shero.alliedmods.net/index.php?page=commands
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 11-17-2010 , 19:55   Re: Saving days for XP
Reply With Quote #7

I don't have access to the site at all if I did I would change the download location for the mod.

I've put in a request for access over 2 years ago and I may finally get it soon.
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
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 00:58.


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