12.09.2009, 00:57
I need some help with my auto gates. It works perfectly when 1 from the faction is online, but if there is more 1 one from this faction online, the gate will only work for the first member that logged in. I hope you understand what Im meaning as Im not so good at explaining things
pawn Код:
public TowServiceGate1(playerid)
{
if(PlayerToPoint(5.0,playerid, 1937.4944,2148.5791,10.8203) && PlayerInfo[playerid][pFaction] == 1)
{
b_MoveObject(Entrance1, 1937.729, 2137.095, 11.531, 2);
b_MoveObject(Entrance2, 1937.708, 2158.011, 11.531, 2);
}
else if(!PlayerToPoint(5.0, playerid, 1937.4944,2148.5791,10.8203) && PlayerInfo[playerid][pFaction] == 1)
{
b_MoveObject(Entrance1, 1937.729, 2144.566, 11.531, 2);
b_MoveObject(Entrance2, 1937.708 ,2152.508 ,11.531, 2);
}
}