[AJUDA]Sistema de pontos no tdm OnPlayerDeath
#2

Quote:
Originally Posted by Schocc
Посмотреть сообщение
Ola pesoal tudo bom com vocкs hoje
Entгo fis este cуdigo tdm mas nгo sei se vai rolar to com um erro no gta dae nгo posso testar
Quero que atualize a textdraw PlacarTdm para o playerid e o killerid na callback OnPlayerDeath

Vai dar certo ou nгo
Vlw obg

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	///Sistema TDM
	if (gTeam[playerid] == TEAM_GROVE)
	{
    	PontosTdmGroveKill ++;
		format(PlacarTdm, sizeof (PlacarTdm),"Grove:%d     |     Ballas:%d",PontosTdmGroveKill,PontosTdmBallasKill);
	}
	if (gTeam[playerid] == TEAM_BALLAS)
	{
	    PontosTdmBallasKill ++;
	    format(PlacarTdm, sizeof (PlacarTdm),"Grove:%d     |     Ballas:%d",PontosTdmGroveKill,PontosTdmBallasKill);
	}
	//Fim do sistema de tdm
TextDrawSetString(TdmLevelPontos[playerid],PlacarTdm);
TextDrawSetString(TdmLevelPontos[killerid],PlacarTdm);

return 1;
}
Aproveitando o Tуpico qual usar mais eficiente
icmd, zcmd, dcmd, ou strcmp cmdtext
R. 1Є Pergunta: Axo que vai.. nгo testei tbm
R. 2Є Pergunta: Zcmd + sscanf sem duvida.
Reply


Messages In This Thread
[AJUDA]Sistema de pontos no tdm OnPlayerDeath - by Schocc - 04.05.2012, 04:00
Re: [AJUDA]Sistema de pontos no tdm OnPlayerDeath - by steeldark - 04.05.2012, 04:25
Respuesta: [AJUDA]Sistema de pontos no tdm OnPlayerDeath - by Schocc - 04.05.2012, 04:26
Re: [AJUDA]Sistema de pontos no tdm OnPlayerDeath - by zSuYaNw - 04.05.2012, 04:57
Respuesta: Re: [AJUDA]Sistema de pontos no tdm OnPlayerDeath - by Schocc - 04.05.2012, 05:05
Re: [AJUDA]Sistema de pontos no tdm OnPlayerDeath - by zSuYaNw - 04.05.2012, 05:13

Forum Jump:


Users browsing this thread: 1 Guest(s)