[AJUDA]Sistem de EXP
#7

Nгo entendi o.O, Ele upa pelo OnPlayerDeath?

@EDIT

PHP код:
new
    
Level[MAX_PLAYERS],
    
Exp[MAX_PLAYERS]
;
stock Expz(playerid)
{
    new 
Ezp;
    if(
Level[playerid] == 1Ezp 10;
    if(
Level[playerid] == 2Ezp 20;
    if(
Level[playerid] == 3Ezp 30;
    if(
Level[playerid] == 4Ezp 40;
    if(
Level[playerid] == 5Ezp 50;
    return 
Ezp;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
    
Exp[killerid] ++;
    if(
Exp[killerid] >= Expz(killerid))
    {
        
Level[killerid] ++;
        
Exp[killerid] = 0;
    }
    return 
true;

Reply


Messages In This Thread
[AJUDA]Sistem de EXP - by Victor_Souz4 - 01.12.2011, 12:14
Re: [AJUDA]Sistem de EXP - by ViniBorn - 01.12.2011, 12:19
Re: [AJUDA]Sistem de EXP - by Victor_Souz4 - 01.12.2011, 12:26
Re: [AJUDA]Sistem de EXP - by Victor_Souz4 - 01.12.2011, 13:18
Re: [AJUDA]Sistem de EXP - by [R] ousenber [K] - 01.12.2011, 13:25
Re: [AJUDA]Sistem de EXP - by Victor_Souz4 - 01.12.2011, 13:39
Re: [AJUDA]Sistem de EXP - by [R] ousenber [K] - 01.12.2011, 13:42
Re: [AJUDA]Sistem de EXP - by ViniBorn - 01.12.2011, 17:17
Re: [AJUDA]Sistem de EXP - by Ricop522 - 01.12.2011, 19:52

Forum Jump:


Users browsing this thread: 3 Guest(s)