Rotating gate[help]
#4

Like this?
Код:
public Timer()
{
SetObjectRot(PDrampa1, 0.0000, 88.0000, 90.0000);
  //The actual timer...
}
public Timer1()
{
SetObjectRot(PDrampa1, 0.0000, 84.0000, 90.0000);
  //The actual timer...
}
public Timer2()
{
SetObjectRot(PDrampa1, 0.0000, 80.0000, 90.0000);
  //The actual timer...
}
public Timer3()
{
SetObjectRot(PDrampa1, 0.0000, 75.0000, 90.0000);
  //The actual timer...
}
public Timer4()
{
SetObjectRot(PDrampa1, 0.0000, 70.0000, 90.0000);
  //The actual timer...
}
Код:
  if(strcmp(cmdtext, "/pd1o", true) == 0)
  {
	  if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
	  {
    	SetTimer("Timer",200,false);
	    SetTimer("Timer1",400,false);
	    SetTimer("Timer2",600,false);
	    SetTimer("Timer3",800,false);
    	SetTimer("Timer4",1000,false);
  	    SendClientMessage(playerid, COLOR_GREEN, "Otvarate rampu PD-a.");// opening pd ramp 1
		}
		else
		{
			SendClientMessage(playerid, COLOR_GREEN, "Nisi clan PD-a."); // you are not member of police department
		}
		return 1;
  }
EDIT: I succed it is like this tnx
Reply


Messages In This Thread
Rotating gate[help] - by Vlado[stillnoname] - 28.04.2010, 20:55
Re: Rotating gate[help] - by mick88 - 29.04.2010, 00:39
Re: Rotating gate[help] - by BLAbla93 - 29.04.2010, 01:27
Re: Rotating gate[help] - by Vlado[stillnoname] - 29.04.2010, 11:55

Forum Jump:


Users browsing this thread: 1 Guest(s)