Advertisement
Guest User

/algemar e OnPlayerDeath

a guest
Feb 10th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.81 KB | None | 0 0
  1. // OnPlayerDeath  não mostra a mensagem quando o individuo morre.
  2.  
  3. public OnPlayerDeath(playerid, killerid, reason)
  4. {
  5.     if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_HANDSUP)
  6.     {
  7.         SendClientMessage(playerid, COR_ERRO, "Você foi morto enquanto estava rendido! Caso tenha sido morto injustamente, tire uma ScreenShot e Denuncie no Forum!");
  8.         return 1;
  9.     }
  10.     return 1;
  11. }
  12.  
  13.  
  14. // --- ---- ------ -----
  15.  
  16.  
  17. // Algemar só da pra andar depois que dá F.
  18.  
  19. CMD:algemar(playerid, params[])
  20. {
  21.     new JogadorAlgemado;
  22.     new Float:x, Float:y, Float:z;
  23.     if(sscanf(params,"u",JogadorAlgemado))return SendClientMessage(playerid, COR_ERRO, "Digite: /algemar ID");
  24.     if(!IsPlayerConnected(JogadorAlgemado)) return SendClientMessage(playerid, COR_ERRO, "Você não digitou um ID valido ou o jogador esta desconectado");
  25.     if(InfoJogador[playerid][Organizacao] <= 4)
  26.     {
  27.         if(CartaoBatido[playerid] == 1)
  28.         {
  29.             GetPlayerPos(JogadorAlgemado, x, y, z);
  30.             if(DistanciaDoJogador(2.0, playerid, x, y, z))
  31.             {
  32.                 if(GetPlayerSpecialAction(JogadorAlgemado) == SPECIAL_ACTION_HANDSUP)
  33.                 {
  34.                     SetPlayerSpecialAction(JogadorAlgemado, SPECIAL_ACTION_NONE);
  35.                     SendClientMessage(JogadorAlgemado, COR_CERTO, "Você foi algemado!");
  36.                     SendClientMessage(playerid, COR_CERTO, "Você algemou o suspeito!");
  37.                     SetPlayerSpecialAction(JogadorAlgemado, SPECIAL_ACTION_CUFFED);
  38.                     return 1;
  39.                 }
  40.                 else { return SendClientMessage(playerid, COR_ERRO, "O Suspeito não está com as mãos para cima!"); }
  41.             }
  42.             else { return SendClientMessage(playerid, COR_ERRO, "Você está muito longe do suspeito!");}
  43.         }
  44.         else {return SendClientMessage(playerid, COR_ERRO, "Você não está em serviço!");}
  45.     }
  46.     else {return SendClientMessage(playerid, COR_ERRO, "Você não é um oficial!");}
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement