04.10.2010, 17:03
Sascha @ That way is WAY to complicated, it can be done with a few lines:
Change "AdminMsg" to the function where it sends a message to admins, the rest you have to do, bugs are easy to fix
pawn Код:
new weap[20], string[128], killer, player;
GetWeaponName(reason, weap, sizeof weap);
GetPlayerName(playerid, player, sizeof player);
GetPlayerName(killerid, killer, sizeof killer);
if(killerid != INVALID_PLAYER_ID)
{
format(string, sizeof string, "%s(%d) has killed %s(%d) %s", killer, killerid, player, playerid, weap);
AdminMsg(string);
}
else
{
format(string, sizeof string, "%s(%d) died", player, playerid);
AdminMsg(string);
}