I need Help with this !
#7

Quote:
Originally Posted by TenTen
Посмотреть сообщение
where's SetTimer?
Код:
// LSPD
   	if(buttonid == lspdcopsonly)
    {
	    if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pFaction] == 1 || PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pFaction] == 5)
		{
				MoveDynamicObject(lspddoor1, 253.2000, 111.6000, 1002.2000,270.0000000, 2.0);
				SetTimer("DoorClose", 2500, 0);
				
		}
		else
		{
			SendClientMessage(playerid, COLOR_GREY, "   You're not a Cop / FBI!");
		}

	}
   	if(buttonid == lspdeveryone)
    {

        MoveDynamicObject(lspddoor1, 253.2000, 111.6000, 1002.2000,270.0000000, 2.0);
		SetTimer("DoorClose", 2500, 0);

	}
	
	if(buttonid == lspdcopsonly2)
    {
	    if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pFaction] == 1 || PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pFaction] == 5)
		{
				MoveDynamicObject(lspddoor2, 239.5416, 115.0392, 1002.2000,90.0000000, 2.0);
				SetTimer("DoorClose2", 2500, 0);

		}
		else
		{
			SendClientMessage(playerid, COLOR_GREY, "   You're not a Cop / FBI!");
		}

	}
   	if(buttonid == lspdeveryone2)
    {

		MoveDynamicObject(lspddoor2, 239.5416, 115.0392, 1002.2000,90.0000000, 2.0);
		SetTimer("DoorClose2", 2500, 0);

	}
Код:
forward DoorClose();
public DoorClose()
{
	MoveDynamicObject(lspddoor1, 253.20000, 110.10000, 1002.20001, 270.00000, 2.0);
  	return 1;
}

forward DoorClose2();
public DoorClose2()
{
    MoveDynamicObject(lspddoor2, 239.5416, 116.6033, 1002.2000, 90.00000, 2.0);
    return 1;
}
I did some changes here is my current codes with SetTimer
Reply


Messages In This Thread
I got problem with this doors - by RotAway - 28.07.2015, 19:54
Re: I need Help with this ! - by RotAway - 28.07.2015, 20:27
Re: I need Help with this ! - by RotAway - 29.07.2015, 10:33
Re: I need Help with this ! - by RotAway - 29.07.2015, 18:44
AW: I need Help with this ! - by Mencent - 29.07.2015, 21:26
Re: I need Help with this ! - by TenTen - 29.07.2015, 21:28
Re: I need Help with this ! - by RotAway - 30.07.2015, 07:37

Forum Jump:


Users browsing this thread: 6 Guest(s)