Suicidal death problem
#1

Ok, I tried to do this:

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  if(playerid == killerid)
	{
	  SendClientMessage(playerid,COLOR_WHITE,"You killed yourself");
	}
}
However, this doesn't work...any ideas on how to make it work?


All help would be greatly appreciated, thanks
Reply
#2

If suicide is the reason, you didn't "kill yourself" (killerid != playerid)
Reply
#3

Quote:
Originally Posted by David_Omid
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  if(killerid == INVALID_PLAYER_ID)
    {
      SendClientMessage(playerid,COLOR_WHITE,"You killed yourself");
    }
}
Reply
#4

I dunno...I tried that and it didn't work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)