SelectTextDraw(playerid,0x00FF00FF);
for(new i = 0; i < sizeof(TextoNewLogin); i++)
{
TextDrawShowForPlayer(playerid, TextoNewLogin[i]);
}
if(!strcmp(cmdtext, "/meunewcomando", true))
{
SelectTextDraw(playerid, 0xFFFF00FF);
for(new i = 0; i < sizeof(TextoNewLogin); i++)
{
TextDrawShowForPlayer(playerid, TextoNewLogin[i]);
}
SendClientMessage(playerid, 0xFFFFFFFF, "Executado");
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк nгo pode usar comandos, vocк estб sequestrado !");
return 1;
}
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;
}
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
ShowPlayerDialog(playerid, 5005, DIALOG_STYLE_MSGBOX, "Weapons", "AK47\nM4\nSniper Rifle", "Fechar", "");
|
Passei sу o olho, nгo tenho certeza se serб isso mas... seu dialogo esta sem ID.
PHP код:
|
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;
}
TextoNewLogin[playerid]
TextoNewLogin[ ID DA TEXTDRAW ]
TextDrawShowForPlayer(playerid, TextoNewLogin[playerid]);
SelectTextDraw(playerid,0x00FF00FF);