Hi ich weiss nicht wie das geht.... ich hoffe ihr könnt mir helfen
ich habe das Autohaus Filterscript von Kaliber
der /parken befehl
if(strcmp(cmd, "/parken", true) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, rot,"Du befindest dich in keinem Auto !");
if(PlayerInfo[playerid][pKey] == 0) return SendClientMessage(playerid, rot,"Du besitzt noch kein Auto !");
if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pKey])
{
new Float: X, Float: Y, Float: Z, Float: A;
GetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);
GetVehicleZAngle(GetPlayerVehicleID(playerid), A);
PlayerInfo[playerid][pX] = X;
PlayerInfo[playerid][pY] = Y;
PlayerInfo[playerid][pZ] = Z;
PlayerInfo[playerid][pA] = A;
PlayerInfo[playerid][pModel] = GetVehicleModel(GetPlayerVehicleID(playerid));
new color1, color2;
GetVehicleColor(GetPlayerVehicleID(playerid), color1, color2);
PlayerInfo[playerid][pFarbe1] = color1;
PlayerInfo[playerid][pFarbe2] = color2;
format(string, sizeof(string),"%f, %f, %f, %f, %d, %d, %d, %d",X,Y,Z,A,color1,color2,GetVehicleModel(GetPlayerVehicleID(playerid)),PlayerInfo[playerid][pPreis]);
SaveVehicles(string,playerid);
DestroyVehicle(GetPlayerVehicleID(playerid));
PlayerInfo[playerid][pKey] = CreateVehicle(PlayerInfo[playerid][pModel],PlayerInfo[playerid][pX],PlayerInfo[playerid][pY],PlayerInfo[playerid][pZ],PlayerInfo[playerid][pA],PlayerInfo[playerid][pFarbe1],PlayerInfo[playerid][pFarbe2],-1);
PutPlayerInVehicle(playerid, PlayerInfo[playerid][pKey], 0);
SendClientMessage(playerid, blau,"Du hast dein Auto erfolgreich geparkt !");
return 1;
}
else
{
return SendClientMessage(playerid, rot,"Dieses Auto gehört nicht dir !");
}
}
ich hoffe ihr könnt mir weiterhelfen....