Gate problem with Gang Need help
#1

Hello there,
i have a script for autogate and it work's fine.
But my want that the gate open only with Gang members, so if someone can help me it will be very helpfull thnx.
Here is the script:
Код:
new autogate;

forward close();
public close()
{
MoveObject(autogate, 1285.0999755859, -2056.1000976563, 61.700000762939,3);
return 1;
}

public OnGameModeInit()
	autogate = CreateObject(16775, 1285.0999755859, -2056.1000976563, 61.700000762939, 0, 0, 268);

public OnPlayerUpdate(playerid)
{
	if(IsPlayerInRangeOfPoint(playerid,8,1285.0999755859, -2056.1000976563, 61.700000762939))
	{
	MoveObject(autogate,1285.0999755859, -2056.1000976563, 53.5,3);
	SetTimer("close",4000,0);
	return 1;
	}
	return 1;
}
Reply


Messages In This Thread
Gate problem with Gang Need help - by BloodRaven - 10.02.2013, 12:13
Re: Gate problem with Gang Need help - by MP2 - 10.02.2013, 12:18
Re: Gate problem with Gang Need help - by BloodRaven - 10.02.2013, 12:46
Re: Gate problem with Gang Need help - by BloodRaven - 10.02.2013, 13:02
Re: Gate problem with Gang Need help - by MP2 - 10.02.2013, 13:24
Re: Gate problem with Gang Need help - by BloodRaven - 10.02.2013, 13:48

Forum Jump:


Users browsing this thread: 1 Guest(s)