Help with SendDeathMessage
#1

The other players name is coming up first when you're killing someone

example: if i were named Dark and the other player were named Austin then if i killed him then it showed up this:

Austin {Weapon} Dark

Code:
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);

    PlayerInfo[killerid][pKills]++;
    PlayerInfo[playerid][pDeaths]++;
    GivePlayerMoney(killerid, 500);
    PlayerInfo[playerid][pScores]++;
	SetPlayerScore(killerid, PlayerInfo[playerid][pScores]);
	SendDeathMessage(playerid,killerid,reason);

	return 1;
}
Reply


Messages In This Thread
Help with SendDeathMessage - by CodyAlzack - 11.07.2014, 09:44
Re: Help with SendDeathMessage - by jonrb - 11.07.2014, 09:47
Re: Help with SendDeathMessage - by CodyAlzack - 11.07.2014, 09:50
Re: Help with SendDeathMessage - by Konstantinos - 11.07.2014, 09:51
Re: Help with SendDeathMessage - by CodyAlzack - 11.07.2014, 09:54

Forum Jump:


Users browsing this thread: 1 Guest(s)