#include a_samp
#include zcmd
new kapu;
forward eltolas();
forward visszarak();
new bool: eltolva;
CMD:arrebtol(playerid)
{
if(eltolva == true) return SendClientMessage(playerid, -1, \"Már valaki el kezdte eltolni!\");
SetTimer(\"eltolas\", 1000*45, false);
eltolva = true;
return 1;
}
public eltolas()
{
MoveObject(kapu, 2138.60009766, 1627.50000000, 994.79998779, 10.0);
SetTimer(\"visszarak\", 60000*2, false);
return 1;
}
public visszarak()
{
MoveObject(kapu, 2144.39990234,1626.90002441,994.79998779, 10.0);
eltolva = false;
}
public OnFilterScriptInit() // Vagy OnGameModeInit()
{
kapu = CreateObject(2963,2144.39990234,1626.90002441,994.79998779,0.00000000,0.00000000,90.00000000); // Kapu zárva
return 1;
}