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.