PDA

View Full Version : SendDeathMessage


iLearner
09/10/2016, 01:01 PM
foreach(Player, i)
{
if(pInfo[i][pAdminLevel] >= 1)
{
SendDeathMessage(killerid, playerid, reason);
}
}

It still send the message to all players, also sends for x times.

where x = number of admins online.

Konstantinos
09/10/2016, 01:02 PM
https://wiki.sa-mp.com/wiki/SendDeathMessageToPlayer

jlalt
09/10/2016, 01:03 PM
You have to use this function instead to send death message to single player.
https://wiki.sa-mp.com/wiki/SendDeathMessageToPlayer

so it has to be:

foreach(Player, i)
{
if(pInfo[i][pAdminLevel] >= 1)
{
SendDeathMessageToPlayer(i, killerid, playerid, reason);
}
}

@Konstantinos Was faster than me D:.