walwer96
Wiek: 30 Na forum: 3957 dni Posty: 9
Nick w MP: walwer96
Witam mam problem z rozjasnianiem textdrawu ... chce by rozja?nia? si? lecz jest tylko czarny kolor i nic sie nie zmienia ..
kod: Kod: new screen[MAX_PLAYERS];
new blackscreen[MAX_PLAYERS];
new Text:Textdraw0;
forward BlackScreenx(playerid);
public BlackScreenx(playerid)
{
switch(screen[playerid]){
case 10:TextDrawColor(Textdraw0,0x00000092);
case 9: TextDrawColor(Textdraw0,0x00000082);
case 8: TextDrawColor(Textdraw0,0x00000072);
case 7: TextDrawColor(Textdraw0,0x00000062);
case 6: TextDrawColor(Textdraw0,0x00000052);
case 5: TextDrawColor(Textdraw0,0x00000042);
case 4: TextDrawColor(Textdraw0,0x00000032);
case 3: TextDrawColor(Textdraw0,0x00000022);
case 2: TextDrawColor(Textdraw0,0x00000012);
case 1: TextDrawColor(Textdraw0,0x00000007);
case 0: TextDrawColor(Textdraw0,0x00000002);
}
screen[playerid]--;
if(screen[playerid]==0) KillTimer(blackscreen[playerid]);
return 1;
}
public OnPlayerConnect(playerid)
{
screen[playerid] = 11;
TextDrawShowForPlayer(playerid,Textdraw0);
TextDrawColor(Textdraw0,0x00000099);
blackscreen[playerid] = SetTimerEx("BlackScreenx",300,true,"i",playerid);
// dalszy kod
textdraw:
Textdraw0 = TextDrawCreate(-xxxxxxx, -xxxxxx, "LD_SPAC:white");
TextDrawLetterSize(Textdraw0, 0.000000, 0.000000);
TextDrawTextSize(Textdraw0, xxxxxxxxxx, xxxxxxxxx);
TextDrawAlignment(Textdraw0, 1);
TextDrawColor(Textdraw0, 0x000000FF);
TextDrawSetShadow(Textdraw0, 0);
TextDrawSetOutline(Textdraw0, 0);
TextDrawFont(Textdraw0, 4);