#define HEROI 1
#define VILAO 2
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);
//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);
}
}
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);
valeu rjj mas aki eu ainda deixo o isso assim:
pawn Code:
Sei qe o numero ta diferente pode ficar tranquilo eu editei no codigo todo ![]() |