OnPlayerDeath - Updating Data
#5

I have updated it but for some reason it's not updating the deaths or kills, still... It also removes $100 from the player who dies rather than the $50 set and doesn't add $100 to the killer.

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	
    SendDeathMessage(killerid, playerid, reason);

	if(killerid != INVALID_PLAYER_ID) // Killer Shit
    {
        pInfo[killerid][pKills]++;
		pInfo[killerid][pScore]++;
		pInfo[killerid][pMoney] += 100;
		SetPlayerScore(killerid, pInfo[killerid][pScore]);
    }
	//Dead Shit
	pInfo[playerid][pDeaths]++;
	pInfo[playerid][pMoney] -= 50;

   	return 1;
}
Reply


Messages In This Thread
OnPlayerDeath - Updating Data - by Slepur - 05.08.2013, 22:22
Re: OnPlayerDeath - Updating Data - by RedJohn - 05.08.2013, 22:30
Re: OnPlayerDeath - Updating Data - by Slepur - 05.08.2013, 22:36
Re: OnPlayerDeath - Updating Data - by RedJohn - 05.08.2013, 22:41
Re: OnPlayerDeath - Updating Data - by Slepur - 05.08.2013, 22:50
Re: OnPlayerDeath - Updating Data - by Amel_PAtomAXx - 05.08.2013, 23:16
Re: OnPlayerDeath - Updating Data - by RedJohn - 05.08.2013, 23:19
Re: OnPlayerDeath - Updating Data - by Slepur - 05.08.2013, 23:23
Re: OnPlayerDeath - Updating Data - by SuperViper - 05.08.2013, 23:25
Re: OnPlayerDeath - Updating Data - by Amel_PAtomAXx - 05.08.2013, 23:38

Forum Jump:


Users browsing this thread: 3 Guest(s)