[Help] Kill
#1


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

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
Reply
#3

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 !
Reply
#4

Thanks for help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)