What's wrong?Does not close off the gate
#1

Код:
 if(!strcmp(cmdtext, "/fnyit", true)) // By Ali
{
    if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) //miylen leaders melу nyithassa mondjuk hitman
    {
        if (PlayerToPoint(15, playerid,-2242.146729, 643.149170, 50.343033)) // innen
		{
      		MoveObject(kapuproba,-2242.146729, 643.149170, 43.392609, 2.1); //ide, a 0.8 hogy milyen gyorsan
      		SetTimer("ProbaClose", 6000, 0);
      		SendClientMessage(playerid, COLOR_BLUE,"A kapu 7mбsodperc mъlva zбrуdik.");
      		GetPlayerName(playerid, sendername, sizeof(sendername));
      		format(string, sizeof(string), "* %s előveszi a kapu tбvirбnyнtуjбt йs kinyitja a kaput.", sendername);
      		ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
      		PlayerPlaySound(playerid, 971, -2242.146729, 643.149170, 50.343033); // ide is az kell hogy honnan
		}
	    else { SendClientMessage(playerid, COLOR_GREY,"A tбvirбnyнtodnak nincs ekkora hatуtбvolsбga, бlj kцzelebb a kapuhoz!"); }
	}
	return 1;
	}
Код:
 public ProbaClose(playerid) // ez lesz a imered
{
      MoveObject(akapu1,-2242.146729, 643.149170, 50.343033, 0.97); // midn kйt helyre a nyitу kell
      PlayerPlaySound(playerid, 971, -2242.146729, 643.149170, 43.392609); // ide is... -.- xd
      return 1;
}
Код:
 Base : CreateObject(971, -2242.284180, 642.759033, 49.644318, 0.0000, 0.0000, 270.0000);
Moved:CreateObject(971, -2242.055176, 644.003418, 49.940086, 0.0000, 0.0000, 270.0000);
Reply
#2

Quote:
Originally Posted by Jpatrick
Посмотреть сообщение
Код:
      MoveObject(kapuproba,
      MoveObject(akapu1,
< 8 characters >
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)