Onplayerdeath ??????
#1

hello everyone i made a cmd under onplayerdeath that when a player is killed his death increases and when he gets killed by an admin that admins 5 score is increased but it wont work please help me

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    gPlayerInfo[playerid][Deaths]++;

	if(IsPlayerConnected(killerid))
	{
		gPlayerInfo[killerid][Kills]++;
	}
	if(gPlayerInfo[killerid][Level] >= 1)
	{
	   new score;
	   score = GetPlayerScore(killerid);
	   SetPlayerScore(killerid, score+5);
	}
	return 1;
}
Reply


Messages In This Thread
Onplayerdeath ?????? - by CBCandyBoy - 30.03.2013, 12:06
Re: Onplayerdeath ?????? - by Riddick94 - 30.03.2013, 12:11
Re: Onplayerdeath ?????? - by CBCandyBoy - 30.03.2013, 12:13
Re: Onplayerdeath ?????? - by fiki574 - 30.03.2013, 12:17
Re: Onplayerdeath ?????? - by Riddick94 - 30.03.2013, 12:21
Re: Onplayerdeath ?????? - by CBCandyBoy - 30.03.2013, 12:22
Re: Onplayerdeath ?????? - by Riddick94 - 30.03.2013, 12:26
Re: Onplayerdeath ?????? - by CBCandyBoy - 30.03.2013, 12:29
Re: Onplayerdeath ?????? - by Riddick94 - 30.03.2013, 12:37
Re: Onplayerdeath ?????? - by CBCandyBoy - 30.03.2013, 12:43

Forum Jump:


Users browsing this thread: 4 Guest(s)