Hallo,
ich habe mir einen /zollcam System gescriptet, mit dem man den Zoll überprüfen kann.
Aber irgendwie komme ich aus der Kamera nicht mehr raus.
Hier das gescriptete:
ocmd:zollcam(playerid, params[])
{
new camera, interior;
new Float:pX, Float:pY, Float:pZ, Float:pA;
if(!IsPlayerCop(playerid))return SendClientMessage(playerid,Hellrot,"Du bist in keiner Staatsfraktion.");
if(sscanf(params,"i",camera))return SendClientMessage(playerid,Grau,"FEHLER: /zollcam [Kamera]");
TogglePlayerControllable(playerid, 0);
GetPlayerPos(playerid,pX,pY,pZ);
GetPlayerFacingAngle(playerid,pA);
interior = GetPlayerInterior(playerid);
SetPlayerInterior(playerid, 0);
switch(camera)
{
case 0:{TogglePlayerControllable(playerid, 1);
SetPlayerPos(playerid,pX,pY,pZ);
SetPlayerFacingAngle(playerid,pA);
SetPlayerCameraPos(playerid,pX,pY,pZ);
SetPlayerCameraLookAt(playerid,pX,pY,pZ);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,interior);}
case 1:{SetPlayerPos(playerid,1640.3104,-27.5006,9.2512);
SetPlayerCameraPos(playerid, 1668.8656, -28.2332, 51.3905);
SetPlayerCameraLookAt(playerid, 1667.9564, -27.8201, 50.8355);}
case 2:{}
}
return 1;
}