SA-MP Forums Archive
[Pedido] Comando /prender - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] Comando /prender (/showthread.php?tid=488437)



Comando /prender - GuiihCamargo - 18.01.2014

Basicamente eu queria o comando /prender, que somente o admin rcon pudesse usar e que o cara que eu dei /prender tivesse uma algema atras dos bracos, tipo, quando der /prender o cara ficar com os braзos pra tras e com algema..


Re: Comando /prender - JonathanFeitosa - 18.01.2014

Aqui!


Re: Comando /prender - GuiihCamargo - 18.01.2014

Quote:
Originally Posted by JonathanFeitosa
ПоÑмотреть Ñообщение
Pelo jeito jonhathan vocк nгo leu nada doque eu escrevi nйй... Dб uma olhada ali em cima.


Re: Comando /prender - Gii - 18.01.2014

Algemas:

pawn Код:
SetPlayerAttachedObject(id_do_jogador, 4, 19418, 6, -0.031999, 0.024000, -0.024000, -7.900000, -32.000011, -72.299987, 1.115998, 1.322000, 1.406000);
SetPlayerSpecialAction(id_do_jogador, SPECIAL_ACTION_CUFFED);



Re: Comando /prender - JonathanFeitosa - 18.01.2014

O do admin na rcon й sу ler isso aqui.


Re: Comando /prender - GuiihCamargo - 18.01.2014

Galera, eu fiz o comando, porйm nгo deu muito certo:
- A algema vem em mim
- Eu nгo consigo tirar as algemas depois

pawn Код:
CMD:prender(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
    {
    SetPlayerAttachedObject(playerid, 4, 19418, 6, -0.031999, 0.024000, -0.024000, -7.900000, -32.000011, -72.299987, 1.115998, 1.322000, 1.406000);
    SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);
    }
    return 1;
}



Re: Comando /prender - CharlieBrown - 18.01.2014

pawn Код:
CMD:prender(playerid, params[])
{
    new ID;
    if (sscanf(params, "uis[128]", ID)) SendClientMessage(playerid, 0xFF0000AA, "/prender [id]");
    if(IsPlayerAdmin(playerid))
    {
    SetPlayerAttachedObject(ID, 4, 19418, 6, -0.031999, 0.024000, -0.024000, -7.900000, -32.000011, -72.299987, 1.115998, 1.322000, 1.406000);
    SetPlayerSpecialAction(ID, SPECIAL_ACTION_CUFFED);
    }
    return 1;
}



Re: Comando /prender - GuiihCamargo - 18.01.2014

Quote:
Originally Posted by CharlieBrown
ПоÑмотреть Ñообщение
pawn Код:
CMD:prender(playerid, params[])
{
    new ID;
    if (sscanf(params, "uis[128]", ID)) SendClientMessage(playerid, 0xFF0000AA, "/prender [id]");
    if(IsPlayerAdmin(playerid))
    {
    SetPlayerAttachedObject(ID, 4, 19418, 6, -0.031999, 0.024000, -0.024000, -7.900000, -32.000011, -72.299987, 1.115998, 1.322000, 1.406000);
    SetPlayerSpecialAction(ID, SPECIAL_ACTION_CUFFED);
    }
    return 1;
}
Como eu posso fazer o comando, /desprender?


Re: Comando /prender - CharlieBrown - 19.01.2014

Acho que й isso.
pawn Код:
CMD:desprender(playerid, params[])
{
    new ID;
    if (sscanf(params, "uis[128]", ID)) SendClientMessage(playerid, 0xFF0000AA, "/desprender [id]");
    if(IsPlayerAdmin(playerid))
    {
    ClearAnimations(ID);
    RemovePlayerAttachedObject(ID, 4);
    }
    return 1;
}



Re: Comando /prender - Gii - 19.01.2014

Quote:
Originally Posted by CharlieBrown
ПоÑмотреть Ñообщение
Acho que й isso.
pawn Код:
CMD:desprender(playerid, params[])
{
    new ID;
    if (sscanf(params, "uis[128]", ID)) SendClientMessage(playerid, 0xFF0000AA, "/desprender [id]");
    if(IsPlayerAdmin(playerid))
    {
    ClearAnimations(ID);
    RemovePlayerAttachedObject(ID, 4);
    }
    return 1;
}
Nгo й isso nгo.