Someone must know this ? its not that hard for you pro scripters
#1

how come this gate doesnt move when i press enter in the position i selected

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	new string[256];
	new giveplayer[MAX_PLAYER_NAME];
	new playername[MAX_PLAYER_NAME];
	new giveplayerid, moneys, idx;
	new bramapd1;
	new bramapd2;
	new bramaam;
	bramapd1 = CreateObject(13028, 618.121155, -601.515076, 17.850210, 0.0000, 0.0000, 180.0000);
	bramapd2 = CreateObject(13028, 618.132141, -596.973572, 17.850210, 0.0000, 0.0000, 180.0000);
	bramaam = CreateObject(975, 327.172607, -39.189079, 2.024162, 0.0000, 0.0000, 0.0000);
	if(newkeys == KEY_SECONDARY_ATTACK)
	{
		if(PlayerToPoint(2.0,playerid,618.161255, -594.538818, 17.771645) || PlayerToPoint(2.0,playerid,616.606628, -594.804810, 17.892050) && GetPlayerState(playerid) == 1)
		{
			if(PdOpen == 0)
			{
				MoveObject(bramapd1,618.121155, -601.515076, 14.275265);
				MoveObject(bramapd2,618.132141, -596.973572, 14.275265);
        PdOpen = 1;
				return 1;
			}
			else if(PdOpen == 1)
			{
				MoveObject(bramapd1,618.121155, -601.515076, 17.850210);
				MoveObject(bramapd2,618.132141, -596.973572, 17.850210);
			  PdOpen = 0;
				return 1;
			}
		}
		if(PlayerToPoint(2.0,playerid,322.511871, -40.577465, 2.167633) || PlayerToPoint(2.0,playerid,331.814301, -37.939693, 1.994525) && GetPlayerState(playerid) == 1)
		{
			if(AmOpen == 0)
			{
				MoveObject(bramaam,318.274780, -39.189079, 2.024162);
        AmOpen = 1;
				return 1;
			}
			else if(AmOpen == 1)
			{
				MoveObject(bramaam,327.172607, -39.189079, 2.024162);
			  AmOpen = 0;
				return 1;
			}
		}
		return 0;
	}
Reply


Messages In This Thread
Someone must know this ? its not that hard for you pro scripters - by Pawel_Shark - 20.06.2009, 19:15
Re: Someone must know this ? its not that hard for you pro scripters - by Pawel_Shark - 20.06.2009, 19:41
Re: Someone must know this ? its not that hard for you pro scripters - by Joe Staff - 20.06.2009, 19:49
Re: Someone must know this ? its not that hard for you pro scripters - by Pawel_Shark - 20.06.2009, 19:55

Forum Jump:


Users browsing this thread: 1 Guest(s)