if(dialogid == DIALOG_SEXE) { if(response) { if(listitem == 0) { PlayerInfo[playerid][pSex]=1;SetPlayerSkin(playerid, 26);PlayerInfo[playerid][pChar] = 26; format(MessageInscri, sizeof(MessageInscri), "Sexe: Homme"); PlayerTextDrawSetString(playerid, Creationperso[playerid][12], MessageInscri); PlayerTextDrawSetPreviewModel(playerid, Creationperso[playerid][7], 26); PlayerTextDrawShow(playerid, Creationperso[playerid][12]); SelectTextDraw(playerid, 0x0080FF); } else if(listitem == 1) { PlayerInfo[playerid][pSex]=2;SetPlayerSkin(playerid, 29 ![]() format(MessageInscri, sizeof(MessageInscri), "Sexe: Femme"); PlayerTextDrawSetString(playerid, Creationperso[playerid][12], MessageInscri); PlayerTextDrawSetPreviewModel(playerid, Creationperso[playerid][7], 29 ![]() PlayerTextDrawShow(playerid, Creationperso[playerid][12]); SelectTextDraw(playerid, 0x0080FF); } } } |
Creationperso[i][7] = CreatePlayerTextDraw(i, 186.333297, 139.568893, ""); PlayerTextDrawTextSize(i, Creationperso[i][7], 93.000000, 115.000000); PlayerTextDrawAlignment(i, Creationperso[i][7], 1); PlayerTextDrawColor(i, Creationperso[i][7], -1); PlayerTextDrawSetShadow(i, Creationperso[i][7], 0); PlayerTextDrawBackgroundColor(i, Creationperso[i][7], 1090519040); PlayerTextDrawFont(i, Creationperso[i][7], 5); PlayerTextDrawSetProportional(i, Creationperso[i][7], 0); PlayerTextDrawSetSelectable(i, Creationperso[i][7], true); PlayerTextDrawSetPreviewModel(i, Creationperso[i][7], 189); PlayerTextDrawSetPreviewRot(i, Creationperso[i][7], 0.000000, 0.000000, 0.000000, 1.000000); |
if(dialogid == DIALOG_SEXE)
{
if(response)
{
if(listitem == 0)
{
PlayerInfo[playerid][pSex]=1;SetPlayerSkin(playerid, 26);PlayerInfo[playerid][pChar] = 26;
format(MessageInscri, sizeof(MessageInscri), "Sexe: Homme");
PlayerTextDrawSetString(playerid, Creationperso[playerid][12], MessageInscri);
PlayerTextDrawSetPreviewModel(playerid, Creationperso[playerid][7], 26);
PlayerTextDrawShow(playerid, Creationperso[playerid][7]);
PlayerTextDrawShow(playerid, Creationperso[playerid][12]);
SelectTextDraw(playerid, 0x0080FF);
}
else if(listitem == 1)
{
PlayerInfo[playerid][pSex]=2;SetPlayerSkin(playerid, 29;PlayerInfo[playerid][pChar] = 298;
format(MessageInscri, sizeof(MessageInscri), "Sexe: Femme");
PlayerTextDrawSetString(playerid, Creationperso[playerid][12], MessageInscri);
PlayerTextDrawSetPreviewModel(playerid, Creationperso[playerid][7], 29;
PlayerTextDrawShow(playerid, Creationperso[playerid][7]);
PlayerTextDrawShow(playerid, Creationperso[playerid][12]);
SelectTextDraw(playerid, 0x0080FF);
}
}
}