OnPlayerDeath symbol - 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: OnPlayerDeath symbol (
/showthread.php?tid=412556)
OnPlayerDeath symbol -
$mooth - 02.02.2013
I got an problem, i guess it's an easy fix, but my brain just stoped.
Working on a DD/DM server.
Trying to get the death symbol (Splat, 54) do show up when you die.
But it just wont work.
This is the snipet
pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
SendDeathMessage(0, playerid, 54);
RemovePlayerFromRace(playerid);
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, killerid);
return 1;
}
SendDeathMessage(
0, playerid, 54);
"killerid" where i did set an -1 and 0 and my brain stoped here! -.-
Re: OnPlayerDeath symbol -
Threshold - 02.02.2013
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(reason == 54)
{
SendDeathMessage(INVALID_PLAYER_ID, playerid, 54);
}
return 1;
}
Re: OnPlayerDeath symbol -
$mooth - 02.02.2013
That dosnt work either :/
Re: OnPlayerDeath symbol -
dr.lozer - 02.02.2013
just put SendDeathMessage(killerid, playerid, reason);
Re: OnPlayerDeath symbol -
$mooth - 02.02.2013
Quote:
Originally Posted by dr.lozer
just put SendDeathMessage(killerid, playerid, reason);
|
Kind of the first thing i tested, that dosnt work
Only works on
pawn Код:
public OnPlayerConnect(playerid)
{
SendDeathMessage(-1, playerid, 200);
}
public OnPlayerDisconnect(playerid, reason)
{
SendDeathMessage(-1, playerid, 201);
}
Re: OnPlayerDeath symbol -
$mooth - 02.02.2013
Any idea?