10.09.2012, 11:59
Thanks here's the code. I'm doing it using dialog so this go under Ondialogresponse.
pawn Код:
if ( dialogid == DIALOG_OBJ )
{
if ( !response ) return 1;
if ( response )
{
switch ( listitem )
{
case 0:
{
ShowPlayerDialog(playerid, DIALOG_HEAD, DIALOG_STYLE_LIST, "{33CC99}Head", "Hair\nHair 2\", "Choose", "Back");
}
}
}
}
if ( dialogid == DIALOG_HEAD)
{
if ( !response ) return ShowPlayerDialog(playerid, DIALOG_OBJ, DIALOG_STYLE_LIST, "Objects Menu", "Head", "Choose", "Close");
if ( response )
{
switch ( listitem )
{
case 0:
{
SetPlayerAttachedObject( playerid, 1, 18893, 2, 0.094485, 0.007215, 0.0, 0.000000, 0.000000, 0.000000, 1.200000, 1.200000, 1.200000 );
EditAttachedObject(playerid, 1);
}