SendDeathMessage outside OnPlayerDeath
#1

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?
Reply
#2

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?
Reply
#3

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
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)