Ja ich habe gescriptet das cops und so hütchen aufstellen können aber das ding ist ich weis nich wie man es macht dass sie sich immer so ausrichten das sie paralel also rechts und links von mir stehen bis jetzt stehen sie immer nur vor und hinter mir hier mal der Code :
case 6:
{
if(HUETCHEN6[playerid] == 0)
{
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
if(GetPlayerFacingAngle(playerid,Angle) != 90 || GetPlayerFacingAngle(playerid,Angle) != 180 || GetPlayerFacingAngle(playerid,Angle) != 360)
{
POLONE[0][playerid] = CreateObject(1238,X,Y,Z-0.7,0,0,0,0);
POLONE[1][playerid] = CreateObject(1238,X-2,Y,Z-0.7,0,0,0,0);
POLONE[2][playerid] = CreateObject(1238,X+2,Y,Z-0.7,0,0,0,0);
POLONE[3][playerid] = CreateObject(1238,X-4,Y,Z-0.7,0,0,0,0);
POLONE[4][playerid] = CreateObject(1238,X+4,Y,Z-0.7,0,0,0,0);
SendClientMessage(playerid,grey,"* Alle Hütchen aufgebaut");
HUETCHEN1[playerid] = 1;
HUETCHEN2[playerid] = 1;
HUETCHEN3[playerid] = 1;
HUETCHEN4[playerid] = 1;
HUETCHEN5[playerid] = 1;
HUETCHEN6[playerid] = 1;
}
else if(GetPlayerFacingAngle(playerid,Angle) == 90 || GetPlayerFacingAngle(playerid,Angle) == 180 || GetPlayerFacingAngle(playerid,Angle) == 360)
{
POLONE[0][playerid] = CreateObject(1238,X,Y,Z-0.7,0,0,0,0);
POLONE[1][playerid] = CreateObject(1238,X,Y-2,Z-0.7,0,0,0,0);
POLONE[2][playerid] = CreateObject(1238,X,Y+2,Z-0.7,0,0,0,0);
POLONE[3][playerid] = CreateObject(1238,X,Y-4,Z-0.7,0,0,0,0);
POLONE[4][playerid] = CreateObject(1238,X,Y+4,Z-0.7,0,0,0,0);
SendClientMessage(playerid,grey,"* Alle Hütchen aufgebaut");
HUETCHEN1[playerid] = 1;
HUETCHEN2[playerid] = 1;
HUETCHEN3[playerid] = 1;
HUETCHEN4[playerid] = 1;
HUETCHEN5[playerid] = 1;
HUETCHEN6[playerid] = 1;
}
}