20.06.2015, 11:41
Buenas, e estado dandole vueltas a este script, y bueno no logro entender porque solo entra el dueсo al negocio, los usuarios no pueden si no son dueсos del negocio.
їalguna soluciуn?
pawn Код:
new NegocioID, BusType;
for (new BusSlot; BusSlot < MAXIMO_NEGOCIOSJUGADOR; BusSlot++)
{
NegocioID = APlayerData[playerid][Business][BusSlot];
if (NegocioID != 0){
if (IsPlayerInRangeOfPoint(playerid, 5.0, NegocioInfo[NegocioID][NegocioX], NegocioInfo[NegocioID][NegocioY], NegocioInfo[NegocioID][NegocioZ]))
{
BusType = NegocioInfo[NegocioID][TipoNegocio];
SetPlayerVirtualWorld(playerid, 2000 + NegocioID);
SetPlayerInterior(playerid, ABusinessInteriors[BusType][InteriorID]);
SetPlayerPos(playerid, ABusinessInteriors[BusType][IntX], ABusinessInteriors[BusType][IntY], ABusinessInteriors[BusType][IntZ]);
APlayerData[playerid][CurrentBusiness] = NegocioID;
return 1;
}
}
}