[AJUDA]Salvar nнvel de procurado.
#2

PHP код:
public OnPlayerDisconnect(playeridreason)
{
    new 
str[50];
    
GetPlayerName(playeridstr24);
    
format(strsizeof str"/Jogadores/%s.txt"str);
    if(!
fexist(str)) { dini_Create(str); }
    
dini_IntSet(str"Nivel de Procurado"GetPlayerWantedLevel(playerid));
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
    new 
str[50];
    
GetPlayerName(playeridstr24);
    
format(strsizeof str"/Jogadores/%s.txt"str);
    if(
fexist(str)) { SetPlayerWantedLevel(playeriddini_Int(str"Nivel de Procurado")); }
    return 
1;

OBS: Caso nгo crie a pasta Jogadores no diretorio scriptfiles, o codigo irб causar erros no teu servidor.
Reply


Messages In This Thread
[AJUDA]Salvar nнvel de procurado. - by Andy7 - 11.07.2011, 21:32
Re: [AJUDA]Salvar nнvel de procurado. - by Shadoww5 - 11.07.2011, 21:43
Re: [AJUDA]Salvar nнvel de procurado. - by Andy7 - 11.07.2011, 22:01
Re: [AJUDA]Salvar nнvel de procurado. - by Shadoww5 - 11.07.2011, 22:02
Re: [AJUDA]Salvar nнvel de procurado. - by Andy7 - 11.07.2011, 22:05

Forum Jump:


Users browsing this thread: 1 Guest(s)