Splitting the scores into two parts
#10

Quote:
Originally Posted by azzerking
Посмотреть сообщение
You want to add something like this:

Код:
public OnPlayerDeath( playerid, killerid, reason )
{
	if( playerid != INVALID_PLAYER_ID && killerid != INVALID_PLAYER_ID )
	{
	    if( GetPlayerWantedLevel( playerid ) > 0 ) // They are a wanted player
	    {
	    	PlayerData[ killerid ][ cScore ]++; // Replace the PlayerData with whatever your enum is

	    	/* Update Player Total Score ( Maybe this is what you meant ? ) */
	    	SetPlayerScore( playerid, PlayerData[ killerid ][ cScore ] + PlayerData[ killerid ][ rScore ] ); // Not sure if you wanted to add the points together to form the total score?
	    }
	}

	return 1;
}
Because you haven't gone into detail about exactly what you wanted, this is as close as i could get to what I believe you wanted.
Thanks this is what i was looking for
Reply


Messages In This Thread
Splitting the scores into two parts - by StrikerZ - 07.10.2016, 14:16
Re: Splitting the scores into two parts - by Eoussama - 07.10.2016, 14:36
Re: Splitting the scores into two parts - by StrikerZ - 07.10.2016, 14:48
Re: Splitting the scores into two parts - by gurmani11 - 07.10.2016, 14:51
Re: Splitting the scores into two parts - by StrikerZ - 07.10.2016, 14:53
Re: Splitting the scores into two parts - by StrikerZ - 07.10.2016, 14:57
Re: Splitting the scores into two parts - by SyS - 07.10.2016, 16:32
Re: Splitting the scores into two parts - by Luicy. - 07.10.2016, 16:34
Re: Splitting the scores into two parts - by azzerking - 07.10.2016, 19:11
Re: Splitting the scores into two parts - by StrikerZ - 08.10.2016, 05:51

Forum Jump:


Users browsing this thread: 3 Guest(s)