#include <a_samp>
#include <a_samp>
#pragma tabsize 0
#define FILTERSCRIPT
#if defined FILTERSCRIPT
new Tor_eins;
new Tor_zwei;
public OnFilterScriptInit()
{
Tor_eins = CreateObject(971, 1565.386230, -1630.638306, 15.927746, 180.3774, 0.0000, 0.0000); //zu
Tor_zwei = CreateObject(971, 1565.381592, -1634.159668, 12.302801, 269.7592, 0.0000, 0.0000); //zu
CreateObject(971, 1560.944824, -1634.151001, 16.777733, 0.0000, 90.2408, 89.3814);
CreateObject(971, 1560.936035, -1634.130005, 25.613226, 0.0000, 90.2408, 89.3814);
CreateObject(971, 1569.739014, -1634.161133, 16.777733, 0.0000, 90.2408, 89.3814);
CreateObject(971, 1569.748535, -1634.131592, 25.627598, 0.0000, 90.2408, 89.3814);
CreateObject(971, 1565.372681, -1630.572632, 23.077637, 179.5180, 0.0000, 0.0000);
CreateObject(971, 1565.386597, -1630.578125, 26.477585, 179.5180, 0.0000, 0.0000);
print("\n--------------------------------------");
print(" pdgerage Filterscript by BoNeS");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/zu", true) == 0)
{
Tor_Eins_Zu();
return 1;
}
if (strcmp(cmdtext, "/auf", true) == 0)
{
Tor_Eins_Auf();
return 1;
}
//Tor 2---------------------//
if (strcmp(cmdtext, "/unten", true) == 0){
Tor_Zwei_unten();
return 1;
}
if (strcmp(cmdtext, "/oben", true) == 0){
Tor_Zwei_oben();
return 1;
}
if (strcmp(cmdtext, "/up", true) == 0){
Tor_Eins_Zu();
SetTimer("Tor_Zwei_oben",5000,false);
return 1;
}
}
if (strcmp(cmdtext, "/down", true) == 0){
Tor_Zwei_unten();
SetTimer("Tor_Eins_auf",5000,false);
return 1;
}
return 0;
}
public Tor_Eins_Zu()
{
MoveObject(Tor_eins,1565.386230, -1630.638306, 15.927746,4);
}
public Tor_Eins_Auf()
{
MoveObject(Tor_eins,1565.372681, -1630.572632, 23.077637,4);
}
public Tor_Zwei_unten()
{
MoveObject(Tor_zwei,1565.381592, -1634.159668, 12.302801,4);
}
public Tor_Zwei_oben()
{
MoveObject(Tor_zwei,1565.381592, -1634.159668, 27.302572,4);
}
Alles anzeigen