Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // OnPlayerDeath não mostra a mensagem quando o individuo morre.
- public OnPlayerDeath(playerid, killerid, reason)
- {
- if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_HANDSUP)
- {
- SendClientMessage(playerid, COR_ERRO, "Você foi morto enquanto estava rendido! Caso tenha sido morto injustamente, tire uma ScreenShot e Denuncie no Forum!");
- return 1;
- }
- return 1;
- }
- // --- ---- ------ -----
- // Algemar só da pra andar depois que dá F.
- CMD:algemar(playerid, params[])
- {
- new JogadorAlgemado;
- new Float:x, Float:y, Float:z;
- if(sscanf(params,"u",JogadorAlgemado))return SendClientMessage(playerid, COR_ERRO, "Digite: /algemar ID");
- if(!IsPlayerConnected(JogadorAlgemado)) return SendClientMessage(playerid, COR_ERRO, "Você não digitou um ID valido ou o jogador esta desconectado");
- if(InfoJogador[playerid][Organizacao] <= 4)
- {
- if(CartaoBatido[playerid] == 1)
- {
- GetPlayerPos(JogadorAlgemado, x, y, z);
- if(DistanciaDoJogador(2.0, playerid, x, y, z))
- {
- if(GetPlayerSpecialAction(JogadorAlgemado) == SPECIAL_ACTION_HANDSUP)
- {
- SetPlayerSpecialAction(JogadorAlgemado, SPECIAL_ACTION_NONE);
- SendClientMessage(JogadorAlgemado, COR_CERTO, "Você foi algemado!");
- SendClientMessage(playerid, COR_CERTO, "Você algemou o suspeito!");
- SetPlayerSpecialAction(JogadorAlgemado, SPECIAL_ACTION_CUFFED);
- return 1;
- }
- else { return SendClientMessage(playerid, COR_ERRO, "O Suspeito não está com as mãos para cima!"); }
- }
- else { return SendClientMessage(playerid, COR_ERRO, "Você está muito longe do suspeito!");}
- }
- else {return SendClientMessage(playerid, COR_ERRO, "Você não está em serviço!");}
- }
- else {return SendClientMessage(playerid, COR_ERRO, "Você não é um oficial!");}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement