03.12.2014, 22:06
Quote:
Mas como td mundo ja falo acima, Eu tenho que criar tipo:
[PAWN]new EntrouMissao1[MAX_PLAYERS]; // Depois eu colocava tipo: Public OnPlayerExitVehicle(So EXEMPLO) { if(EntrouMissao1 = 1} { Is PlayerInRagePoint e os codiso } return 1; } [PAWN/] Tipo assim? E so um exemplo kkk |
pawn Код:
new bool: Missao[MAX_PLAYERS];
// Ao iniciar a missгo
Missao[playerid] = true;
public OnPlayerExitVehicle(playerid, vehicleid)
{
if(Missao[playerid] == true)
{
if(IsPlayerInRangeOfPoint(playerid, Range ( ex: 2.0 ), X, Y, Z))
{
// Caso saiu do carro no lugar certo.
}
else
{
//Caso sair do carro no lugar errado
Missao[playerid] = false;
}
}
return 1;
}