SA-MP Forums Archive
[Ajuda] Chat Kill - 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: [Ajuda] Chat Kill (/showthread.php?tid=495624)



Chat Kill - AssasinoLM - 18.02.2014

alguйm sabe me dizer se da para por o chat kill para aparecer apenas para ADMs?
se sim, como faзo?


Re: Chat Kill - Delete_ - 18.02.2014

nгo.


Re: Chat Kill - Wanderson_SAMP - 18.02.2014

Delete_ me emocionei com sua ajuda +REP
----------
no OnPlayerDeath:

pawn Код:
new NomePlayer[MAX_PLAYER_NAME], NomeKiller[MAX_PLAYER_NAME],string[68];
    GetPlayerName(playerid,NomePlayer,sizeof(NomePlayer));
    GetPlayerName(killerid,NomeKiller,sizeof(NomeKiller));
    format(string, sizeof(string), "%s[ID:%d] matou o %s [ID:%d]", NomeKiller, killerid, NomePlayer, playerid);
    for(new i = 0; i < MAX_PLAYERS;i++)
    {
     if(PlayerInfo[i][pAdmin] >= 1) // troque pela variavel do seu GM
         {
          SendClientMessage(i, -1, gstring);
          }
       }
  }



Re: Chat Kill - .FuneraL. - 18.02.2014

Talvez fosse o chat kill, entгo talvez poderia tentar isto:

pawn Код:
// No OnPlayerDeath

for(new i; i < MAX_PLAYERS; i++) {
     if(IsPlayerConnected(i)) {
         if(PlayerInfo[playerid][pAdmin] > 0) { // Troque pela sua variбvel de admin.
             SendDeathMessage(killerid, playerid, reason);
         }
     }
}
Espero ter ajudado


Re: Chat Kill - Wanderson_SAMP - 18.02.2014

.FuneraL. tъ eo rjjj ? o.O to intendendo nada.


Re: Chat Kill - ViniBorn - 18.02.2014

Nгo dб pra colocar SendDeathMessage apenas para um tipo de jogador, й global.
Mas vocк pode tentar fazer algo semelhante com TextDraw


Re: Chat Kill - Wanderson_SAMP - 18.02.2014

Pode tbm setar uma Text Draw para os player que nгo forem Moderadores na frente do Chat Kill
------------
lol acabei de ter uma ideia, mas isso й besteira kk'


Re: Chat Kill - AssasinoLM - 18.02.2014

se eu fize-se da seguinte forma,

para o chat kill aparecer tem que aperta F9, e se modificar isso e por para aparecer somente quando digita-se
/chatkill , e colocar a condicional de adm sera que funcionaria?


Re: Chat Kill - ViniBorn - 18.02.2014

Nгo. A funзгo SendDeathMessage aparece para todos, й semelhante a SendClientMessageToAll


Re: Chat Kill - .FuneraL. - 18.02.2014

Quote:
Originally Posted by Wanderson_SAMP
Посмотреть сообщение
.FuneraL. tъ eo rjjj ? o.O to intendendo nada.
Nгo :P

Quote:
Originally Posted by ViniBorn
Посмотреть сообщение
Nгo dб pra colocar SendDeathMessage apenas para um tipo de jogador, й global.
Mas vocк pode tentar fazer algo semelhante com TextDraw
Ah sim, achei que poderia limitar isto, mas se й como SendClientMessageToAll, realmente nгo tem como