25.01.2012, 12:26
i made a fs by me...but it doesent work... you can try it.. please help me fix it ....anyway how can i find coord when the gate goes down..please help.me ..im romanian .
Код:
#include <a_samp>
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_BLUE 0x2641FEAA
#define FILTERSCRIPT
forward GateClose1();
forward GateClose2();
new mafiachineza1;
new mafiachineza2;
public OnFilterScriptInit()
{
CreateObject(7033, 57.066192626953, -1532.0367431641, 8.7498607635498, 0, 0, 80);
mafiachineza1 = CreateObject(980,664.89862061,-1309.79003906,15.23432922,0.00000000,0.00000000,180.00000000);
mafiachineza2 = CreateObject(980,785.95721436,-1152.47314453,25.37189293,0.00000000,0.00000000,270.00000000);
print("\n--------------------------------------");
print(" Vama by Dan Barocu ");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/vama1", true)==0)
{
MoveObject(mafiachineza1,58,665.0745, -1309.4437, 13.4609, 5.5);
SetTimer("GateClose1", 2000, 0);
return 1;
}
if (strcmp(cmdtext, "/vama2", true)==0)
{
MoveObject(mafiachineza2,58.821594238281, -1526.1868896484, 1.1389622688293, 5.5);
SetTimer("GateClose2", 2000, 0);
return 1;
}
return 0;
}
public GateClose1()
{
MoveObject (mafiachineza1,59,665.19006348, -1243.28930664, 8.72245789, 2.5);
return 1;
}
public GateClose2()
{
MoveObject (mafiachineza2,59,783.24310303, -1152.51770020, 19.47818375, 2.5);
return 1;
}

