Is it possible to NOT show a death message? - 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: Is it possible to NOT show a death message? (
/showthread.php?tid=238522)
Is it possible to NOT show a death message? -
grand.Theft.Otto - 11.03.2011
When I admin kill someone with my minigun, I don't want it to show which admin killed the player. Is it possible? (I'm talking about SendDeathMessage)
Re: Is it possible to NOT show a death message? -
AK47317 - 11.03.2011
yes it is possible
Re: Is it possible to NOT show a death message? -
Mark_Shade - 11.03.2011
yeh it is
Re: Is it possible to NOT show a death message? -
grand.Theft.Otto - 11.03.2011
And how would I make it impossible...?
Re: Is it possible to NOT show a death message? -
AK47317 - 11.03.2011
pawn Код:
if(PlayerInfo[playerid][Level] >= 1)
Re: Is it possible to NOT show a death message? -
grand.Theft.Otto - 11.03.2011
How would I use it like that?
Re: Is it possible to NOT show a death message? -
AK47317 - 11.03.2011
i hate to be explaining so yea.. just add those under the OnPlayerDeath callbacks then just send like...
pawn Код:
format(str, sizeof(str), "Has Died Killed By An Admin"); SendClientMessageToAll(color, str);
Re: Is it possible to NOT show a death message? -
grand.Theft.Otto - 11.03.2011
Nooo, sorry, I meant in the death list, not using SendClientMessage.
So if I shot Player 2 with my minigun, how can I make it not show in the death list. Sorry if you misunderstood.
Re: Is it possible to NOT show a death message? -
Calgon - 11.03.2011
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(!IsPlayerAdmin(killerid) && reason != 38) SendDeathMessage(killerid, playerid, reason);
return 1;
}
Replace 'IsPlayerAdmin(killerid)' with a variable for example if you have admin levels, otherwise that won't show death messages if an RCON admin kills a player with a minigun.
Re: Is it possible to NOT show a death message? -
grand.Theft.Otto - 11.03.2011
Yeah. I have an OnDuty[playerid] variable. Would I replace [playerid] with [killerid] ?