When a player commits suicide - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: When a player commits suicide (
/showthread.php?tid=206032)
When a player commits suicide -
anonymousx - 02.01.2011
I have a question, how can i detect when a player commits suicide?
Re: When a player commits suicide -
Mauzen - 02.01.2011
When a player kills himself, in OnPlayerDeath killerid is INVALID_PLAYER_ID
pawn Код:
if(killerid == INVALID_PLAYER_ID)
{
//Player killed himself
}
Respuesta: Re: When a player commits suicide -
anonymousx - 02.01.2011
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.