SA-MP Forums Archive
[Help] Kill - 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: [Help] Kill (/showthread.php?tid=286042)



[Help] Kill - Nick. - 26.09.2011


*Need help how to make this
*If a player kills a player, how can admin get a message that someone kill someone else



Re: [Help] Kill - vassilis - 26.09.2011

the admins dont need to see it on their screen by a client message...they can see it on Death Reasons at the right of the screen


Re: [Help] Kill - aRoach - 26.09.2011

Put at OnPlayerDeath:
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i ++ )
{
    if( IsPlayerAdmin( i ) )
    {
        new aSTR[ 256 ];
        format( aSTR, 256, "%s has killed %s", pName( killerid ), pName( playerid ) );
        SendClientMessage( i, -1, aSTR );
    }
}
pName Function:
pawn Код:
stock pName( playerid )
{
    new name[ MAX_PLAYER_NAME ];
    GetPlayerName( playerid, name, sizeof( name ) );
    return ( name );
}
This is for RCON Admins, but you can Change IsPlayeradmin with Your Variable !


Re: [Help] Kill - Nick. - 26.09.2011

Thanks for help!