Raised This Month: $ Target: $400
 0% 

How to Add level a rank?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PWA
Junior Member
Join Date: May 2010
Old 06-01-2010 , 17:57   How to Add level a rank?
Reply With Quote #1

Hello everyone, i wanted to ask, how to add Level a rank?
Example : i have 1000XP and i get Level : 1 and the rank will be example - Begginer, how to add Ranks to levels?
Thq, if help me ;)
PWA is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-01-2010 , 18:49   Re: How to Add level a rank?
Reply With Quote #2

you make like 5 levels, then you make several ranks, and if he reaches a certain level, you can either reset his level and update there rank, or leave the level and update his rank. There is a tutorial about xp and rank in the tut section.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
PWA
Junior Member
Join Date: May 2010
Old 06-01-2010 , 19:06   Re: How to Add level a rank?
Reply With Quote #3

you think in that XP MOD?
I searched all, there is nothing about his, what a sad! there need to CHOSE a class, not level ranks.. :/
PWA is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-01-2010 , 19:09   Re: How to Add level a rank?
Reply With Quote #4

i'll make you an example tomorrow. I'm to tired right now.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-01-2010 , 20:16   Re: How to Add level a rank?
Reply With Quote #5

This will set a players rank based on the number of XP points. ie., if a player has 250 XP points, he would be assigned to Good rank.
PHP Code:
enum Ranks
{
    
Noob,
    
Rookie,
    
Good,
    
Best,
    
Pro
}

new const 
RankXPRanks ][ ] = 
{
    {   
100 }, //Noob
    
101 200 }, //Rookie
    
201 300 }, //Good
    
301 400 }, //Best
    
401 999999999 //Pro
}

new const 
RankNameRanks ][] = 
{
    
"Noob",
    
"Rookie",
    
"Good",
    
"Best",
    
"Pro"
}

new 
g_XP33 ] , Ranks:g_PlayerRank33 ];

public 
SetRankid 
{
    for ( new 
Ranks:Noob <= Pro i++ )
    {
        if ( 
RankXP][ ] <= g_XPid ] <= RankXP][ ] )
        {
            
g_PlayerRankid ] = i;
            break;
        }
    }

    
client_printprint_chat "XP=%d Rank=%s" g_XPid ] , RankNameg_PlayerRankid ] ] );  

__________________

Last edited by Bugsy; 06-03-2010 at 08:54.
Bugsy is offline
PWA
Junior Member
Join Date: May 2010
Old 06-02-2010 , 05:16   Re: How to Add level a rank?
Reply With Quote #6

PHP Code:
enum {
CLASS_Nubiks 0,
CLASS_Iesacejs,
CLASS_Pieredzejusais,
CLASS_Viltigais,
CLASS_Ninzja,
CLASS_Masters,
CLASS_ObiVan,
CLASS_MastersYoda,
}

new const 
CLASSES[8][] = {
    
"Nubiks",
    
"Iesacejs",
    
"Pieredzejusais",
    
"Viltigais",
    
"Ninzja",
    
"Masters",
    
"ObiVan",
    
"MastersYoda"
}

//Heer you can add more levels
new const LEVELS[7] = {
    
1000,
    
2000,
    
3000,
    
5000,
    
7000,
    
10000,
    
15000,

I have like this, how to edit this script? to show ranks at that XP level?
PWA 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 05:24.


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