15.02.2010, 15:13
Hi guys, (AGAIN) i have this script
I hope you know what it does (when a player is killed by another player it sends me someone has been killed by someone) OK but when a player kills himself i don't see a message, i want it to say %s has died, is it possible
Код:
public OnPlayerDeath(playerid,killerid,reason)
{
if(killerid != INVALID_PLAYER_ID)
{
new str[128],playersname[24],killersname[24];
GetPlayerName(playerid,playersname,24);
GetPlayerName(killerid,killersname,24);
format(str,sizeof(str),"%s has been killed by %s",playersname,killersname);
SendClientMessage(playerid, COLOR_ORANGE,str);
}
SendClientMessage(killerid, COLOR_ORANGE, "Armor restored and got 1000$");
GivePlayerMoney(killerid, 1000);
SetPlayerArmour(killerid, 100);
return 1;
}

