SA-MP Forums Archive
Kill list help (idk it name) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Kill list help (idk it name) (/showthread.php?tid=458652)



Kill list help (idk it name) - lider1241 - 17.08.2013

I dont know how it called but my server is RP and its not suitable for RP server, how can i cancel it?
i prefer only admins can see it and not normal players.



how to cancel the who kill who on the right side "Mike Vegas killed Joker with Silenced pistol"

Am i able to set it that only admins can see it and not normal players?


Re: Kill list help (idk it name) - RedJohn - 17.08.2013

Remove SendDeathMessage(killerid, playerid, reason); from https://sampwiki.blast.hk/wiki/OnPlayerDeath

EDIT: Check if player is admin and if he is admin then show him using SendDeathMessage.

Whats your admin function:

pInfo[playerid][Admin]

Something like that. Please write it.


Re : Kill list help (idk it name) - Matnix - 17.08.2013

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
   if(IsPlayerAdmin(playerid))
   {
        SendDeathMessage(killerid, playerid, reason); // remove it and DeahtList will don't show..
   }
   return 1;
}
I will simply suggest you to try this one. But will not work perfectly it's will send a death message to everyone if the player who died is admin. So in my logic it's definitely not possible.

Why you don't try to send a message to all online admins of who killed who. It's would be better and it's possible by this way.


Re: Kill list help (idk it name) - SuperViper - 18.08.2013

Death messages are sent globally, therefore you can only remove them for everyone.


Re: Kill list help (idk it name) - ThePhenix - 18.08.2013

What about this one:

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
   for(new 
iiMAX_PLAYERSi++)
   {
        if(
IsPlayerAdmin(i))
        {
            
SendDeathMessage(killeridplayeridreason);
        }
   }
   return 
1;




Re: Kill list help (idk it name) - SuperViper - 18.08.2013

Quote:
Originally Posted by ThePhenix
Посмотреть сообщение
What about this one:

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
   for(new 
iiMAX_PLAYERSi++)
   {
        if(
IsPlayerAdmin(i))
        {
            
SendDeathMessage(killeridplayeridreason);
        }
   }
   return 
1;

Don't try to help if you have no idea what you're talking about. It confuses the thread starter when 100 people post the wrong answer.


Re: Kill list help (idk it name) - ThePhenix - 18.08.2013

Quote:
Originally Posted by SuperViper
Посмотреть сообщение
Don't try to help if you have no idea what you're talking about. It confuses the thread starter when 100 people post the wrong answer.
I have idea of what I'm talking about, that's why I'm posting.


Re: Kill list help (idk it name) - SuperViper - 18.08.2013

Quote:
Originally Posted by ThePhenix
Посмотреть сообщение
I have idea of what I'm talking about, that's why I'm posting.
You obviously don't. Your code will repeat the death message to everyone based on how many admins are online.


Re: Re : Kill list help (idk it name) - lider1241 - 18.08.2013

Quote:
Originally Posted by Matnix
Посмотреть сообщение
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
   if(IsPlayerAdmin(playerid))
   {
        SendDeathMessage(killerid, playerid, reason); // remove it and DeahtList will don't show..
   }
   return 1;
}
I will simply suggest you to try this one. But will not work perfectly it's will send a death message to everyone if the player who died is admin. So in my logic it's definitely not possible.

Why you don't try to send a message to all online admins of who killed who. It's would be better and it's possible by this way.
I need code that only admins online can see the death message - then they can see who CR'ed or DM'ed or something like that.

Yes Matnix, i want it send death message to all admins online.


Re: Kill list help (idk it name) - Vince - 18.08.2013

That is not possible. Read:
Quote:
Originally Posted by SuperViper
Посмотреть сообщение
Death messages are sent globally, therefore you can only remove them for everyone.
Use client messages or textdraw or something.