Test this script I just modified..
[pawn]public OnPlayerDeath(playerid, killerid, reason)
{
new string[51];
format(string, sizeof(string), "%s has been killed by %s with a %s", gPlayers[playerid], gPlayers[killerid], gWeapons[killerid]);
SendClientMessageToAll(COLOR_GREEN, string);
GivePlayerMoney(killerid, 250);
GivePlayerWeapon(killerid, 26, 270);
SendClientMessage(killerid, COLOR_GREEN, "You will be upgraded with M4 but limited ammo. Kill somemore to earn more ammo.");
return 1;
}[/pawn]