22.06.2013, 16:42
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);