Player wird nicht aus Car Geworfen

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hei,weder die Message kommt wenn ich net in der Frak bin noch werde ich rausgeworfen...



    stock SF8Member(playerid)
    {
    if(PlayerInfo[playerid][pMember] ==1 || PlayerInfo[playerid][pLeader] ==1) return 1;
    return 0;
    }




    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    if(newstate == PLAYER_STATE_DRIVER)
    {
    if(GetPlayerVehicleID(playerid) == IsASF8Car(GetPlayerVehicleID(playerid)))
    {
    if(!SF8Member(playerid))
    {
    SendClientMessage(playerid,GELB,"Du bist kein Mitglied der SF8");
    RemovePlayerFromVehicle(playerid);
    return 1;
    }
    }
    }
    return 1;
    }



    ?( bekomme es net hin


  • //-------------SF8 Cars -----------------------
    SF8Car[1] = AddStaticVehicleEx(470,190.89999390,1919.50000000,17.79999924,0.00000000,0, 0, 1800); //Patriot
    SF8Car[2] = AddStaticVehicleEx(470,195.10000610,1919.50000000,17.79999924,0.00000000,0, 0, 1800); //Patriot
    SF8Car[3] = AddStaticVehicleEx(480,200.39999390,1919.00000000,17.60000038,0.00000000,0, 0, 1800); //Comet
    SF8Car[4] = AddStaticVehicleEx(480,204.10000610,1919.19995117,17.60000038,0.00000000,0, 0, 1800); //Comet
    SF8Car[5] = AddStaticVehicleEx(560,209.50000000,1918.90002441,17.39999962,0.00000000,0, 0, 1800); //Sultan
    SF8Car[6] = AddStaticVehicleEx(560,213.10000610,1919.00000000,17.39999962,0.00000000,0, 0, 1800); //Sultan
    SF8Car[7] = AddStaticVehicleEx(560,217.60000610,1918.80004883,17.39999962,0.00000000,0, 0, 1800); //Sultan
    SF8Car[8] = AddStaticVehicleEx(560,221.89999390,1919.19995117,17.39999962,0.00000000,0, 0, 1800); //Sultan
    SF8Car[9] = AddStaticVehicleEx(548,227.00000000,1891.09960938,19.50000000,0.00000000,0, 0, 1800); //Cargobob
    SF8Car[10] = AddStaticVehicleEx(548,202.39999390,1889.90002441,19.50000000,0.00000000,0, 0, 1800); //Cargobob
    SF8Car[11] = AddStaticVehicleEx(433,134.00000000,1839.69995117,18.20000076,0.00000000,0, 0, 1800); //Barracks
    SF8Car[12] = AddStaticVehicleEx(433,128.00000000,1839.80004883,18.20000076,0.00000000,0, 0, 1800); //Barracks
    SF8Car[13] = AddStaticVehicleEx(433,121.50000000,1839.59997559,18.20000076,0.00000000,0, 0, 1800); //Barracks
    SF8Car[14] = AddStaticVehicleEx(433,114.50000000,1839.59997559,18.20000076,0.00000000,0, 0, 1800); //Barracks
    SF8Car[15] = AddStaticVehicleEx(432,133.50000000,1854.90002441,17.79999924,0.00000000,0, 0, 1800); //Rhino
    SF8Car[16] = AddStaticVehicleEx(432,124.40000153,1854.90002441,17.79999924,0.00000000,0, 0, 1800); //Rhino
    SF8Car[17] = AddStaticVehicleEx(432,114.59999847,1854.00000000,17.79999924,0.00000000,0, 0, 1800); //Rhino
    SF8Car[18] = AddStaticVehicleEx(520,285.00000000,1954.40002441,18.60000038,272.00000000,0, 0, 1800); //Hydra
    SF8Car[19] = AddStaticVehicleEx(520,286.60000610,1988.59997559,18.60000038,271.99951172,0, 0, 1800); //Hydra
    SF8Car[20] = AddStaticVehicleEx(520,286.70001221,2022.59997559,18.60000038,271.99951172,0, 0, 1800); //Hydra
    SF8Car[21] = AddStaticVehicleEx(520,307.00000000,2048.39990234,18.60000038,179.99951172,0, 0, 1800); //Hydra
    SF8Car[23] = AddStaticVehicleEx(447,225.69999695,1859.09997559,20.70000076,0.00000000,0, 0, 1800); //Seasparrow
    SF8Car[24] = AddStaticVehicleEx(447,213.30000305,1859.09997559,20.70000076,0.00000000,0, 0, 1800); //Seasparrow
    SF8Car[25] = AddStaticVehicleEx(447,201.10000610,1859.30004883,20.70000076,0.00000000,0, 0, 1800); //Seasparrow
    SF8Car[26] = AddStaticVehicleEx(490,256.89999390,1812.40002441,18.00000000,0.00000000,0, 0, 1800); //FBI Rancher
    SF8Car[27] = AddStaticVehicleEx(578,270.29998779,1831.30004883,18.39999962,179.99450684,0, 0, 1800); //DFT-30
    SF8Car[28] = AddStaticVehicleEx(578,253.80000305,1831.59997559,18.39999962,179.99450684,0, 0, 1800); //DFT-30
    SF8Car[29] = AddStaticVehicleEx(490,251.19999695,1812.59997559,18.00000000,0.00000000,0, 0, 1800); //FBI Rancher
    SF8Car[30] = AddStaticVehicleEx(490,245.60000610,1812.59997559,18.00000000,0.00000000,0, 0, 1800); //FBI Rancher
    SF8Car[31] = AddStaticVehicleEx(490,239.80000305,1812.80004883,18.00000000,0.00000000,0, 0, 1800); //FBI Rancher
    SF8Car[32] = AddStaticVehicleEx(490,234.00000000,1812.90002441,18.00000000,0.00000000,0, 0, 1800); //FBI Rancher

  • public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    if(newstate == PLAYER_STATE_DRIVER)
    {
    if(GetPlayerVehicleID(playerid) == IsASF8Car(GetPlayerVehicleID(playerid)))
    {
    if(SF8Member(playerid))
    {
    return 1;
    }
    else
    {
    SendClientMessage(playerid,GELB,"Du bist kein Mitglied der SF8");
    RemovePlayerFromVehicle(playerid);
    return 1;
    }
    }
    }


    versuchs mal so :)