03.10.2015, 15:36
Bom, fiz assim atй agora, oque estб errado, oque estб certo, oque tenho que mudar galera?
Bom, foi isso que eu fiz, acho que nгo devo utilizar o SetTimerEx ali, mas nгo consegui pensar em outro modo, alguйm tem ideia de como fazer?, Se puder ajudar fico imensamente grato.
Abraзos.
PHP код:
if(dialogid==xXx)
{
if(response)
{
SetPlayerRaceCheckpoint(playerid, 0, -2042.54, -72.55, 34.89, -2042.54,-72.55,34.89, 3);//Primeiro CP apontado para o segundo CP
SetTimerEx("NoCP", 500, true, "i", playerid);
}
}
forward NoCP(playerid);
public NoCP(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 3, -2042.54,-72.55,34.89))//Se o jogador ta no primeiro CP:
{
SetPlayerRaceCheckpoint(playerid, 0, -2003.62, -40.15, 34.88, -2006.37, 25.15, 32.54, 3);//mostrar o segundo CP, apontando para o ъltimo
}
if(IsPlayerInRangeOfPoint(playerid, 3, -2003.62, -40.15, 34.88))//se o jogador ta no segundo CP:
{
SetPlayerCheckpoint(playerid, -2048.89, -89.01, 34.89, 3);//Cria o ъltimo CheckPoint
}
if(IsPlayerInRangeOfPoint(playerid, 3, -2048.89, -89.01, 34.89)//Se o jogador ta no ъltimo CP:
{
SendClientMessage(playerid, -1, "Vocк chegou ao seu destino");//Envia uma msg pra dizer que acabou
DisablePlayerCheckpoint(playerid);//Desabilita o CP
}
return 1;
}
Abraзos.