Where is the problem? gate !
#1

Where is the problem, please help !

Commads Gates open shows, but nothink can happen

Код:
/*
Fs By Splitx LS Edition
*/


#include <a_samp>

#pragma tabsize 0
#define COLOR_YELLOW 0xFFFF00AA
#define FILTERSCRIPT
forward GateClose();
#if defined FILTERSCRIPT
new pdgate;
new pdngate;
public OnFilterScriptInit()
{
pdgate = CreateObject(968, 1551.5343017578, -1672.6416015625, 15.671875, 0.0000, 0.0000, 90.0000);
pdngate = CreateObject(968, 1551.5343017578, -1672.6416015625, 15.671875, 0.0000, 0.0000, 90.0000);
	print("\n--------------------------------------");
	print(" PDGate FS BY Splitx");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#endif

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/pdopen", true)==0)
       {
       MoveObject(pdgate,1551.5343017578, -1672.6416015625, 15.671875, 3.5);
       MoveObject(pdngate,1551.5343017578, -1672.6416015625, 15.671875, 3.5);
      SetTimer("GateClose", 7000, 0);
      SendClientMessage(playerid, COLOR_YELLOW,"gates open");
      return 1;
       }
	return 0;
}

public GateClose()
{
      MoveObject (pdgate,1551.5343017578, -1672.6416015625, 15.671875, 2.5);
      MoveObject (pdngate, 1551.5343017578, -1672.6416015625, 15.671875, 2.5);
return 1;
}
Reply
#2

Man These Are The Objects ..
Код:
pdgate = CreateObject(968, 1551.5343017578, -1672.6416015625, 15.671875, 0.0000, 0.0000, 90.0000);
pdngate = CreateObject(968, 1551.5343017578, -1672.6416015625, 15.671875, 0.0000, 0.0000, 90.0000);
These Are The Move Objects .. QUESTION .. u don't change the code .. when u type the cmd it works ... it will be static if u don't change the code so ...

Код:
MoveObject(pdgate,1551.5343017578, -1672.6416015625, 15.671875, 3.5);
MoveObject(pdngate,1551.5343017578, -1672.6416015625, 15.671875, 3.5);
So Use This .. It Will Work .. Try This ...

Код:
MoveObject(pdgate,1551.5343017578, -1672.6416015625, 10.671875, 3.5);
MoveObject(pdngate,1551.5343017578, -1672.6416015625, 10.671875, 3.5);
Try This ... If Don't Work .. So I Will Say To u Something Else .. But I'm Sure This Will Be Work ..
BYE ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)