PHP код:
#define FILTERSCRIPT
#include <a_samp>
forward gateopen();
#define COL_EASY "{FFF1AF}"
#define COL_WHITE "{FFFFFF}"
#define COL_BLACK "{0E0101}"
#define COL_GREY "{C3C3C3}"
#define COL_GREEN "{6EF83C}"
#define COL_RED "{F81414}"
#define COL_YELLOW "{F3FF02}"
#define COL_ORANGE "{FFAF00}"
#define COL_LIME "{B7FF00}"
#define COL_CYAN "{00FFEE}"
#define COL_LIGHTBLUE "{00C0FF}"
#define COL_BLUE "{0049FF}"
#define COL_MAGENTA "{F300FF}"
#define COL_VIOLET "{B700FF}"
#define COL_PINK "{FF00EA}"
#define COL_MARONE "{A90202}"
#define COL_CMD "{B8FF02}"
#define COL_PARAM "{3FCD02}"
#define COL_SERVER "{AFE7FF}"
#define COL_VALUE "{A3E4FF}"
#define COL_RULE "{F9E8B7}"
#define COL_RULE2 "{FBDF89}"
#define COL_RWHITE "{FFFFFF}"
#define COL_LGREEN "{C9FFAB}"
#define COL_LRED "{FFA1A1}"
#define COL_LRED2 "{C77D87}"
new gate1;
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Admin Island by: [FeK]Nuno Loaded");
print("--------------------------------------\n");
gate1 = CreateObject(980,-80.03893280,-352.57867432,3.20307875,0.00000000,0.00000000,270.00000000); //gate closed
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Credits", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, -1, ""#COL_WHITE" -------------------- "#COL_YELLOW"Admin Island "#COL_WHITE"--------------------");
SendClientMessage(playerid, -1, ""#COL_RED" Name: "#COL_WHITE" Admin Island ");
SendClientMessage(playerid, -1, ""#COL_RED" Version: "#COL_WHITE#" Version 1");
SendClientMessage(playerid, -1, ""#COL_RED" Lines: "#COL_WHITE#" XXXXXXX");
SendClientMessage(playerid, -1, ""#COL_RED" How many Objects: "#COL_WHITE#" 354 Objects");
SendClientMessage(playerid, -1, ""#COL_RED" How many Vehicles: "#COL_WHITE#" 32");
SendClientMessage(playerid, -1, ""#COL_RED" Created by: "#COL_WHITE#" [FeK]Nuno");
SendClientMessage(playerid, -1, ""#COL_RED" Helpers: "#COL_WHITE#" No helpers");
SendClientMessage(playerid, 0xFFFFFFFF, "--------------------------------------------------------------------");
return 1;
}
if (strcmp("/Gateopen", cmdtext, true, 10) == 0)
{
MoveObject(gate1, -80.03893280,-352.57867432,3.20307875, 2.5);
SendClientMessage(playerid, -1, ""#COL_YELLOW" Admin Island gate "#COL_GREEN" OPEN");
SendClientMessage(playerid, -1, ""#COL_YELLOW" It will close in: "#COL_RED" 5 Secounds");
SetTimer("gateopen", 5000, false);
return 1;
}
return 0;
}
public gateopen()
{
MoveObject(gate1, -80.03893280,-352.57867432,3.20307875, 2.5);
return 1;
}
It looks like you have used the same coordinates for both positions. Change the one under the /Gateopen command.