14.02.2009, 21:36
yah do this:
under OnPlayerDeath
and then if you want the killer 's score to go up +1 add this:
under OnPlayerDeath
Код:
SendDeathMessage(killerid, playerid, reason); new string[256]; new name[MAX_PLAYER_NAME]; new dname[MAX_PLAYER_NAME]; GetPlayerName(killerid, name, sizeof(name)); GetPlayerName(playerid, dname, sizeof(dname)); format(string, sizeof(string), "%s(%d) has killed %s(%d).", name,killerid, dname,playerid); SendClientMessageToAll(COLOR_RED, string);
Код:
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);