PlayerData[playerid][pTextdraws][93] = CreatePlayerTextDraw(playerid,152.799972, 166.506622, "~>~");
PlayerTextDrawLetterSize(playerid, PlayerData[playerid][pTextdraws][93], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, PlayerData[playerid][pTextdraws][93], 1);
PlayerTextDrawColor(playerid, PlayerData[playerid][pTextdraws][93], -1);
PlayerTextDrawSetShadow(playerid, PlayerData[playerid][pTextdraws][93], 0);
PlayerTextDrawSetOutline(playerid, PlayerData[playerid][pTextdraws][93], 1);
PlayerTextDrawBackgroundColor(playerid, PlayerData[playerid][pTextdraws][93], 51);
PlayerTextDrawFont(playerid, PlayerData[playerid][pTextdraws][93], 1);
PlayerTextDrawSetProportional(playerid, PlayerData[playerid][pTextdraws][93], 1);
PlayerTextDrawSetSelectable(playerid, PlayerData[playerid][pTextdraws][93], 1);
PlayerData[playerid][pTextdraws][106] = CreatePlayerTextDraw(playerid,77.599960, 167.253295, "Sexe");
PlayerTextDrawLetterSize(playerid, PlayerData[playerid][pTextdraws][106], 0.334798, 1.555199);
PlayerTextDrawAlignment(playerid, PlayerData[playerid][pTextdraws][106], 1);
PlayerTextDrawColor(playerid, PlayerData[playerid][pTextdraws][106], -1);
PlayerTextDrawSetShadow(playerid, PlayerData[playerid][pTextdraws][106], 0);
PlayerTextDrawSetOutline(playerid, PlayerData[playerid][pTextdraws][106], 1);
PlayerTextDrawBackgroundColor(playerid, PlayerData[playerid][pTextdraws][106], 51);
PlayerTextDrawFont(playerid, PlayerData[playerid][pTextdraws][106], 1);
PlayerTextDrawSetProportional(playerid, PlayerData[playerid][pTextdraws][106], 1);
if (playertextid == PlayerData[playerid][pTextdraws][93]) // Homme ou femme
{
switch (p_inscription[playerid])
{
case 0: {
PlayerTextDrawSetString(playerid, PlayerData[playerid][pTextdraws][106], "~r~Sexe:~w~ Homme");
}
case 1:{
PlayerTextDrawSetString(playerid, PlayerData[playerid][pTextdraws][106], "~r~Sexe:~w~ Femme");
}
}
PlayerData[playerid][pGender] = p_inscription[playerid] + 1;
PlayerData[playerid][pSkin] = (p_inscription[playerid]) ? (233) : (98);
SetPlayerSkin(playerid, PlayerData[playerid][pSkin]);
}
if (playertextid == PlayerData[playerid][pTextdraws][96])
{
ChooseSkin(playerid, true); // 1 а droite
}
if (playertextid == PlayerData[playerid][pTextdraws][96])
{
SendClientMessage(playerid, COLOR_LIGHTRED, "96");
}
I dont see any selectable options in your code so here you are;
https://sampwiki.blast.hk/wiki/TextDrawSetSelectable https://sampwiki.blast.hk/wiki/OnPlayerClickTextDraw good luck |