23.05.2014, 22:27
Buenas a todos xD, mi problema es que Haciendo TextDraw al momento de usar el comando para que me aparesca
el TextDraw aparece pero luego le paso el Mouse por arriba de los TextDraw y no me marca ni nada le doi Click y tampoco hace la funcion me podrian explicar por que ? les dejo Abajo mi Scripting
Si Consiguen el problema la cual no me deja hacer usar este TextDraw
hay ven que esta el AmmuNation9 que no esta para darle Click por que es el fondo que le puse
Saludos, Espero sus Ayudas
el TextDraw aparece pero luego le paso el Mouse por arriba de los TextDraw y no me marca ni nada le doi Click y tampoco hace la funcion me podrian explicar por que ? les dejo Abajo mi Scripting
pawn Код:
new
PlayerText:AmmuNations9[MAX_PLAYERS],
PlayerText:AmmuNations10[MAX_PLAYERS],
PlayerText:AmmuNations11[MAX_PLAYERS];
pawn Код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
if(_:playertextid != INVALID_TEXT_DRAW)
{
if(playertextid == AmmuNations10[ playerid ])
{
CancelSelectTextDraw(playerid);
QuitarTextAmmuNationsServidor(playerid);
if(GetPlayerMoney(playerid) >= 2000) return MensajeAlCliente(playerid, Rojo, "< Ammu > Usted no tiene suficiente dinero.");
MensajeAlCliente(playerid, Verde, "< Ammu > Usted compro: 9mm - 2000$.");
return 1;
}
if(playertextid == AmmuNations11[ playerid ])
{
CancelSelectTextDraw(playerid);
QuitarTextAmmuNationsServidor(playerid);
if(GetPlayerMoney(playerid) >= 3000) return MensajeAlCliente(playerid, Rojo, "< Ammu > Usted no tiene suficiente dinero.");
MensajeAlCliente(playerid, Verde, "< Ammu > Usted compro: Silenciadora - 3000$.");
return 1;
}
return 1;
}
return 0;
}
pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Text:INVALID_TEXT_DRAW)
{
QuitarTextAmmuNationsServidor(playerid);
return 1;
}
return 0;
}
pawn Код:
TextAmmuNationsServidor(playerid)
{
AmmuNations9[playerid] = CreatePlayerTextDraw(playerid,317.000000, 377.000000, "Blindajes");
PlayerTextDrawBackgroundColor(playerid,AmmuNations9[playerid], 0);
PlayerTextDrawFont(playerid,AmmuNations9[playerid], 2);
PlayerTextDrawLetterSize(playerid,AmmuNations9[playerid], 0.260000, 1.000000);
PlayerTextDrawColor(playerid,AmmuNations9[playerid], -1);
PlayerTextDrawSetOutline(playerid,AmmuNations9[playerid], 1);
PlayerTextDrawSetProportional(playerid,AmmuNations9[playerid], 1);
PlayerTextDrawUseBox(playerid,AmmuNations9[playerid], 1);
PlayerTextDrawBoxColor(playerid,AmmuNations9[playerid], 255);
PlayerTextDrawTextSize(playerid,AmmuNations9[playerid], 514.000000, -5.000000);
PlayerTextDrawSetSelectable(playerid, AmmuNations9[playerid], 0);
AmmuNations10[playerid] = CreatePlayerTextDraw(playerid,133.000000, 159.000000, "9mm - 2000$");
PlayerTextDrawBackgroundColor(playerid, AmmuNations10[playerid], 0);
PlayerTextDrawFont(playerid, AmmuNations10[playerid], 2);
PlayerTextDrawLetterSize(playerid, AmmuNations10[playerid], 0.259999, 1.000000);
PlayerTextDrawColor(playerid, AmmuNations10[playerid], -112);
PlayerTextDrawSetOutline(playerid, AmmuNations10[playerid], 1);
PlayerTextDrawSetProportional(playerid, AmmuNations10[playerid], 1);
PlayerTextDrawUseBox(playerid, AmmuNations10[playerid], 1);
PlayerTextDrawBoxColor(playerid, AmmuNations10[playerid], 96);
PlayerTextDrawTextSize(playerid, AmmuNations10[playerid], 273.000000, -5.000000);
PlayerTextDrawSetSelectable(playerid, AmmuNations10[playerid], 1);
AmmuNations11[playerid] = CreatePlayerTextDraw(playerid,133.000000, 177.000000, "Silenciadora - 3000$");
PlayerTextDrawBackgroundColor(playerid, AmmuNations11[playerid], 0);
PlayerTextDrawFont(playerid, AmmuNations11[playerid], 2);
PlayerTextDrawLetterSize(playerid, AmmuNations11[playerid], 0.259999, 1.000000);
PlayerTextDrawColor(playerid, AmmuNations11[playerid], -112);
PlayerTextDrawSetOutline(playerid, AmmuNations11[playerid], 1);
PlayerTextDrawSetProportional(playerid, AmmuNations11[playerid], 1);
PlayerTextDrawUseBox(playerid, AmmuNations11[playerid], 1);
PlayerTextDrawBoxColor(playerid, AmmuNations11[playerid], 96);
PlayerTextDrawTextSize(playerid, AmmuNations11[playerid], 273.000000, -5.000000);
PlayerTextDrawSetSelectable(playerid, AmmuNations11[playerid], 1);
return 1;
}
pawn Код:
ColocarTextAmmuNationsServidor(playerid)
{
PlayerTextDrawShow(playerid,AmmuNations9[playerid]);
PlayerTextDrawShow(playerid,AmmuNations10[playerid]);
PlayerTextDrawShow(playerid,AmmuNations11[playerid]);
SelectTextDraw(playerid, 0xFF000090);
return 1;
}
hay ven que esta el AmmuNation9 que no esta para darle Click por que es el fondo que le puse
Saludos, Espero sus Ayudas