[Help] OnplayerDeath - 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)
+--- Thread: [Help] OnplayerDeath (
/showthread.php?tid=593567)
[Help] OnplayerDeath -
INKISICION - 07.11.2015
As I can show this message to player remaining
Be killerid or playerid
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(Survival[Position] < 2)
{
GameTextForPlayer(killerid,"You Win",4000,3);
Or ??
GameTextForPlayer(playerid,"You Win",4000,3);
}
return 1;
}
Re: [Help] OnplayerDeath -
Gammix - 07.11.2015
Yes you can show messages to both
killerid and
playerid. (if this is what you are asking)
Re: [Help] OnplayerDeath -
HydraHumza - 07.11.2015
it should be killerid
Re: [Help] OnplayerDeath -
Crayder - 07.11.2015
playerid = player that died
killerid = player that killed
(pure logic, self explanatory)
Respuesta: [Help] OnplayerDeath -
INKISICION - 07.11.2015
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?