When a player commits suicide
#1

I have a question, how can i detect when a player commits suicide?
Reply
#2

When a player kills himself, in OnPlayerDeath killerid is INVALID_PLAYER_ID

pawn Код:
if(killerid == INVALID_PLAYER_ID)
{
    //Player killed himself
}
Reply
#3

Quote:
Originally Posted by Mauzen
Посмотреть сообщение
When a player kills himself, in OnPlayerDeath killerid is INVALID_PLAYER_ID

pawn Код:
if(killerid == INVALID_PLAYER_ID)
{
    //Player killed himself
}
Wow it works, thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)