Hey Leute ich wollte mal ebend fragen was ich Scripten muss
damit ich mehrere Objecte mit 1 Befehl nutzen kann ?!
new tor3;
if (strcmp("/tor3", cmdtext, true, 10) == 0) //FW Tor1
{
if(!IsPlayerInRangeOfPoint(playerid,10,1810.1700, -1449.2000, 14.2000))return SendClientMessage(playerid,COLOR_GRELLRED,"Du bist nicht in der Nähe vom Tor!");
{
MoveObject(tor3, 3089, 1826.03, -1450.98, 12.83, 1.0, 0.00, 0.00, 90.00);
MoveObject(tor3, 3089, 1826.03, -1450.98, 14.57, 1.0, 0.00, 0.00, 90.00);
MoveObject(tor3, 3089, 1821.63, -1449.50, 12.83, 1.0, 0.00, 0.00, 270.00);
MoveObject(tor3, 3089, 1821.57, -1450.98, 12.83, 1.0, 0.00, 0.00, 90.00);
MoveObject(tor3, 3089, 1821.57, -1450.98, 14.57, 1.0, 0.00, 0.00, 90.00);
MoveObject(tor3, 3089, 1821.63, -1449.50, 14.57, 1.0, 0.00, 0.00, 270.00);
SetTimer("FWTor3",10000,false);
SendClientMessage(playerid,COLOR_GRELLRED,"Das Tor ist auf und geht in 10 Sekunden wieder zu!");
}
return 1;
}
//Wache 4 Tore
tor = CreateObject(3089, 1826.03, -1450.98, 12.83, 0.00, 0.00, 180.00);
tor = CreateObject(3089, 1826.03, -1450.98, 14.57, 0.00, 0.00, 180.00);
tor = CreateObject(3089, 1823.05, -1450.98, 12.83, 0.00, 0.00, 0.00);
tor = CreateObject(3089, 1821.57, -1450.98, 12.83, 0.00, 0.00, 0.00);
tor = CreateObject(3089, 1824.53, -1450.98, 14.57, 0.00, 0.00, 180.00);
tor = CreateObject(3089, 1823.05, -1450.98, 14.57, 0.00, 0.00, 180.00);
forward FWTor3();
public FWTor3()
{
MoveObject(tor3,1810.1700, -1449.2000, 14.2000, 1.0, 0.0000, 0.0000, 80.0000);
MoveObject(tor3,3089, 1826.03, -1450.98, 12.83, 1.0, 0.00, 0.00, 180.00);
MoveObject(tor3,3089, 1826.03, -1450.98, 14.57, 1.0, 0.00, 0.00, 180.00);
MoveObject(tor3,3089, 1823.05, -1450.98, 12.83, 1.0, 0.00, 0.00, 0.00);
MoveObject(tor3,3089, 1821.57, -1450.98, 12.83, 1.0, 0.00, 0.00, 0.00);
MoveObject(tor3,3089, 1824.53, -1450.98, 14.57, 1.0, 0.00, 0.00, 180.00);
MoveObject(tor3,3089, 1823.05, -1450.98, 14.57, 1.0, 0.00, 0.00, 180.00); //
}