[Help] With Movable gates and Factions.
#7

Ermmm... i cant understand whats wrong with this
Код:
forward GateCloseYamaguchi)playerid);

new yamaguchigates1;

new yamaguchig;

public GateCloseYamaguchi(playerid)
{
      MoveDynamicObject(yamaguchigates1,1589.053344,-1638.123168,14.122960,0.000000,0.000000,180);
      PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960,0.000000,0.000000,180);
      yamaguchig = 0;
      return 1;
}

yamaguchig = 0;

yamaguchigates1 = CreateDynamicObject(980, 785.09997558594, -1152.4000244141, 25.299999237061, 0, 0, 270, 100.0);

	if(!strcmp(cmdtext, "/go", true)) // By CuervO_NegrO-------------Gates system---------
	{
	    if(IsAYamaguchiMember(playerid) || IsAFreecop(playerid))
		{
		   	if (IsPlayerInRangeOfPoint(playerid, 15,1589.053344,-1638.123168,14.122960))
			{
				if(yamaguchig == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
		  		MoveDynamicObject(yamaguchigates1,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.");
		   		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);
		     	yamaguchig = 1;
			}
I get errors with theese ;( can u help?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)