[Help] OnplayerDeath
#1

As I can show this message to player remaining
Be killerid or playerid

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
if(
Survival[Position] < 2)
{
GameTextForPlayer(killerid,"You Win",4000,3); 
Or ??
GameTextForPlayer(playerid,"You Win",4000,3); 
}
return 
1;

Reply
#2

Yes you can show messages to both killerid and playerid. (if this is what you are asking)
Reply
#3

it should be killerid
Reply
#4

playerid = player that died
killerid = player that killed

(pure logic, self explanatory)
Reply
#5

What I am saying is that is dying sucidio the other player will not win

Example:

There are only 2 participants in the survival
but if one then the other participant suicide will not win
Then nobody wins that's the problem I have


Competitor 1 = suicide
Competitor 2 = No win (For killerid not running)


they understand me?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)