Where is the problem? gate ! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Where is the problem? gate ! (
/showthread.php?tid=225049)
Where is the problem? gate ! -
Donn1 - 12.02.2011
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;
}
Re: Where is the problem? gate ! -
Stunt_Guy - 12.02.2011
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 ...