[Ajuda] textdraw nгo aparece pq ?
#1

pawn Код:
//topo gm:
new DefenderSkin;

//OnGameModeInit

    DefenderSkin = TextDrawCreate(475.000000, 315.000000, "_");
    TextDrawBackgroundColor(DefenderText,0xFF555555);
    TextDrawFont(DefenderSkin, 5);
    TextDrawLetterSize(DefenderSkin, 0.500000, 1.000000);
    TextDrawColor(DefenderSkin, -1);
    TextDrawSetOutline(DefenderSkin, 0);
    TextDrawSetProportional(DefenderSkin, 1);
    TextDrawSetShadow(DefenderSkin, 1);
    TextDrawUseBox(DefenderSkin, 1);
    TextDrawBoxColor(DefenderText,0x0000033);
    TextDrawTextSize(DefenderSkin, 133.000000, 141.000000);
    TextDrawSetPreviewModel(DefenderSkin, 278);
    TextDrawSetPreviewRot(DefenderSkin, 0.000000, 0.000000, 0.000000, 1.000000);
    TextDrawSetSelectable(DefenderSkin, 0);
//On player class

    TextDrawShowForPlayer(playerid, DefenderSkin);
Reply
#2

pawn Код:
new Text:DefenderSkin;
Reply
#3

Coloque em OnPlayerSpawn

pawn Код:
TextDrawShowForPlayer(playerid, DefenderSkin);
Reply
#4

pawn Код:
//topo gm
new Text:AttackerSkin;
new Text:DefenderSkin;
//on gamemode init
    AttackerSkin = TextDrawCreate(93.000000, 193.000000, "_");
    TextDrawBackgroundColor(AttackerSkin, 255);
    TextDrawFont(AttackerSkin, 5);
    TextDrawLetterSize(AttackerSkin, 0.500000, 1.000000);
    TextDrawColor(AttackerSkin, -1);
    TextDrawSetOutline(AttackerSkin, 0);
    TextDrawSetProportional(AttackerSkin, 1);
    TextDrawSetShadow(AttackerSkin, 1);
    TextDrawUseBox(AttackerSkin, 1);
    TextDrawBoxColor(AttackerSkin, 255);
    TextDrawTextSize(AttackerSkin, 133.000000, 141.000000);
    TextDrawSetPreviewModel(AttackerSkin, 170);
    TextDrawSetPreviewRot(AttackerSkin, 0.000000, 0.000000, 0.000000, 1.000000);
    TextDrawSetSelectable(AttackerSkin, 1);

    DefenderSkin = TextDrawCreate(415.000000, 193.000000, "_");
    TextDrawAlignment(DefenderSkin, 3);
    TextDrawBackgroundColor(DefenderSkin, 255);
    TextDrawFont(DefenderSkin, 5);
    TextDrawLetterSize(DefenderSkin, 0.500000, 1.000000);
    TextDrawColor(DefenderSkin, -1);
    TextDrawSetOutline(DefenderSkin, 0);
    TextDrawSetProportional(DefenderSkin, 1);
    TextDrawSetShadow(DefenderSkin, 1);
    TextDrawUseBox(DefenderSkin, 1);
    TextDrawBoxColor(DefenderSkin, 255);
    TextDrawTextSize(DefenderSkin, 119.000000, 141.000000);
    TextDrawSetPreviewModel(DefenderSkin, 176);
    TextDrawSetPreviewRot(DefenderSkin, 0.000000, 0.000000, 0.000000, 1.000000);
    TextDrawSetSelectable(DefenderSkin, 1);
//  On playerrequestspaawn
  TextDrawShowForPlayer(playerid, DefenderSkin);
    TextDrawShowForPlayer(playerid, AttackerSkin);
Nгo ta a dar
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)