Carpark kills.
#1

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

Doesn't work, but thanks for suggesting it.
Reply
#4

Quote:
Originally Posted by Calgon
Doesn't work, but thanks for suggesting it.
what doesn't work is it the send message to admins?
Reply
#5

i used that stock in some of my scripts ( it works )

i have tested this code ( it works )

if it does not work then your death id part must be wrong

oh and next time dont just say it does not work, post the reason why

Edit: P.S: reason 49 meens hit by a car not carpark killed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)