hiho
mein textdraw wird nicht angezeigt sowohl beim spawn nicht und beim command auch nicht codes:
News:
new Text:LSPD0;
new Text:FBI1;
new Text:Yakuza2;
new Text:Renegade3;
new Text:Ballas4;
OnGameModeInit:
LSPD0 = TextDrawCreate(92.000000, 224.000000, "LSPD");
TextDrawAlignment(LSPD0, 3);
TextDrawBackgroundColor(LSPD0, 255);
TextDrawFont(LSPD0, 1);
TextDrawLetterSize(LSPD0, 0.360000, 1.100000);
TextDrawColor(LSPD0, -1);
TextDrawSetOutline(LSPD0, 0);
TextDrawSetProportional(LSPD0, 1);
TextDrawSetShadow(LSPD0, 1);
TextDrawUseBox(LSPD0, 1);
TextDrawBoxColor(LSPD0, 80);
TextDrawTextSize(LSPD0, 105.000000, 0.000000);
FBI1 = TextDrawCreate(92.000000, 237.500000, "FBI");
TextDrawAlignment(FBI1, 3);
TextDrawBackgroundColor(FBI1, 255);
TextDrawFont(FBI1, 1);
TextDrawLetterSize(FBI1, 0.360000, 1.100000);
TextDrawColor(FBI1, -1);
TextDrawSetOutline(FBI1, 0);
TextDrawSetProportional(FBI1, 1);
TextDrawSetShadow(FBI1, 1);
TextDrawUseBox(FBI1, 1);
TextDrawBoxColor(FBI1, 80);
TextDrawTextSize(FBI1, 105.000000, 0.000000);
Yakuza2 = TextDrawCreate(92.000000, 250.500000, "Yakuza");
TextDrawAlignment(Yakuza2, 3);
TextDrawBackgroundColor(Yakuza2, 255);
TextDrawFont(Yakuza2, 1);
TextDrawLetterSize(Yakuza2, 0.360000, 1.100000);
TextDrawColor(Yakuza2, -1);
TextDrawSetOutline(Yakuza2, 0);
TextDrawSetProportional(Yakuza2, 1);
TextDrawSetShadow(Yakuza2, 1);
TextDrawUseBox(Yakuza2, 1);
TextDrawBoxColor(Yakuza2, 80);
TextDrawTextSize(Yakuza2, 105.000000, 0.000000);
Renegade3 = TextDrawCreate(92.000000, 264.000000, "Renegade");
TextDrawAlignment(Renegade3, 3);
TextDrawBackgroundColor(Renegade3, 255);
TextDrawFont(Renegade3, 1);
TextDrawLetterSize(Renegade3, 0.360000, 1.100000);
TextDrawColor(Renegade3, -1);
TextDrawSetOutline(Renegade3, 0);
TextDrawSetProportional(Renegade3, 1);
TextDrawSetShadow(Renegade3, 1);
TextDrawUseBox(Renegade3, 1);
TextDrawBoxColor(Renegade3, 80);
TextDrawTextSize(Renegade3, 105.000000, 0.000000);
Ballas4 = TextDrawCreate(92.000000, 277.000000, "Ballas");
TextDrawAlignment(Ballas4, 3);
TextDrawBackgroundColor(Ballas4, 255);
TextDrawFont(Ballas4, 1);
TextDrawLetterSize(Ballas4, 0.360000, 1.100000);
TextDrawColor(Ballas4, -1);
TextDrawSetOutline(Ballas4, 0);
TextDrawSetProportional(Ballas4, 1);
TextDrawSetShadow(Ballas4, 1);
TextDrawUseBox(Ballas4, 1);
TextDrawBoxColor(Ballas4, 80);
TextDrawTextSize(Ballas4, 105.000000, 0.000000);
OnPlayerSpawn:
if(PlayerInfo[playerid][pJob] == 1)
{
TextDrawShowForPlayer(playerid, LSPD0);
TextDrawShowForPlayer(playerid, FBI1);
TextDrawShowForPlayer(playerid, Yakuza2);
TextDrawShowForPlayer(playerid, Renegade3);
TextDrawShowForPlayer(playerid, Ballas4);
}
OnPlayerCommandText:
if (strcmp(cmdtext, "/show", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJob] == 1)
{
if(show[playerid] == 0)
{
TextDrawShowForPlayer(playerid, LSPD0);
TextDrawShowForPlayer(playerid, FBI1);
TextDrawShowForPlayer(playerid, Yakuza2);
TextDrawShowForPlayer(playerid, Renegade3);
TextDrawShowForPlayer(playerid, Ballas4);
show[playerid]++;
}
if(show[playerid] >= 1)
{
TextDrawHideForPlayer(playerid, LSPD0);
TextDrawHideForPlayer(playerid, FBI1);
TextDrawHideForPlayer(playerid, Yakuza2);
TextDrawHideForPlayer(playerid, Renegade3);
TextDrawHideForPlayer(playerid, Ballas4);
show[playerid]--;
}
}
}
}