[Ajuda] Sistema de Level
#5

Quote:
Originally Posted by D3sconn3ct
Посмотреть сообщение
TESTE ESSE

PHP код:
forward UparLevel(playerid); 
public 
UparLevel(playerid

    if( 
IsPlayerConnectedplayerid ) && Logado[playerid] == true 
    { 
        new 
Arquivolvl[40]; 
         if(
PlayerInfo[playerid][pRespeito] == 
        { 
            
PlayerInfo[playerid][pLevel] ++ ; 
            
PlayerInfo[playerid][pRespeito] = 0
            
SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
            
SendClientMessage(playerid,-1,"{7FFF00}| LEVEL | Parabйns! Vocк juntou {FFFFFF}[ 5/5 ]{7FFF00} de experiкncia e ganhou {FFFFFF}+1 {7FFF00}Level."); 
            
GameTextForPlayer(playerid"~w~~h~UP "30006); 
            
PlayerPlaySound(playerid10570.00.010.0); 
            
DOF2_SetInt(Arquivolvl,"Level",PlayerInfo[playerid][pLevel]); 
            
SetPlayerScore(playerid,DOF2_GetInt(Arquivolvl,"Level")); 
            
PagarSalario(playerid); 
        } 
        else 
        { 
            
PlayerInfo[playerid][pRespeito] ++; 
            
format(stringmediasizeof(stringmedia), "{7FFF00}| UP | Vocк ganhou {FFFFFF}[ %d/5 ] {7FFF00}de experiкncia!"PlayerInfo[playerid][pRespeito]); 
            
SendClientMessage(playerid,0xFFFFFFAA,stringmedia); 
            
GameTextForPlayer(playerid"~r~~h~+~w~EXP"30006); 
            
PlayerPlaySound(playerid10570.00.010.0); 
            
DOF2_SetInt(Arquivolvl,"EXP",PlayerInfo[playerid][pRespeito]); 
        } 
    } 
    return 
1

jб testei, mas se eu tenho o getplayerscore jб, nгo preciso do PlayerInfo[playerid][pLevel] ++ ; '-'
Reply


Messages In This Thread
Sistema de Level - by LucasDias - 03.07.2015, 17:55
Re: Sistema de Level - by bruxo00 - 03.07.2015, 17:59
Re: Sistema de Level - by LucasDias - 03.07.2015, 18:00
Re: Sistema de Level - by D3sconn3ct - 03.07.2015, 18:27
Re: Sistema de Level - by LucasDias - 03.07.2015, 19:12
Re: Sistema de Level - by LucasDias - 03.07.2015, 23:44
Re: Sistema de Level - by Pablo098 - 04.07.2015, 01:34
Re: Sistema de Level - by LucasDias - 04.07.2015, 01:58
Re: Sistema de Level - by Pablo098 - 04.07.2015, 02:20
Re: Sistema de Level - by LucasDias - 04.07.2015, 02:22

Forum Jump:


Users browsing this thread: 1 Guest(s)