Carpark kills.
#2

This should work just add them to your code

pawn Код:
#define blue  0x0000ffff

new Admin[MAX_PLAYERS];

stock SendMessageToAdmins(String[]) {
    for ( new i = 0; i < MAX_PLAYERS; i++ ) {
        if ( Admin[i] > 0 ) {
            SendClientMessage(i, blue, String);
        }
    }
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason) {
    if ( reason == 49 ) {
        new kstring[128],
            kickname[MAX_PLAYER_NAME],
            String[50];
        if ( IsPlayerConnected(killerid) ) {
            GetPlayerName(killerid, kickname, sizeof(kickname));
            format(String, 256, "AdmWarning: [%d] %s has just carparked killerd a player.", killerid, kickname);
            SendMessageToAdmins(String);
            printf("%s", kstring);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Carpark kills. - by Calgon - 28.02.2009, 16:19
Re: Carpark kills. - by JaYmE - 28.02.2009, 16:47
Re: Carpark kills. - by Calgon - 28.02.2009, 19:28
Re: Carpark kills. - by brett7 - 28.02.2009, 21:49
Re: Carpark kills. - by JaYmE - 01.03.2009, 02:06

Forum Jump:


Users browsing this thread: 1 Guest(s)