15.10.2011, 17:28
Hey guys,
Im currencly trying to get my textdraws working, but i kinda got stuck.
Atm, i got 2 textdraws. One which should show your kills & deaths, and the other one is for the time left in the round. Now, its only showing ONE textdraw. The kills/deaths one. Ive created both of them, they (should) be visible, since im showing them when the player spawns. Is this a bug, or is it just how im scripting it?
Im currencly trying to get my textdraws working, but i kinda got stuck.
Atm, i got 2 textdraws. One which should show your kills & deaths, and the other one is for the time left in the round. Now, its only showing ONE textdraw. The kills/deaths one. Ive created both of them, they (should) be visible, since im showing them when the player spawns. Is this a bug, or is it just how im scripting it?
pawn Код:
//OnGameModeInit
TimeLeft = TextDrawCreate(496.000000, 0.000000, "Time left: ~b~10:00");
TextDrawBackgroundColor(TimeLeft, 255);
TextDrawFont(TimeLeft, 1);
TextDrawLetterSize(TimeLeft, 0.400000, 2.099999);
TextDrawColor(TimeLeft, -1);
TextDrawSetOutline(TimeLeft, 0);
TextDrawSetProportional(TimeLeft, 1);
TextDrawSetShadow(TimeLeft, 1);
TextDrawHideForAll(TimeLeft);
//OnPlayerConnect
MyKills[playerid] = TextDrawCreate(538.000000, 406.000000, "Kills: ~g~99 ~n~~w~Deaths: ~g~99");
TextDrawBackgroundColor(MyKills[playerid], 255);
TextDrawFont(MyKills[playerid], 1);
TextDrawLetterSize(MyKills[playerid], 0.509999, 1.700000);
TextDrawColor(MyKills[playerid], -1);
TextDrawSetOutline(MyKills[playerid], 0);
TextDrawSetProportional(MyKills[playerid], 1);
TextDrawSetShadow(MyKills[playerid], 1);
TextDrawUseBox(MyKills[playerid], 1);
TextDrawBoxColor(MyKills[playerid], 120);
TextDrawTextSize(MyKills[playerid], 630.000000, 0.000000);
TextDrawHideForPlayer(playerid, MyKills[playerid]);
TextDrawShowForPlayer( playerid, TimeLeft );
//OnPlayerSpawn
TextDrawShowForPlayer( playerid, MyKills[playerid] );