[Ajuda] Criaзгo de Hold's
#10

pawn Код:
if (strcmp(cmdtext, "/armasnacostas", true) == 0)
{
    new listitems[] = "Clarao\nM4\nBazuka";
    ShowPlayerDialog(playerid,1000,DIALOG_STYLE_LIST,"Armas nas Costas",listitems,"Colocar","Retirar");
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1000)
    {
        if(response)
        {
            if(listitem == 0)
            {
                SetPlayerAttachedObject( playerid, 0, 354, 1, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
            }
            if(listitem == 1)
            {
                SetPlayerAttachedObject( playerid, 0, 356, 1, -0.109213, -0.158438, 0.110446, 190.443313, 0.000000, 0.000000, 1.106521, 1.000000, 1.333984 );
            }
            if(listitem == 2)
            {
                SetPlayerAttachedObject( playerid, 0, 359, 1, -0.386748, 0.972680, -0.063896, 24.633762, 87.499031, 65.763282, 1.054929, 1.000000, 1.242258 );
            }
        }
        else
        {
            RemovePlayerAttachedObject(playerid, 0);
        }
    }
}
Reply


Messages In This Thread
[Ajuda] Criaзгo de Hold's - by Lucas_HenryK - 27.01.2012, 18:21
Re: [Ajuda] Criaзгo de Hold's - by Enderman - 27.01.2012, 21:02
Re: [Ajuda] Criaзгo de Hold's - by Lucas_HenryK - 27.01.2012, 21:11
Re: [Ajuda] Criaзгo de Hold's - by paulor - 27.01.2012, 23:02
Re: [Ajuda] Criaзгo de Hold's - by Lucas_HenryK - 27.01.2012, 23:12
Re: [Ajuda] Criaзгo de Hold's - by ReDKiiL - 27.01.2012, 23:27
Re: [Ajuda] Criaзгo de Hold's - by Lucas_HenryK - 27.01.2012, 23:32
Re: [Ajuda] Criaзгo de Hold's - by Lucas_HenryK - 27.01.2012, 23:34
Re: [Ajuda] Criaзгo de Hold's - by ReDKiiL - 27.01.2012, 23:36
Re: [Ajuda] Criaзгo de Hold's - by paulor - 27.01.2012, 23:36

Forum Jump:


Users browsing this thread: 1 Guest(s)