[Ajuda] Erro ganhar Score quando mata
#1

quando mata algum jogador deveria ganhar 1 score mais nгo ganha alguem sabe soluзгo ?

Codigo Death pwn:
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	if(GetTickCountDifference(GetTickCount(), death_LastDeath[playerid]) < 1000)
		return -1;

	death_LastDeath[playerid] = GetTickCount();

	if(killerid == INVALID_PLAYER_ID)
	{
		killerid = GetLastHitById(playerid);

		if(!IsPlayerConnected(killerid))
			killerid = INVALID_PLAYER_ID;
	}

	_OnDeath(playerid, killerid);

	return 1;
}

nгo se precisa disso:
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
    return 1;
}
Reply


Messages In This Thread
Erro ganhar Score quando mata - by LukeCage - 20.11.2016, 12:15
Re: Erro ganhar Score quando mata - by Cleyson - 20.11.2016, 12:28
Re: Erro ganhar Score quando mata - by Carlos001 - 20.11.2016, 12:46
Carlos001 - by LukeCage - 20.11.2016, 13:23
Re: Erro ganhar Score quando mata - by PT - 20.11.2016, 14:50
PT - by LukeCage - 20.11.2016, 15:04

Forum Jump:


Users browsing this thread: 1 Guest(s)