[Tutorial #1]Made Easy(Gates)
#6

Quote:
Originally Posted by Manny_rivera
Well this is the way I make my gates, you can see the similarities:

Код:
new LSPDGATE1;
Код:
LSPDGATE1 = CreateObject(980, 1549.747925, -1628.123291, 15.156204, 0.0000, 0.0000, 270.0000);
Код:
	
if(strcmp(cmdtext, "/LSPD1CLOSE", true)==0)
	{
	  if(gTeam[playerid] == 2 || IsACop(playerid))
			{
			MoveObject (LSPDGATE1,1549.747925, -1628.123291, 15.156204, 1.692236);
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD2, " You are not a Cop / FBI / Task Force");
			}
   		return 1;
	}
	if(strcmp(cmdtext, "/LSPD1OPEN", true)==0)
 	{
 		if(gTeam[playerid] == 2 || IsACop(playerid))
			{
   		MoveObject (LSPDGATE1,1549.747925, -1628.123291, 15.156204, 1.692236);
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD2, " You are not a Cop / FBI / Task Force");
			}
   		return 1;
  }
Well this is more ideal for the Godfather script but yeah, it's almost like yours.

Quote:
Originally Posted by NEW_IE
Now for your Commands
IF you just want it for were ever your at then heres a good example of a cmd with 1 gate.
Код:
    if (strcmp(cmdtext, "/og1", true)==0){
    SendClientMessage(playerid,COLOR_GREY,"YOUR TEXT HERE.");
		MoveObject (gate1,0.0,0.0,0.0,SPEED); //minimun speed=3.0
		return 1;
	}if (strcmp(cmdtext, "/cg1", true)==0){
    SendClientMessage(playerid,COLOR_GREY,"YOUR TEXT HERE");
		MoveObject (gate1,0.0,0.0,0.0, SPEED);//minimun speed=3.0
		return 1;         ^
	}
Well now looking at it, it's basically the same, hehe.
I see you use the GF then. I do too.
Reply


Messages In This Thread
[Tutorial #1]Made Easy(Gates) - by NEW_IE - 10.09.2008, 05:06
Re: [Tutorial #1]Made Easy(Gates) - by Jose 510 - 10.09.2008, 05:10
Re: [Tutorial #1]Made Easy(Gates) - by NEW_IE - 10.09.2008, 05:27
Re: [Tutorial #1]Made Easy(Gates) - by Jose 510 - 10.09.2008, 05:35
Re: [Tutorial #1]Made Easy(Gates) - by Jose 510 - 10.09.2008, 05:37
Re: [Tutorial #1]Made Easy(Gates) - by Tez2k7 - 10.09.2008, 07:05
Re: [Tutorial #1]Made Easy(Gates) - by mamorunl - 10.09.2008, 08:33
Re: [Tutorial #1]Made Easy(Gates) - by Aliii - 13.10.2008, 12:01
Re: [Tutorial #1]Made Easy(Gates) - by Eric_Natsu - 27.12.2008, 23:21
Re: [Tutorial #1]Made Easy(Gates) - by LarzI - 27.12.2008, 23:25

Forum Jump:


Users browsing this thread: 3 Guest(s)