Hallo Zusammen,
ich sehe bei Camera 1 nur teilweise Gebäude was muss ich da machen?
if(strcmp(cmd, "/wachcamera", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsACop(playerid))
{
if(!IsPlayerInRangeOfPoint(playerid,8.0,222.1576,162.3614,1003.0300))
{
SendClientMessage(playerid, COLOR_GREY, " Du bist nicht im LSPD am Sicherheitspult !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Benutze: /wachcamera [nummer 1 - 10] (10 = Aus)");
return 1;
}
new number = strval(tmp);
if(number < 1 || number > 10) { SendClientMessage(playerid, COLOR_GREY, " Die Kameranummer darf nicht unter 1 oder 10 liegen !"); return 1; }
FreezePlayer(playerid);
GetPlayerPos(playerid, Unspec[playerid][Coords][0],Unspec[playerid][Coords][1],Unspec[playerid][Coords][2]);
if(number == 1) { SetPlayerPos(playerid, 1299.7396,-2146.6655,39.6840), SetPlayerInterior(playerid, 0), SetPlayerCameraPos(playerid, 1551.9481,-1678.8489,16.6719), SetPlayerCameraLookAt(playerid, 1519.3428,-1670.6410,15.0460), SetPlayerVirtualWorld(playerid,0); } /*d*/
else if(number == 2) { SetPlayerCameraPos(playerid, 246.4488,140.2564,1007.0327); SetPlayerCameraLookAt(playerid, 228.9138,156.2348,1003.0234); SetPlayerInterior(playerid,3); }
else if(number == 3) { SetPlayerCameraPos(playerid, 266.0640,1894.8856,38.6459); SetPlayerCameraLookAt(playerid, 224.0039,1887.1532,17.6406); }
else if(number == 4) { SetPlayerCameraPos(playerid, 260.8112,1808.0175,38.6303); SetPlayerCameraLookAt(playerid, 227.5645,1818.4778,17.6406); }
else if(number == 5) { SetPlayerCameraPos(playerid, 114.5196,1814.3483,38.6029); SetPlayerCameraLookAt(playerid, 123.6176,1846.4792,17.6549); }
else if(number == 6) { SetPlayerCameraPos(playerid, 114.5196,1814.3483,38.6029); SetPlayerCameraLookAt(playerid, 123.6176,1846.4792,17.6549); }
else if(number == 7) { SetPlayerCameraPos(playerid, 114.5196,1814.3483,38.6029); SetPlayerCameraLookAt(playerid, 123.6176,1846.4792,17.6549); }
else if(number == 8) { SetPlayerCameraPos(playerid, 114.5196,1814.3483,38.6029); SetPlayerCameraLookAt(playerid, 123.6176,1846.4792,17.6549); }
else if(number == 9) { SetPlayerCameraPos(playerid, 114.5196,1814.3483,38.6029); SetPlayerCameraLookAt(playerid, 123.6176,1846.4792,17.6549); }
else if(number == 10)
{
MedicBill[playerid] = 0;
UnFreezePlayer(playerid);
SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], Unspec[playerid][Coords][0], Unspec[playerid][Coords][1], Unspec[playerid][Coords][2], 10.0, -1, -1, -1, -1, -1, -1);
SpawnPlayer(playerid);
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Du bist kein Polizist!");
return 1;
}
}
return 1;
}
Danke schonma,
MfG