08.03.2011, 11:52
Quote:
|
I want it to say who the killerid killed, and the playerid to see who has killed him
|
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new tokiller[128],tokilled[128],killed[MAX_PLAYER_NAME],killer[MAX_PLAYER_NAME];
GetPlayerName(playerid,killed,sizeof(killed));
GetPlayerName(killerid,killer,sizeof(killer));
format(tokiller,sizeof(tokiller),"You have killed %s and earned 1000$",killed);
SendClientMessage(killerid,0xAA3333AA,tokiller);
format(tokilled,sizeof(tokilled),"You have been killed by %s",killer);
GivePlayerMoney(killerid,1000);
return 1;
}


