/*
[FS] By HsY
*/
#include <a_samp>
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_BLUE 0x2641FEAA
#define FILTERSCRIPT
forward GateClose();
new poarta;
public OnFilterScriptInit()
{
poarta = CreateObject(975, 1529.6015625, -1685.9583740234, 14.057502746582, 0, 0, 0);
print("\n--------------------------------------");
print(" Poarta [FS] ");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/poartals", true)==0)
{
MoveObject(poarta, 1539.8341064453, -1686.0211181641, 14.224103927612, 5.5);
SetTimer("GateClose", 2000, 0);
SendClientMessage(playerid, COLOR_YELLOW,"Ai platit intrarea pentru 100$! In 5 secunde Poarta se va inchide");
GivePlayerMoney(playerid,-100);
return 1;
}
return 0;
}
public GateClose()
{
MoveObject (poarta,1529.6015625, -1685.9583740234, 14.057502746582, 2.5);
return 1;
} N-ai schimbat coordonatele cu cele originale la GateClose, ce ti-am dat mai sus merge.