Habe jetzt gefunden das es an dem befehl liegt.
Nur wie mache ich das er in der Datei 1 schreibt wenn er in der Frakion 1 ist ?
ocmd:fpark(playerid,params[])
{
new Content[1028];
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
new fc;while(fc<MAX_FRACTION_CARS){
if(FractionCars[fc][fVehid] >= 400 && FractionCars[fc][fVehid] <= 611){
if(GetPlayerVehicleID(playerid) == FractionCars[fc][fCarid]){
if(PlayerAdministrator(playerid) >= Fraction_Need_Adminlevel || PlayerLeader(playerid) == FractionCars[fc][fFraction][0]){
if(Spieler[playerid][pLeader] == 1)
{
if(fexist(copfile))
{
new File:fFile=fopen(copfile,io_append);
new Float:fX,Float:fY,Float:fZ,Float:fA;
GetVehiclePos(FractionCars[fc][fCarid],fX,fY,fZ),GetVehicleZAngle(FractionCars[fc][fCarid],fA);
FractionCars[fc][fPos][0]=fX;
FractionCars[fc][fPos][1]=fY;
FractionCars[fc][fPos][2]=fZ;
FractionCars[fc][fPos][3]=fA;
format(Content,sizeof(Content),"%d %.3f %.3f %.3f %.3f %03d %03d %02d %02d %02d %02d %02d\r\n",FractionCars[fc][fVehid],fX,fY,fZ,fA,FractionCars[fc][fCol][0],FractionCars[fc][fCol][1],FractionCars[fc][fFraction][0],FractionCars[fc][fFraction][1],FractionCars[fc][fFraction][2],FractionCars[fc][fFraction][3],FractionCars[fc][fFraction][4]);
fwrite(fFile,Content);
SendClientMessage(playerid,fColYellow,">> Cop:Du hast das Fraktionsfahrzeug erfolgreich umgeparkt.");
}fremove(copfile);
}
else if(Spieler[playerid][pLeader] == 2)
{
if(fexist(fbifile))
{
new Float:fX,Float:fY,Float:fZ,Float:fA;
GetVehiclePos(FractionCars[fc][fCarid],fX,fY,fZ),GetVehicleZAngle(FractionCars[fc][fCarid],fA);
FractionCars[fc][fPos][0]=fX;
FractionCars[fc][fPos][1]=fY;
FractionCars[fc][fPos][2]=fZ;
FractionCars[fc][fPos][3]=fA;
return SendClientMessage(playerid,fColYellow,">>FBI: Du hast das Fraktionsfahrzeug erfolgreich umgeparkt.");
}else return fremove(fbifile);
}
}else { return SendClientMessage(playerid,fColGrey,"Du bist dazu nicht berechtigt."); }
}
}fc++;
}return SendClientMessage(playerid,fColGrey,"Du sitzt in keinem Fraktionsfahrzeug.");
}return SendClientMessage(playerid,fColGrey,"Du sitzt in keinem Fahrzeug oder bist nicht der Fahrer.");
}
//E:Text bearbeitet
//E:Befehl eingefügt