Which keys are this?
#3

Dont work :S
Код:
else if ( PRESSED(KEY_SUBMISSION) && PRESSED(KEY_ACTION) )
	{
	    if(IsAPDMember(playerid) || IsAFreecop(playerid))
		{
		   	if (IsPlayerInRangeOfPoint(playerid, 15,1589.053344,-1638.123168,14.122960))
			{
	  			if(lspdg == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
	   			MoveDynamicObject(pdgate1,1599.053344,-1638.123168,14.122960, 0.8);
		      	SetTimer("GateClose", 12000, 0);
		     	SendClientMessage(playerid, COLOR_BLUE,"A garage is opened and will close in 7 seconds.");
		     	GetPlayerName(playerid, sendername, sizeof(sendername));
		   		format(string, sizeof(string), "* %s takes his/her remote and opens a garage.", sendername);
		   		ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
		   		PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960);
		     	lspdg = 1;
			}
			else if (IsPlayerInRangeOfPoint(playerid, 15,1544.700317,-1630.735717,13.096980))
			{
			    if(lspdg2 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Barrier is Already Opened"); return 1; }
	    		DestroyDynamicObject( pdgate2 );
	      		pdgate3 = CreateDynamicObject(968,1544.700317,-1630.735717,12.924660,0.000000,0.000000,270.972869);
	      		SetTimer("GateClose5", 6000, 0);
		   		SendClientMessage(playerid, COLOR_BLUE,"The gate is opened and will close in 6 seconds.");
		   		GetPlayerName(playerid, sendername, sizeof(sendername));
		   		format(string, sizeof(string), "* %s takes his/her remote and opens the gate.", sendername);
				ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
				lspdg2 = 1;
			}
			else
			{
				SendClientMessage(playerid, COLOR_GREY,"* Not near a Gate that you can use.");
				return 1;
			}
		}
}
Reply


Messages In This Thread
Which keys are this? - by Dragony92 - 10.04.2011, 00:05
Re: Which keys are this? - by Fj0rtizFredde - 10.04.2011, 00:06
Re: Which keys are this? - by Dragony92 - 10.04.2011, 00:09
Re: Which keys are this? - by Dragony92 - 10.04.2011, 00:20
Re: Which keys are this? - by Admigo - 10.04.2011, 00:26
Re: Which keys are this? - by Dragony92 - 10.04.2011, 00:30
Re: Which keys are this? - by Admigo - 10.04.2011, 00:39
Re: Which keys are this? - by Dragony92 - 10.04.2011, 00:41
Re: Which keys are this? - by Admigo - 10.04.2011, 00:45
Re: Which keys are this? - by Admigo - 10.04.2011, 00:55

Forum Jump:


Users browsing this thread: 1 Guest(s)