[Pedido] Comando /prender
#1

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..
Reply
#2

Aqui!
Reply
#3

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

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);
Reply
#5

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

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;
}
Reply
#7

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;
}
Reply
#8

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?
Reply
#9

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;
}
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)