[PEDIDO]Pontuaзгo
#1

Gente meu gm de tdm esta definido em 2 times sendo eles 1 de herois e o segundo viloes
fico assim:
pawn Code:
#define HEROI 1
#define VILAO 2
ae tipo eu fiz um textdraw (pra poupar tempo) para aparecer a pontuaзгo dos times la em cima :

ae tipo ele nao tem sistema de pontuaзгo de times alguem poderia fazer pra min
ta ae a textdraw :
pawn Code:
Textdraw0 = TextDrawCreate(206.000000, 23.000000, "Herois:");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 3);
TextDrawLetterSize(Textdraw0, 0.619999, 1.199999);
TextDrawColor(Textdraw0, 65535);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);

Textdraw1 = TextDrawCreate(336.000000, 23.000000, "Viloes:");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 3);
TextDrawLetterSize(Textdraw1, 0.619999, 1.199999);
TextDrawColor(Textdraw1, -16776961);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);

Textdraw2 = TextDrawCreate(283.000000, 18.000000, "100");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 2);
TextDrawLetterSize(Textdraw2, 0.509999, 2.000000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);

Textdraw3 = TextDrawCreate(410.000000, 18.000000, "100");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 2);
TextDrawLetterSize(Textdraw3, 0.509999, 2.000000);
TextDrawColor(Textdraw3, -1);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);
Muito Obrigado Pela sua atenзгo
Reply
#2

OnPlayerDeath(..) {
if(Team[killerid] == HEROI) {
heroiScore++;
} else {
vilaoScore++;
}
}
facepalm
Reply
#3

e como coloco isso no textdraw ?? explica ae man
Reply
#4

textdrawsetstring...
Reply
#5

po alguem podia ajudar de verdade ae man -,-'
Reply
#6

up...e tao dificil isso ?
Reply
#7

Fiz o sistema para vocк .


Coloque :


pawn Code:
//No Topo do GM:

new Pontos[2];


//No OnPlayerRequestClass:

TextDrawShowForPlayer(playerid, Textdraw0);
    TextDrawShowForPlayer(playerid, Textdraw1);
    TextDrawShowForPlayer(playerid, Textdraw2);
    TextDrawShowForPlayer(playerid, Textdraw3);



//E, por fim, no OnPlayerDeath:

new STR[5];
    switch(GetPlayerTeam(killerid)) //Se vocк nгo usar SetPlayerTeam, troque GetPlayerTeam(killerid) pela variбvel que contйm o nъmero da equipe do jogador de ID killerid.
    {
        case HEROI:
        {
            Pontos[0] += 1;
            format(STR, 5, "%03d", Pontos[0]);
            TextDrawSetString(Textdraw2, STR);
        }
        case VILAO:
        {
            Pontos[1] += 1;
            format(STR, 5, "%03d", Pontos[1]);
            TextDrawSetString(Textdraw3, STR);
        }
    }


Espero ter ajudado .
Reply
#8

valeu rjj mas aki eu ainda deixo o isso assim:
pawn Code:
Textdraw10 = TextDrawCreate(283.000000, 18.000000, "100");
TextDrawBackgroundColor(Textdraw10, 255);
TextDrawFont(Textdraw10, 2);
TextDrawLetterSize(Textdraw10, 0.509999, 2.000000);
TextDrawColor(Textdraw10, -1);
TextDrawSetOutline(Textdraw10, 0);
TextDrawSetProportional(Textdraw10, 1);
TextDrawSetShadow(Textdraw10, 1);

Textdraw11 = TextDrawCreate(410.000000, 18.000000, "100");
TextDrawBackgroundColor(Textdraw11, 255);
TextDrawFont(Textdraw11, 2);
TextDrawLetterSize(Textdraw11, 0.509999, 2.000000);
TextDrawColor(Textdraw11, -1);
TextDrawSetOutline(Textdraw11, 0);
TextDrawSetProportional(Textdraw11, 1);
TextDrawSetShadow(Textdraw11, 1);
assim ?
Sei qe o numero ta diferente pode ficar tranquilo eu editei no codigo todo
Reply
#9

Quote:
Originally Posted by makino
View Post
valeu rjj mas aki eu ainda deixo o isso assim:
pawn Code:
Textdraw10 = TextDrawCreate(283.000000, 18.000000, "100");
TextDrawBackgroundColor(Textdraw10, 255);
TextDrawFont(Textdraw10, 2);
TextDrawLetterSize(Textdraw10, 0.509999, 2.000000);
TextDrawColor(Textdraw10, -1);
TextDrawSetOutline(Textdraw10, 0);
TextDrawSetProportional(Textdraw10, 1);
TextDrawSetShadow(Textdraw10, 1);

Textdraw11 = TextDrawCreate(410.000000, 18.000000, "100");
TextDrawBackgroundColor(Textdraw11, 255);
TextDrawFont(Textdraw11, 2);
TextDrawLetterSize(Textdraw11, 0.509999, 2.000000);
TextDrawColor(Textdraw11, -1);
TextDrawSetOutline(Textdraw11, 0);
TextDrawSetProportional(Textdraw11, 1);
TextDrawSetShadow(Textdraw11, 1);
assim ?
Sei qe o numero ta diferente pode ficar tranquilo eu editei no codigo todo


Apenas troque todos os sнmbolos: Textdraw2 do que cуdigo que postei por Textdraw10 e Textdraw3 por Textdraw11 .



Isso porque aquele sistema detecta os Textdraws atravйs de seus IDs, que ficam nas variбveis que sгo igualadas ao TextDrawCreate de cada um .



Espero ter ajudado .
Reply
#10

ok agora e esperar algum colega entrar no msn para testar vlw rjj + rep para vocк
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)