14.02.2010, 18:58
I have this code...
Ok but i still haven't found when a player dies by himself it says me:
Someone has been killed by, and nothing else, someone is the playersname
Can i fix this?
Код:
public OnPlayerDeath(playerid,killerid,reason) { 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); return 1; }
Someone has been killed by, and nothing else, someone is the playersname
Can i fix this?