Posts: 1,059
Threads: 86
Joined: Sep 2010
Reputation:
0
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)
Posts: 44
Threads: 1
Joined: Feb 2011
Posts: 1,059
Threads: 86
Joined: Sep 2010
Reputation:
0
And how would I make it impossible...?
Posts: 1,059
Threads: 86
Joined: Sep 2010
Reputation:
0
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.
Posts: 6,129
Threads: 36
Joined: Jan 2009
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.
Posts: 1,059
Threads: 86
Joined: Sep 2010
Reputation:
0
Yeah. I have an OnDuty[playerid] variable. Would I replace [playerid] with [killerid] ?