[Pedido] Sistema EXP
#6

Use como base:

PHP Code:
new XP[MAX_PLAYERS];
public 
OnPlayerDeath(playerid)
{
    
XP[killerid] += 4;
    if(
XP[killerid] >= ObjetivoXP(killerid))
    {
        new 
str[90];
        
SetPlayerScore(killeridGetPlayerScore(playerid) + 1);
        
format(strsizeof(90), "Vocк agora й nivel %d!"GetPlayerScore(killerid));
        
SendClientMessage(playerid, -1str);
    }
    return 
1;
}
ObjetivoXP(playerid
    return 
GetPlayerScore(playerid); 
Reply


Messages In This Thread
Sistema EXP - by BrGabrielBr - 07.06.2018, 01:47
Re: Sistema EXP - by BrGabrielBr - 07.06.2018, 13:38
Re: Sistema EXP - by ipsLuan - 07.06.2018, 13:43
Re: Sistema EXP - by zNaKa - 07.06.2018, 18:11
Re: Sistema EXP - by FerrariL - 07.06.2018, 19:07
Re: Sistema EXP - by IlanZ - 07.06.2018, 19:22

Forum Jump:


Users browsing this thread: 3 Guest(s)