28.02.2009, 16:19
(
Последний раз редактировалось Calgon; 12.11.2010 в 16:48.
)
..........................
#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;
}
Originally Posted by Calgon
Doesn't work, but thanks for suggesting it.
|