SA-MP Forums Archive
[Pedido] sistema de Score. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] sistema de Score. (/showthread.php?tid=449654)



sistema de Score. - xxRaioxx - 09.07.2013

Olб,queria um sistema de Score que mostrasse em TextDraw o Score,e em 40 minutos ganhavam 1 level/Score,e tambйm o comando de dar Score que quando o adm desse o score,mudasse tambйm no TextDraw tem jeito?


Re: sistema de Score. - StrondaXxT - 09.07.2013

Server RPG como eu nunca vi mesmo


Re: sistema de Score. - xxRaioxx - 09.07.2013

Por que Stronda? Alguйm ajuda?


Re: sistema de Score. - BieeelEvolution - 09.07.2013

pawn Код:
forward PayDay();

SetTimer("PayDay", 2400000,    true);

public PayDay() {
    for(new i = 0; i < MAX_PLAYERS; i++) {
    if(IsPlayerConnected(i)) {
        PlayerPlaySound(i,1057, 0.0, 0.0, 0.0);
        SetPlayerScore(i, GetPlayerScore(i) + 1);
        GivePlayerMoney(i, 1000);
        GameTextForPlayer(i, "Pagamento.. Level UP", 4000, 1);
        } }
    return 1;
}
qualquer erro contate-me!


Re: sistema de Score. - xxRaioxx - 09.07.2013

BieeelEvolution deu esse erro:
pawn Код:
C:\Users\aa\Desktop\Server SAMP\gamemodes\GM-BML.pwn(8) : error 021: symbol already defined: "SetTimer"
C:\Users\aa\Desktop\Server SAMP\gamemodes\GM-BML.pwn(724) : error 021: symbol already defined: "SetTimer"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.



Re: sistema de Score. - BieeelEvolution - 09.07.2013

Topo do GameMod:

pawn Код:
forward PayDay();
OnGameModeInit:

pawn Код:
SetTimer("PayDay", 2400000,    true);
Final do GameMode

pawn Код:
public PayDay() {
    for(new i = 0; i < MAX_PLAYERS; i++) {
    if(IsPlayerConnected(i)) {
        PlayerPlaySound(i,1057, 0.0, 0.0, 0.0);
        SetPlayerScore(i, GetPlayerScore(i) + 1);
        GivePlayerMoney(i, 1000);
        GameTextForPlayer(i, "Pagamento.. Level UP", 4000, 1);
        } }
    return 1;
}



Re: sistema de Score. - xxRaioxx - 09.07.2013

Obrigado sem erros vou testar em minha GameMode.

@EDIT tem jeito de colocar o score em TextDraw?


Re: sistema de Score. - DarckWilly - 09.07.2013

Quote:
Originally Posted by BieeelEvolution
Посмотреть сообщение
pawn Код:
forward PayDay();

SetTimer("PayDay", 2400000,    true);

public PayDay() {
    for(new i = 0; i < MAX_PLAYERS; i++) {
    if(IsPlayerConnected(i)) {
        PlayerPlaySound(i,1057, 0.0, 0.0, 0.0);
        SetPlayerScore(i, GetPlayerScore(i) + 1);
        GivePlayerMoney(i, 1000);
        GameTextForPlayer(i, "Pagamento.. Level UP", 4000, 1);
        } }
    return 1;
}
qualquer erro contate-me!
Amigo, nгo sei se podes ajudar-me, mas й que eu experimentei o teu sistema payday e nгo recebo dinheiro nem score. Compilou direito, mas nгo funciona em no jogo. Jб experimentei outros sistemas payday e foi a mesma coisa.

Ps:Eu coloquei 10000 (10 segundos) no settimer sу para experimentar e para ser mais rapido a experimentaзгo.

EDIT: Jб estб resolvido! Creio que algo bugou.


Re: sistema de Score. - xxRaioxx - 09.07.2013

Nгo precisa explicar o TextDraw elaborei um e funcionou.

@EDIT 1: Tem como colocar um sistema de salvamento do nнvel?


Re: sistema de Score. - DarckWilly - 09.07.2013

Quote:
Originally Posted by xxRaioxx
Посмотреть сообщение
Nгo precisa explicar o TextDraw elaborei um e funcionou.

@EDIT 1: Tem como colocar um sistema de salvamento do nнvel?
Use o DOF2. Vб a este tutorial: aqui ele й uma base.