Naja der Script funktioniert nicht, ich habe den Script auch mal über den Turismo laufen lassen, aber da passiert genauso wenig. Ich habe auch mal den Shamal Script versucht meinen bedürfnissen anzupassen, allerdings mit mäßigem Erfolg. Vielleicht bekommt das jemand anders hin ich poste den Script einfach mal, kann ja nicht schaden.
#include <a_samp>
#define gruen 0x05FF00FF
#define rot 0xE1000086
// Script by [GFSVB]RedDragon
// Es steht dir frei das Script zu verändern, aber lass bitte die Credits da ;)
new ShamalID[MAX_PLAYERS];
new ImShamalInterior[MAX_PLAYERS];
new Kabinentuer;
new AntiShamalSpam[MAX_PLAYERS];
public OnFilterScriptInit()
{
for(new i = 0; i < MAX_PLAYERS; i ++)
{
ImShamalInterior[i] = 0;
ShamalID[i] = -1;
}
print("\n+-----------------------------------+");
print("| Shamalscript von [GFSVB]RedDragon |");
print("+-------------GELADEN---------------+\n");
Kabinentuer = CreateObject(2944, 2.4775,34.4167,1200.0038,0,0,271.69067382813);
return 1;
}
public OnFilterScriptExit()
{
DestroyObject(Kabinentuer);
return 1;
}
public OnPlayerConnect(playerid)
{
ImShamalInterior[playerid] = 0;
ShamalID[playerid] = -1;
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if (ispassenger)
{
if (GetVehicleModel(vehicleid) == 519)
{
ShamalID[playerid] = vehicleid;
SetPlayerVirtualWorld(playerid,1000+ShamalID[playerid]);
SetPlayerPos(playerid,2.7273,23.1817,1199.5938);
SetPlayerFacingAngle(playerid,90);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,1);
ImShamalInterior[playerid] = 1;
AntiShamalSpam[playerid] = 0;
SendClientMessage(playerid,gruen,">> Drücke am Ausgang Enter oder F, um wieder auszusteigen!");
}
}
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys == 16)
{
if(ImShamalInterior[playerid] == 1)
{
new Float:X,Float:Y,Float:Z,Float:A;
GetPlayerPos(playerid,X,Y,Z);
if(X >= 3.1957 && Y <= 24.0543)
{
GetVehiclePos(ShamalID[playerid], X, Y, Z);
GetVehicleZAngle(ShamalID[playerid], A);
X += (2 * floatsin(-A, degrees));
Y += (2 * floatcos(-A, degrees));
SetPlayerPos(playerid, X, Y, Z);
X += (2 * floatsin(-(A-45.0), degrees));
Y += (2 * floatcos(-(A-45.0), degrees));
SetPlayerFacingAngle(playerid, A+90);
SetPlayerInterior(playerid,0);
ImShamalInterior[playerid] = 0;
SetPlayerVirtualWorld(playerid,0);
ImShamalInterior[playerid] = 0;
ShamalID[playerid] = -1;
SetCameraBehindPlayer(playerid);
}
else
{
if(AntiShamalSpam[playerid] == 0)
{
SendClientMessage(playerid,rot,">> Begib' dich erst zum Ausgang des Shamals.");
AntiShamalSpam[playerid] = 1;
}
}
}
}
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(ShamalID[i] == vehicleid && ImShamalInterior[i] == 1)
{
CreateExplosion(2.7273,23.1817,1199.5938,0,10);
SetPlayerHealth(i,0);
SendClientMessage(i,rot,">> Der Pilot hat das Flugzeug hochgejagt.");
ImShamalInterior[i] = 0;
ShamalID[i] = -1;
SetPlayerVirtualWorld(i,0);
}
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
ImShamalInterior[playerid] = 0;
ShamalID[playerid] = -1;
return 1;
}