SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Help Archive (https://forum.sa-mp.com/forumdisplay.php?f=89)
-   -   Very easy! (https://forum.sa-mp.com/showthread.php?t=125779)

Daniel_June 05/02/2010 06:15 PM

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

CrucixTM 05/02/2010 06:17 PM

Re: Very easy!
 
You wanna know how to do this or what?

Code:

public OnPlayerDeath(playerid, killerid, reason)
{
        SendDeathMessage(killerid, playerid, reason);
}


Daniel_June 05/02/2010 07:04 PM

Re: Very easy!
 
So only admins can see it?

MadeMan 05/02/2010 07:16 PM

Re: Very easy!
 
You can't use SendDeathMessage for admins only. You can make a client message for that.

Mike Garber 05/02/2010 07:16 PM

Re: Very easy!
 
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.


All times are GMT. The time now is 06:11 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.