[FilterScript] Blank admin filterscript [y_ini]
#8

Quote:
Originally Posted by [SF]OutLawZ
Посмотреть сообщение
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	if(playerid != INVALID_PLAYER_ID)
	{
		pStats[playerid][deaths]++;
	}

	if(killerid != INVALID_PLAYER_ID && IsPlayerConnected(killerid))
	{
		pStats[killerid][score]++;
		pStats[killerid][money]++;
		GivePlayerMoney(killerid, 1);
		SetPlayerScore(killerid, pStats[killerid][score]);
	}
	return 1;
}
I didn't actually add deaths.
But yeah.. That's how you save them.
Reply


Messages In This Thread
Blank admin filterscript [y_ini] - by Stinged - 10.11.2013, 13:00
Re: Blank admin filterscript [y_ini] - by [WA]iRonan - 10.11.2013, 13:43
Re: Blank admin filterscript [y_ini] - by [WA]iRonan - 10.11.2013, 13:47
Re: Blank admin filterscript [y_ini] - by Stinged - 10.11.2013, 16:01
Re: Blank admin filterscript [y_ini] - by iDuckling - 11.11.2013, 03:42
Re: Blank admin filterscript [y_ini] - by Stinged - 11.11.2013, 11:35
Re: Blank admin filterscript [y_ini] - by [SF]OutLawZ - 11.11.2013, 11:52
Re: Blank admin filterscript [y_ini] - by Stinged - 11.11.2013, 12:39
Re: Blank admin filterscript [y_ini] - by iDuckling - 11.11.2013, 13:47
Re: Blank admin filterscript [y_ini] - by Uberanwar - 12.11.2013, 06:05

Forum Jump:


Users browsing this thread: 1 Guest(s)