16.05.2014, 19:19
eu tenho um problema quando vou selecionar o textdraw, ele nao da para clicar
criaзao dos textdraw
Callback para selecionar
criaзao dos textdraw
pawn Код:
PTextdraw[playerid][4] = CreatePlayerTextDraw(playerid,**, **, "_");
PlayerTextDrawBackgroundColor(playerid,PTextdraw[playerid][4], 255);
PlayerTextDrawFont(playerid,PTextdraw[playerid][4], 1);
PlayerTextDrawLetterSize(playerid,PTextdraw[playerid][4], 0.500000, 14.799999);
PlayerTextDrawColor(playerid,PTextdraw[playerid][4], -1);
PlayerTextDrawSetOutline(playerid,PTextdraw[playerid][4], 0);
PlayerTextDrawSetProportional(playerid,PTextdraw[playerid][4], 1);
PlayerTextDrawSetShadow(playerid,PTextdraw[playerid][4], 1);
PlayerTextDrawUseBox(playerid,PTextdraw[playerid][4], 1);
PlayerTextDrawBoxColor(playerid,PTextdraw[playerid][4], 136);
PlayerTextDrawTextSize(playerid,PTextdraw[playerid][4], 450.000000, 10.000000);
PlayerTextDrawSetSelectable(playerid,PTextdraw[playerid][4], 0);
PTextdraw[playerid][5] = CreatePlayerTextDraw(playerid,**, **, "Loja - Armas");
PlayerTextDrawBackgroundColor(playerid,PTextdraw[playerid][5], 255);
PlayerTextDrawFont(playerid,PTextdraw[playerid][5], 2);
PlayerTextDrawLetterSize(playerid,PTextdraw[playerid][5], 0.429999, 3.199999);
PlayerTextDrawColor(playerid,PTextdraw[playerid][5], 754265343);
PlayerTextDrawSetOutline(playerid,PTextdraw[playerid][5], 0);
PlayerTextDrawSetProportional(playerid,PTextdraw[playerid][5], 1);
PlayerTextDrawSetShadow(playerid,PTextdraw[playerid][5], 1);
PlayerTextDrawSetSelectable(playerid,PTextdraw[playerid][5], 0);
PTextdraw[playerid][6] = CreatePlayerTextDraw(playerid,**,**, "Nome");
PlayerTextDrawAlignment(playerid,PTextdraw[playerid][6], 2);
PlayerTextDrawBackgroundColor(playerid,PTextdraw[playerid][6], 255);
PlayerTextDrawFont(playerid,PTextdraw[playerid][6], 2);
PlayerTextDrawLetterSize(playerid,PTextdraw[playerid][6], 0.299999, 2.899999);
PlayerTextDrawColor(playerid,PTextdraw[playerid][6], -1);
PlayerTextDrawSetOutline(playerid,PTextdraw[playerid][6], 0);
PlayerTextDrawSetProportional(playerid,PTextdraw[playerid][6], 1);
PlayerTextDrawSetShadow(playerid,PTextdraw[playerid][6], 1);
PlayerTextDrawSetSelectable(playerid,PTextdraw[playerid][6], 0);
PTextdraw[playerid][7] = CreatePlayerTextDraw(playerid,**, **, "~<~");
PlayerTextDrawBackgroundColor(playerid,PTextdraw[playerid][7], 255);
PlayerTextDrawFont(playerid,PTextdraw[playerid][7], 1);
PlayerTextDrawLetterSize(playerid,PTextdraw[playerid][7], 0.709999, 2.399999);
PlayerTextDrawColor(playerid,PTextdraw[playerid][7], -1);
PlayerTextDrawSetOutline(playerid,PTextdraw[playerid][7], 0);
PlayerTextDrawSetProportional(playerid,PTextdraw[playerid][7], 1);
PlayerTextDrawSetShadow(playerid,PTextdraw[playerid][7], 1);
PlayerTextDrawUseBox(playerid,PTextdraw[playerid][7], 1);
PlayerTextDrawBoxColor(playerid,PTextdraw[playerid][7], 0);
PlayerTextDrawTextSize(playerid,PTextdraw[playerid][7], 480.000000, 0.000000);
PlayerTextDrawSetSelectable(playerid,PTextdraw[playerid][7], 1);
PTextdraw[playerid][8] = CreatePlayerTextDraw(playerid,**, **, "~>~");
PlayerTextDrawBackgroundColor(playerid,PTextdraw[playerid][8], 255);
PlayerTextDrawFont(playerid,PTextdraw[playerid][8], 1);
PlayerTextDrawLetterSize(playerid,PTextdraw[playerid][8], 0.709999, 2.399999);
PlayerTextDrawColor(playerid,PTextdraw[playerid][8], -1);
PlayerTextDrawSetOutline(playerid,PTextdraw[playerid][8], 0);
PlayerTextDrawSetProportional(playerid,PTextdraw[playerid][8], 1);
PlayerTextDrawSetShadow(playerid,PTextdraw[playerid][8], 1);
PlayerTextDrawUseBox(playerid,PTextdraw[playerid][8], 1);
PlayerTextDrawBoxColor(playerid,PTextdraw[playerid][8], 0);
PlayerTextDrawTextSize(playerid,PTextdraw[playerid][8], 620.000000, 0.000000);
PlayerTextDrawSetSelectable(playerid,PTextdraw[playerid][8], 1);
PTextdraw[playerid][9] = CreatePlayerTextDraw(playerid,**, **, "Dias: ~w~1");
PlayerTextDrawBackgroundColor(playerid,PTextdraw[playerid][9], 255);
PlayerTextDrawFont(playerid,PTextdraw[playerid][9], 2);
PlayerTextDrawLetterSize(playerid,PTextdraw[playerid][9], 0.420000, 2.100000);
PlayerTextDrawColor(playerid,PTextdraw[playerid][9], 754265343);
PlayerTextDrawSetOutline(playerid,PTextdraw[playerid][9], 0);
PlayerTextDrawSetProportional(playerid,PTextdraw[playerid][9], 1);
PlayerTextDrawSetShadow(playerid,PTextdraw[playerid][9], 1);
PlayerTextDrawSetSelectable(playerid,PTextdraw[playerid][9], 0);
PTextdraw[playerid][10] = CreatePlayerTextDraw(playerid,563.000000, 200.000000, "~<~");
PlayerTextDrawBackgroundColor(playerid,PTextdraw[playerid][10], 255);
PlayerTextDrawFont(playerid,PTextdraw[playerid][10], 1);
PlayerTextDrawLetterSize(playerid,PTextdraw[playerid][10], 0.589999, 1.900000);
PlayerTextDrawColor(playerid,PTextdraw[playerid][10], -1);
PlayerTextDrawSetOutline(playerid,PTextdraw[playerid][10], 0);
PlayerTextDrawSetProportional(playerid,PTextdraw[playerid][10], 1);
PlayerTextDrawSetShadow(playerid,PTextdraw[playerid][10], 1);
PlayerTextDrawUseBox(playerid,PTextdraw[playerid][10], 1);
PlayerTextDrawBoxColor(playerid,PTextdraw[playerid][10], 0);
PlayerTextDrawTextSize(playerid,PTextdraw[playerid][10], 579.000000, 0.000000);
PlayerTextDrawSetSelectable(playerid,PTextdraw[playerid][10], 1);
PTextdraw[playerid][11] = CreatePlayerTextDraw(playerid,**, **, "~>~");
PlayerTextDrawBackgroundColor(playerid,PTextdraw[playerid][11], 255);
PlayerTextDrawFont(playerid,PTextdraw[playerid][11], 1);
PlayerTextDrawLetterSize(playerid,PTextdraw[playerid][11], 0.589999, 1.900000);
PlayerTextDrawColor(playerid,PTextdraw[playerid][11], -1);
PlayerTextDrawSetOutline(playerid,PTextdraw[playerid][11], 0);
PlayerTextDrawSetProportional(playerid,PTextdraw[playerid][11], 1);
PlayerTextDrawSetShadow(playerid,PTextdraw[playerid][11], 1);
PlayerTextDrawUseBox(playerid,PTextdraw[playerid][11], 1);
PlayerTextDrawBoxColor(playerid,PTextdraw[playerid][11], 0);
PlayerTextDrawTextSize(playerid,PTextdraw[playerid][11], 605.000000, 0.000000);
PlayerTextDrawSetSelectable(playerid,PTextdraw[playerid][11], 1);
PTextdraw[playerid][12] = CreatePlayerTextDraw(playerid,**, **, "Preco: ~w~0 $ ou Coins");
PlayerTextDrawBackgroundColor(playerid,PTextdraw[playerid][12], 255);
PlayerTextDrawFont(playerid,PTextdraw[playerid][12], 2);
PlayerTextDrawLetterSize(playerid,PTextdraw[playerid][12], 0.420000, 2.100000);
PlayerTextDrawColor(playerid,PTextdraw[playerid][12], 754265343);
PlayerTextDrawSetOutline(playerid,PTextdraw[playerid][12], 0);
PlayerTextDrawSetProportional(playerid,PTextdraw[playerid][12], 1);
PlayerTextDrawSetShadow(playerid,PTextdraw[playerid][12], 1);
PlayerTextDrawSetSelectable(playerid,PTextdraw[playerid][12], 0);
PTextdraw[playerid][13] = CreatePlayerTextDraw(playerid,**, **, "Comprar");
PlayerTextDrawBackgroundColor(playerid,PTextdraw[playerid][13], 255);
PlayerTextDrawFont(playerid,PTextdraw[playerid][13], 1);
PlayerTextDrawLetterSize(playerid,PTextdraw[playerid][13], 0.509999, 1.899999);
PlayerTextDrawColor(playerid,PTextdraw[playerid][13], -1);
PlayerTextDrawSetOutline(playerid,PTextdraw[playerid][13], 0);
PlayerTextDrawSetProportional(playerid,PTextdraw[playerid][13], 1);
PlayerTextDrawSetShadow(playerid,PTextdraw[playerid][13], 1);
PlayerTextDrawUseBox(playerid,PTextdraw[playerid][13], 1);
PlayerTextDrawBoxColor(playerid,PTextdraw[playerid][13], 255);
PlayerTextDrawTextSize(playerid,PTextdraw[playerid][13], 532.000000, 0.000000);
PlayerTextDrawSetSelectable(playerid,PTextdraw[playerid][13], 1);
PTextdraw[playerid][14] = CreatePlayerTextDraw(playerid,**, **, "Cancelar");
PlayerTextDrawBackgroundColor(playerid,PTextdraw[playerid][14], 255);
PlayerTextDrawFont(playerid,PTextdraw[playerid][14], 1);
PlayerTextDrawLetterSize(playerid,PTextdraw[playerid][14], 0.509999, 1.899999);
PlayerTextDrawColor(playerid,PTextdraw[playerid][14], -1);
PlayerTextDrawSetOutline(playerid,PTextdraw[playerid][14], 0);
PlayerTextDrawSetProportional(playerid,PTextdraw[playerid][14], 1);
PlayerTextDrawSetShadow(playerid,PTextdraw[playerid][14], 1);
PlayerTextDrawUseBox(playerid,PTextdraw[playerid][14], 1);
PlayerTextDrawBoxColor(playerid,PTextdraw[playerid][14], 255);
PlayerTextDrawTextSize(playerid,PTextdraw[playerid][14], 619.000000, 0.000000);
PlayerTextDrawSetSelectable(playerid,PTextdraw[playerid][14], 1);
pawn Код:
forward PlayerGunsShop(playerid,bool:mostrar);
public PlayerGunsShop(playerid,bool:mostrar)
{
if(PlayerInfo[playerid][Logged])
{
if(mostrar)
{
PlayerTextDrawShow(playerid,PTextdraw[playerid][4]);
PlayerTextDrawShow(playerid,PTextdraw[playerid][5]);
PlayerTextDrawShow(playerid,PTextdraw[playerid][6]);
PlayerTextDrawSetString(playerid,PTextdraw[playerid][6],"Dealge");
PlayerTextDrawShow(playerid,PTextdraw[playerid][7]);
PlayerTextDrawShow(playerid,PTextdraw[playerid][8]);
PlayerTextDrawShow(playerid,PTextdraw[playerid][9]);
PlayerTextDrawSetString(playerid,PTextdraw[playerid][6],"1");
PlayerTextDrawShow(playerid,PTextdraw[playerid][10]);
PlayerTextDrawShow(playerid,PTextdraw[playerid][11]);
PlayerTextDrawShow(playerid,PTextdraw[playerid][12]);
PlayerTextDrawSetString(playerid,PTextdraw[playerid][12],"Preco: ~w~2000$");
PlayerTextDrawShow(playerid,PTextdraw[playerid][13]);
PlayerTextDrawShow(playerid,PTextdraw[playerid][14]);
SelectTextDraw(playerid,0x2CF52CFF);
}
else
{
PlayerTextDrawHide(playerid,PTextdraw[playerid][4]);
PlayerTextDrawHide(playerid,PTextdraw[playerid][5]);
PlayerTextDrawHide(playerid,PTextdraw[playerid][6]);
PlayerTextDrawHide(playerid,PTextdraw[playerid][7]);
PlayerTextDrawHide(playerid,PTextdraw[playerid][8]);
PlayerTextDrawHide(playerid,PTextdraw[playerid][9]);
PlayerTextDrawHide(playerid,PTextdraw[playerid][10]);
PlayerTextDrawHide(playerid,PTextdraw[playerid][11]);
PlayerTextDrawHide(playerid,PTextdraw[playerid][12]);
PlayerTextDrawHide(playerid,PTextdraw[playerid][13]);
PlayerTextDrawHide(playerid,PTextdraw[playerid][14]);
CancelSelectTextDraw(playerid);
}
}
}