Raised This Month: $ Target: $400
 0% 

Help with levels (XP)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 05-24-2009 , 09:03   Help with levels (XP)
Reply With Quote #1

Hi, i have this:

PHP Code:
new g_ammopacks[33]
new 
g_playerlevel[33]

new const 
LEVELS[10] = {
    
1,
    
25,
    
50,
    
125,
    
300,
    
675,
    
1400,
    
3000,
    
6200,
    
12500
}

public 
client_putinserver(id)
{
    if(
g_playerlevel[id] == 10)
        return;
            
    if(
g_ammopacks[id] >= LEVELS[g_playerlevel[id]])
        
// ????

I want to set the level automatically but do not know how

thanks in advance
__________________
alan_el_more is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-24-2009 , 09:38   Re: Help with levels (XP)
Reply With Quote #2

What defines a players level? g_ammopacks[id] will hold 0 when a client first connects (unless you previously set it to a value).
__________________
Bugsy is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 05-24-2009 , 09:44   Re: Help with levels (XP)
Reply With Quote #3

Quote:
Originally Posted by Bugsy View Post
What defines a players level? g_ammopacks[id] will hold 0 when a client first connects (unless you previously set it to a value).
save the ammo packs with fvault
__________________
alan_el_more is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-24-2009 , 10:03   Re: Help with levels (XP)
Reply With Quote #4

Once you get that done, I can show you how to set level based on that.
__________________
Bugsy 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 01:29.


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