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(playerid, killerid, reason)
{
for(new i; i< MAX_PLAYERS; i++)
{
if(IsPlayerAdmin(i))
{
SendDeathMessage(killerid, playerid, reason);
}
}
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(playerid, killerid, reason)
{
for(new i; i< MAX_PLAYERS; i++)
{
if(IsPlayerAdmin(i))
{
SendDeathMessage(killerid, playerid, reason);
}
}
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.