[PEDIDO] Criaзгo de TextDraw
#7

pawn Код:
//ongamemodeinit
for(new i=0; i<MAX_PLAYERS; i++)
{
    TextdrawActualize[i] = TextDrawCreate(160.000000 , 360.000000, "-");
    TextDrawBackgroundColor(TextdrawActualize[i], 255);
    TextDrawFont(TextdrawActualize[i], 1);
    TextDrawLetterSize(TextdrawActualize[i], 0.300000, 1.000000);
    TextDrawColor(TextdrawActualize[i], -1);
    TextDrawSetOutline(TextdrawActualize[i], 1);
    TextDrawSetProportional(TextdrawActualize[i], 1);
    TextDrawSetShadow(TextdrawActualize[i], 1);
    TextDrawUseBox(TextdrawActualize[i], 0   );
    TextDrawBoxColor(TextdrawActualize[i], 255);
    TextDrawTextSize(TextdrawActualize[i], 620.000000, 0.000000);
}
stock UpdateStatusTextDraw(playerid)
{
    new pharrel[100], KillScore = ((pDataInfo[playerid][Matou]+pDataInfo[playerid][Kills])/10)%65999;;
    format(pharrel, sizeof(pharrel), "~w~Infos /score /vip:~n~Matou: %d~n~Morreu: %d~n Respeito: %d~n~Score: %d",
    pDataInfo[playerid][Matou]+pDataInfo[playerid][Kills],pDataInfo[playerid][Morreu]+ pDataInfo[playerid][Deaths],
    pDataInfo[playerid][Matou]+ pDataInfo[playerid][Kills]-(10*KillScore),KillScore + bd_ler_int(pName(playerid),"ExtraScore"));
    TextDrawSetString(TextdrawActualize[playerid], pharrel);
}

TextDrawHideForPlayer(playerid, TextdrawActualize[playerid]);//onplayerdisconnect
TextDrawShowForPlayer(playerid, TextdrawActualize[playerid]);//onplayerconnect
use "UpdateStatusTextDraw(playerid)" qdo o valor dos %d mudarem por exemplo qdo matar ou morrer ou mudar o respeito ou mudar o score
Reply


Messages In This Thread
[PEDIDO] Criaзгo de TextDraw - by Mattos - 19.10.2011, 02:04
Re: [PEDIDO] Criaзгo de TextDraw - by ViniBorn - 19.10.2011, 02:19
Re: [PEDIDO] Criaзгo de TextDraw - by Mattos - 19.10.2011, 02:23
Re: [PEDIDO] Criaзгo de TextDraw - by ViniBorn - 19.10.2011, 02:33
Re: [PEDIDO] Criaзгo de TextDraw - by Mattos - 19.10.2011, 02:46
Re: [PEDIDO] Criaзгo de TextDraw - by Mattos - 19.10.2011, 16:16
Re: [PEDIDO] Criaзгo de TextDraw - by Pharrel - 19.10.2011, 16:38
Re: [PEDIDO] Criaзгo de TextDraw - by Mattos - 19.10.2011, 17:36
Re: [PEDIDO] Criaзгo de TextDraw - by Pharrel - 19.10.2011, 17:39
Re: [PEDIDO] Criaзгo de TextDraw - by Mattos - 19.10.2011, 17:41

Forum Jump:


Users browsing this thread: 1 Guest(s)