[Pedido] Level EXP por minutos
#3

Uma BASE altere como o gosto!


Coloque no topo.
PHP код:
new Exp[MAX_PLAYERS]; 
coloque em OnPlayerSpawn.
PHP код:
SetTimerEx("UPLevel"600001"i"playerid); //60000 = tempo [60000 й 1 minuto] 
Coloque em qualquer lugar.
PHP код:
forward UPLevel(playerid);
public 
UPLevel(playerid)
{
    new 
string[250];
    if(
Exp[playerid] >= 0)
    {
        
Exp[playerid] += 1;
        
format(stringsizeof(string), "{4DF235}| UP | Vocк ganhou +1 de Experiкncia ( %d/5 )",Exp[playerid]);
        
SendClientMessage(playerid, -1string);
        
GameTextForPlayer(playerid"~y~UP!"50006);
     }
    if(
Exp[playerid] >= 5)
    {
        
Exp[playerid] = 0;
        
SetPlayerScore(playeridGetPlayerScore(playerid)+1);
        
SendClientMessage(playerid, -1"{4DF235}| UP | Vocк juntou 5 de Experiкncia, e ganhou +1 level ( 1 )");
        
GameTextForPlayer(playerid"~y~UP LEVEL!"50006);
    }
    return 
1;

Reply


Messages In This Thread
Level EXP por minutos - by Mnnny - 19.06.2015, 23:42
Re: Level EXP por minutos - by Monotox - 19.06.2015, 23:47
Re: Level EXP por minutos - by D3sconn3ct - 19.06.2015, 23:56
Re: Level EXP por minutos - by Mnnny - 20.06.2015, 00:08
Re: Level EXP por minutos - by D3sconn3ct - 20.06.2015, 00:11
Re: Level EXP por minutos - by Mnnny - 20.06.2015, 00:22
Re: Level EXP por minutos - by D3sconn3ct - 20.06.2015, 00:26
Re: Level EXP por minutos - by Mnnny - 20.06.2015, 00:54
Re: Level EXP por minutos - by D3sconn3ct - 20.06.2015, 00:57
Re: Level EXP por minutos - by Mnnny - 20.06.2015, 01:25

Forum Jump:


Users browsing this thread: 2 Guest(s)