SA-MP Forums Archive
SendDeathMessage outside OnPlayerDeath - 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: SendDeathMessage outside OnPlayerDeath (/showthread.php?tid=605170)



SendDeathMessage outside OnPlayerDeath - Lirbo - 15.04.2016

is that possible to send a death message outside OnPlayerDeath?
I've a function in OnPlayerGiveDamage to respawn the player once the server-sided goes to 0.
I want to send Death Message once it happens, how can I do it?


Re: SendDeathMessage outside OnPlayerDeath - yugecin - 15.04.2016

Yes. Common examples are sending death messages with the connection or disconnection icons when a player joins/leaves.
But I don't see why you have to make a topic for it and wait for answers though, you could've just tried to do it and see if it works?


Re: SendDeathMessage outside OnPlayerDeath - Lirbo - 15.04.2016

Quote:
Originally Posted by yugecin
Посмотреть сообщение
Yes. Common examples are sending death messages with the connection or disconnection icons when a player joins/leaves.
But I don't see why you have to make a topic for it and wait for answers though, you could've just tried to do it and see if it works?
I tried to do it but it didn't work


Re: SendDeathMessage outside OnPlayerDeath - yugecin - 15.04.2016

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/aaa", true))
    {
        SendDeathMessage(INVALID_PLAYER_ID, playerid, 200);
        return 1;
    }
    return 0;
}
This works for me