06.01.2013, 08:51
If you have this model: https://sampforum.blast.hk/showthread.php?tid=202668
pawn Код:
public CheckGate()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(PlayerInfo[playerid][pMember] == X || PlayerInfo[playerid][pMember] == X)//X= your faction number
{
if(IsPlayerConnected(i))
{
if(IsPlayerInRangeOfPoint(i, 10.0, 2641.8201, 2810.6196, 36.3222))
{
MoveObject(AutomaticGate, 2641.8201, 2810.6196, 26.3222, 5.0);
}
else
{
MoveObject(AutomaticGate, 2641.8201, 2810.6196, 36.3222, 5.0);
}
}
}
}
}