Folgendes Problem:
Ich kann das Tor ohne porbleme öffnen doch es lässt sich nicht mehr schließen ._.
#include <a_samp>
#pragma tabsize 0
#define COLOR_YELLOW 0xFFFF00AA
#define FILTERSCRIPT
#if defined FILTERSCRIPT
new y_gate;
public OnFilterScriptInit()
{
y_gate = CreateObject(980, 1550.3000488281, -1627.5, 15.199999809265, 0, 0, 272);
print("\n--------------------------------------");
print(" -");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/auf", true) == 0){
MoveObject(y_gate,1550,30000488281, -1627.5+4,9.199999809265,10);
SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Polizei Gelände!");
return 1;
}
if (strcmp(cmdtext, "/zu", true) == 0){
MoveObject(y_gate,1550,30000488281, -1627.5,15.199999809265,10);
SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Polizei Gelände!");
return 1;
}
return 0;
}