Convidado Convidado
| Assunto: [RESOLVIDO] Ajuda em um sistema Ter 25 Out 2011, 12:23 | |
| Queria um sistema de ranking de resets para contar qtos resets cada player tem ! ex: um .ini com o nome Ranking ai la dentro tem: 1- Fulano = 10 resets 2- Ciclano = 8 resets 3- Beltrano = 5 resets Acho que deeu pra entender, se der alguem por favor poderia disponibilizar um tuto desse sistema ??. Vlwws
Última edição por Matheus Silva Matias em Qua 26 Out 2011, 11:47, editado 1 vez(es) |
|
Convidado Convidado
| Assunto: Re: [RESOLVIDO] Ajuda em um sistema Ter 25 Out 2011, 13:53 | |
| Primeiramente faça o tutorial de Reset automatico. Depois basta fazer isso: A baixo do - Código:
-
If GetPlayerLevel(index) => 1000 Then Call SetPlayerExp(index, 1) Call SetPlayerLevel(index, 1) Call PlayerMsg(index, "Você resetou com sucesso!", 15) Call SetPlayerPOINTS(index, GetPlayerPoints(index) + 3) Call SetPlayerResets(index, GetPlayerResets(index) + 1) Call SavePlayer(index) Call SendPOINTS(Index) Call SendStats(Index) End If Esse é o reset automático, abaixo do End If ponha: - Código:
-
If GetPlayerResets(index) >= 1 Then Call PutVar("Ranking.ini", GetPlayerName(index), "Resets", GetPlayerResets(index)) PutVar End If End Sub O código ficará assim: - Código:
-
Call BattleMsg(index, "Você tem " & GetPlayerPOINTS(index) & " pontos para serem gastos.", 9, 0) If GetPlayerLevel(index) => 1000 Then Call SetPlayerExp(index, 1) Call SetPlayerLevel(index, 1) Call PlayerMsg(index, "Você resetou com sucesso!", 15) Call SetPlayerPOINTS(index, GetPlayerPoints(index) + 3) Call SetPlayerResets(index, GetPlayerResets(index) + 1) Call SavePlayer(index) Call SendPOINTS(Index) Call SendStats(Index) End If If GetPlayerResets(index) >= 1 Then Call PutVar("Ranking.ini", GetPlayerName(index), "Resets", GetPlayerResets(index)) PutVar End If End Sub Agora crie um Arquivo.ini com o nome de Ranking.ini, no servidor, não precisa adicionar nada dentro! E pronto ^^. Ao resetar, aparecerá no Ranking.ini qnts resets tem o cara que resetou. |
|
Convidado Convidado
| Assunto: Re: [RESOLVIDO] Ajuda em um sistema Qua 26 Out 2011, 11:46 | |
| Topico resolvido vlw mesmo +cred! |
|
Convidado Convidado
| Assunto: Re: [RESOLVIDO] Ajuda em um sistema Dom 06 Nov 2011, 10:10 | |
| Dúvida/Pedido/Problema Resolvido com sucesso. Se houver algo mais por favor pedimos que efetue a criação de um novo tópico na área de Suporte para resolução.
Topico Trancado e Movido
Atenciosamente Equipe Universe Games. |
|
Conteúdo patrocinado
| Assunto: Re: [RESOLVIDO] Ajuda em um sistema | |
| |
|