Very easy!
#1

Hey man.
I tried out doing a thing that comes up, so admin can see when people kill eachother.
Example: (Player) killed (Player) - (Weapon)
Reply
#2

You wanna know how to do this or what?

Code:
public OnPlayerDeath(playerid, killerid, reason)
{
	SendDeathMessage(killerid, playerid, reason);
}
Reply
#3

So only admins can see it?
Reply
#4

You can't use SendDeathMessage for admins only. You can make a client message for that.
Reply
#5

pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
for(new i=0; i<MAX_PLAYERS; i++){
if(IsPlayerAdmin(i)){
SendDeathMessage(killerid, playerid, reason);
}}
return 1;
}

Untested though.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)