Quote:
Originally Posted by Whoo
E e TextDraw que esta sumindo? manda o cуdigo, verifique os loop
|
Sim й a textdraw,
Em OnPlayerConnect
Код:
SelectTextDraw(playerid,0x00FF00FF);
for(new i = 0; i < sizeof(TextoNewLogin); i++)
{
TextDrawShowForPlayer(playerid, TextoNewLogin[i]);
}
Em OnPlayerCommandText
Код:
if(!strcmp(cmdtext, "/meunewcomando", true))
{
SelectTextDraw(playerid, 0xFFFF00FF);
for(new i = 0; i < sizeof(TextoNewLogin); i++)
{
TextDrawShowForPlayer(playerid, TextoNewLogin[i]);
}
SendClientMessage(playerid, 0xFFFFFFFF, "Executado");
return 1;
}
Em OnPlayerClickTextDraw
Код:
if(clickedid == TextoNewLogin[playerid]) // New Login // NOVOLOGIN
{
new AndrePorra;
ShowPlayerDialog(playerid, AndrePorra, DIALOG_STYLE_MSGBOX, "Weapons", "AK47\nM4\nSniper Rifle", "Fechar", "");
SendClientMessage(playerid, TEAM_VAGOS_COLOR, "TESTESTE!");
//EsconderTexts(playerid);
return 1;
}
return 1;
}
stock EsconderTexts(playerid)
{
for(new T = 0; T < 1; T++){
TextDrawHideForPlayer(playerid,TextoNewLogin[playerid][T]);
}
CancelSelectTextDraw(playerid); // Funзгo para voltar o mouse ao normal
return 1;
}
no topo new Text:TextoNewLogin[MAX_PLAYERS];
em OnPlayerConnect
Код:
TextoNewLogin[i] = TextDrawCreate(10.000000, 139.000000, "ENTRAR");
TextDrawBackgroundColor(TextoNewLogin[i], 255);
TextDrawFont(TextoNewLogin[i], 1);
TextDrawLetterSize(TextoNewLogin[i], 0.500000, 2.000000);
TextDrawColor(TextoNewLogin[i], -1);
TextDrawSetOutline(TextoNewLogin[i], 0);
TextDrawSetProportional(TextoNewLogin[i], 1);
TextDrawSetShadow(TextoNewLogin[i], 1);
TextDrawUseBox(TextoNewLogin[i], 1);
TextDrawBoxColor(TextoNewLogin[i], 255);
TextDrawTextSize(TextoNewLogin[i], 71.000000, 10.000000);
TextDrawSetSelectable(TextoNewLogin[i], true); // Opзгo 1