Beiträge von Whit3Dev!L

    ??? Nochmal für Dumme bitte ^^ (bla bla 15 Zeichen und 6 Wörter bla bla)


    //Edit: Meinst du das? Das kommt wenn man einsteigen will:



    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    if(GetVehicleModel(vehicleid) == 432 || GetVehicleModel(vehicleid) == 425 || GetVehicleModel(vehicleid) == 520)
    {
    if(IsPlayerInFrac(playerid,3) || PlayerInfo[playerid][pLeader] == 7) { }
    else
    {
    GameTextForPlayer(playerid,"~y~~h~Du hast keinen Schluessel fuer~n~~y~~h~ dieses Auto!", 3500, 1);
    FreezePlayer(playerid);
    }
    }
    return 1;
    }

    Wollte fragen ob man mehr Geld als Terrorist bekommen kann wenn man es an bestimmten Orten hochgehen lässt die Bombe. z.b. Army Base, SFPD Base, etc.


    Hier die Script Zeilen wo man das Geld bekommt und so:



    if(strcmp(cmd, "/explode", true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
    {
    if(SelfStatus == 1)
    {
    SendClientMessage(playerid, COLOR_WHITE, "Du kannst dich nur alle 60min hochjagen.");
    }
    else
    {
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z );
    SetTimer("SAbkling", 3600000 , 300);
    GameTextForPlayer(playerid, "~r~ B.o.o.o.o.m", 5000, 300);
    SendClientMessage(playerid, COLOR_LIGHTRED, ".:Selbstmord ist keine Lösung:.");
    GivePlayerMoney(playerid,5000);
    SelfStatus = 1;
    if (IsPlayerInAnyVehicle(playerid))
    {
    GetPlayerVehicleID(playerid);
    SetVehicleHealth(playerid,0);
    CreateExplosion(x,y,z,6,2);
    CreateExplosion(x,y,z,7,2);
    }
    else
    {
    SetPlayerHealth(playerid,10);
    CreateExplosion(x,y,z,6,2);
    CreateExplosion(x,y,z,7,2);
    }
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsACop(i))
    {
    SendClientMessage(i,COLOR_RED,"BOMBENALARM: Selbstmord Anschlag!");
    }
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_WHITE, "*Du bist kein Terrorist.");
    }
    return 1;
    }

    Wollte fragen ob es einen Terror Rhino gibt womit Terroristen fahren können. Habe den normalen Rhino genommen aber die Terroristen kommen nicht rein.


    Also der Rhino von der Army geht nicht dort kommen die Terrroristen nicht rein.

    Habe es jetzt so:



    new Float:Spawn[][14] =
    {
    {1571.9734,-1694.7366,5.4608},
    {1531.4615,-1478.8479,9.5432},
    {2772.4231,-2354.1746,15.3014},
    {1182.9384,-1314.0101,13.7059},
    {694.5745,-466.9713,15.8766},
    {1544.4252,-1654.9655,6.0225},
    {-1937.4652,297.0116,47.8444},
    {2264.0220,1399.6082,42.4374},
    {599.3893,-1519.8585,15.1724},
    {1826.9275,-2039.7380,13.2444},
    {1242.3684,-807.4321,84.0231},
    {147.6993,-1754.9312,4.8489},
    {690.3946,-439.8338,16.9225},
    {1081.7549,-314.0566,73.5864},
    };


    SetPlayerPos(playerid, Spawn[0][0], Spawn[0][1], Spawn[0][2],
    SetPlayerPos(playerid, Spawn[1][0], Spawn[1][1], Spawn[1][2],
    SetPlayerPos(playerid, Spawn[2][0], Spawn[2][1], Spawn[2][2],
    SetPlayerPos(playerid, Spawn[3][0], Spawn[3][1], Spawn[3][2],
    SetPlayerPos(playerid, Spawn[4][0], Spawn[4][1], Spawn[4][2],
    SetPlayerPos(playerid, Spawn[5][0], Spawn[5][1], Spawn[5][2],
    SetPlayerPos(playerid, Spawn[6][0], Spawn[6][1], Spawn[6][2],
    SetPlayerPos(playerid, Spawn[7][0], Spawn[7][1], Spawn[7][2],
    SetPlayerPos(playerid, Spawn[8][0], Spawn[8][1], Spawn[8][2],
    SetPlayerPos(playerid, Spawn[9][0], Spawn[9][1], Spawn[9][2],
    SetPlayerPos(playerid, Spawn[10][0], Spawn[10][1], Spawn[10][2],
    SetPlayerPos(playerid, Spawn[11][0], Spawn[11][1], Spawn[11][2],
    SetPlayerPos(playerid, Spawn[12][0], Spawn[12][1], Spawn[12][2],
    SetPlayerPos(playerid, Spawn[13][0], Spawn[13][1], Spawn[13][2],
    SetPlayerPos(playerid, Spawn[14][0], Spawn[14][1], Spawn[14][2];
    GivePlayerWeapon(playerid,18,10);


    Dann kommen folgende Errors:



    C:\Users\Chris\Desktop\Reallife Server by iLegendz\gamemodes\larp.pwn(8998) : error 021: symbol already defined: "Spawn"
    C:\Users\Chris\Desktop\Reallife Server by iLegendz\gamemodes\larp.pwn(9016) : error 021: symbol already defined: "SetPlayerPos"
    C:\Users\Chris\Desktop\Reallife Server by iLegendz\gamemodes\larp.pwn(84020) : warning 203: symbol is never used: "Spawn"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.


    Zeile 8998: new Float:Spawn[][14] =


    Zeile 9016: SetPlayerPos(playerid, Spawn[0][0], Spawn[0][1], Spawn[0][2],


    Zeile 84020: Gibts nicht.


    Und wenn ich mich Leader LSPD mache Spawne ich immer da wo ich war und ich hab zivi Skin also der Speichert die Skins irgendwie auch nicht.


    Hoffe mir kann jemand helfen.


    //Edit: Oder kann wer per TeamViewer mal nachgucken? Wenn ja schreibt mich mal per PN an.

    Also so:



    (SetPlayerPos(playerid, Spawn[0][0], Spawn[0][1], Spawn[0][2],
    SetPlayerPos(playerid, Spawn[1][0], Spawn[1][1], Spawn[1][2],
    SetPlayerPos(playerid, Spawn[2][0], Spawn[2][1], Spawn[2][2],
    SetPlayerPos(playerid, Spawn[3][0], Spawn[3][1], Spawn[3][2],
    SetPlayerPos(playerid, Spawn[4][0], Spawn[4][1], Spawn[4][2],
    SetPlayerPos(playerid, Spawn[5][0], Spawn[5][1], Spawn[5][2],
    SetPlayerPos(playerid, Spawn[6][0], Spawn[6][1], Spawn[6][2],
    SetPlayerPos(playerid, Spawn[7][0], Spawn[7][1], Spawn[7][2],
    SetPlayerPos(playerid, Spawn[8][0], Spawn[8][1], Spawn[8][2],
    SetPlayerPos(playerid, Spawn[9][0], Spawn[9][1], Spawn[9][2],
    SetPlayerPos(playerid, Spawn[10][0], Spawn[10][1], Spawn[10][2],
    SetPlayerPos(playerid, Spawn[11][0], Spawn[11][1], Spawn[11][2],
    SetPlayerPos(playerid, Spawn[12][0], Spawn[12][1], Spawn[12][2],
    SetPlayerPos(playerid, Spawn[13][0], Spawn[13][1], Spawn[13][2],
    SetPlayerPos(playerid, Spawn[14][0], Spawn[14][1], Spawn[14][2]);
    GivePlayerWeapon(playerid,18,10);


    //Edit: Jetzt hab ich noch die Errors:



    C:\Users\Chris\Desktop\Reallife Server by iLegendz\gamemodes\larp.pwn(8999) : error 021: symbol already defined: "SetPlayerPos"
    C:\Users\Chris\Desktop\Reallife Server by iLegendz\gamemodes\larp.pwn(84003) : warning 203: symbol is never used: "Spawn"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.



    new Float:Spawn[][14] =
    {
    {1571.9734,-1694.7366,5.4608},
    {1531.4615,-1478.8479,9.5432},
    {2772.4231,-2354.1746,15.3014},
    {1182.9384,-1314.0101,13.7059},
    {694.5745,-466.9713,15.8766},
    {1544.4252,-1654.9655,6.0225},
    {-1937.4652,297.0116,47.8444},
    {2264.0220,1399.6082,42.4374},
    {599.3893,-1519.8585,15.1724},
    {1826.9275,-2039.7380,13.2444},
    {1242.3684,-807.4321,84.0231},
    {147.6993,-1754.9312,4.8489},
    {690.3946,-439.8338,16.9225},
    {1081.7549,-314.0566,73.5864},
    };


    Zeile 8999: SetPlayerPos(playerid, Spawn[0][0], Spawn[0][1], Spawn[0][2],
    SetPlayerPos(playerid, Spawn[1][0], Spawn[1][1], Spawn[1][2],
    SetPlayerPos(playerid, Spawn[2][0], Spawn[2][1], Spawn[2][2],
    SetPlayerPos(playerid, Spawn[3][0], Spawn[3][1], Spawn[3][2],
    SetPlayerPos(playerid, Spawn[4][0], Spawn[4][1], Spawn[4][2],
    SetPlayerPos(playerid, Spawn[5][0], Spawn[5][1], Spawn[5][2],
    SetPlayerPos(playerid, Spawn[6][0], Spawn[6][1], Spawn[6][2],
    SetPlayerPos(playerid, Spawn[7][0], Spawn[7][1], Spawn[7][2],
    SetPlayerPos(playerid, Spawn[8][0], Spawn[8][1], Spawn[8][2],
    SetPlayerPos(playerid, Spawn[9][0], Spawn[9][1], Spawn[9][2],
    SetPlayerPos(playerid, Spawn[10][0], Spawn[10][1], Spawn[10][2],
    SetPlayerPos(playerid, Spawn[11][0], Spawn[11][1], Spawn[11][2],
    SetPlayerPos(playerid, Spawn[12][0], Spawn[12][1], Spawn[12][2],
    SetPlayerPos(playerid, Spawn[13][0], Spawn[13][1], Spawn[13][2],
    SetPlayerPos(playerid, Spawn[14][0], Spawn[14][1], Spawn[14][2];
    GivePlayerWeapon(playerid,18,10);



    Zeile 84003 existiert nicht.


    //Edit2: Und wenn ich mich Leader LSPD mache Spawne ich immer da wo ich war und ich hab zivi Skin also der Speichert die Skins iwie auch net

    THX probiere eben mal melde mich glei nomma


    //Edit: Kommt wieder ein Fehler.


    Pawn Compiler libary funktioniert nicht mehr.



    public OnPlayerSpawn(playerid)


    {
    switch(GetPVarInt(playerid,"Fraktion"))
    {
    case 0:{}
    case 1:{
    SetPlayerPos(playerid,LSPDSpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 2:{
    SetPlayerPos(playerid,FBISpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 3:{
    SetPlayerPos(playerid,SurenosSpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 4:{
    SetPlayerPos(playerid,SignatraSpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 5:{
    SetPlayerPos(playerid,ArmySpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 6:{
    SetPlayerPos(playerid,SFPDSpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 7:{
    SetPlayerPos(playerid,LVPDSpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 8:{
    SetPlayerPos(playerid,FDSpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 9:{
    SetPlayerPos(playerid,LaViceSpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 10:{
    SetPlayerPos(playerid,SonsOfAnarchySpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 11:{
    SetPlayerPos(playerid,SKSpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 12:{
    SetPlayerPos(playerid,MedicSpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 13:{
    SetPlayerPos(playerid,SwatSpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    case 14:{
    SetPlayerPos(playerid,HitmanSpawn);
    GivePlayerWeapon(playerid,18,10);
    }
    return 1;
    }

    Hallo ich wollte eben es so machen das die Fraktionen dort Spawnen wo ihre Base ist.


    Ich habe es so gemacht:



    public OnPlayerSpawn(playerid)


    {
    switch(GetPVarInt(playerid,"Fraktion"))
    {
    case 0:{}
    case 1:{SetPlayerPos(playerid,LSPDSpawn);GivePlayerWeapon(playerid,18,10);}
    case 2:{SetPlayerPos(playerid,FBISpawn);GivePlayerWeapon(playerid,18,10);}
    case 3:{SetPlayerPos(playerid,SurenosSpawn);GivePlayerWeapon(playerid,18,10);}
    case 4:{SetPlayerPos(playerid,SignatraSpawn);GivePlayerWeapon(playerid,18,10);}
    case 5:{SetPlayerPos(playerid,ArmySpawn);GivePlayerWeapon(playerid,18,10);}
    case 6:{SetPlayerPos(playerid,SFPDSpawn);GivePlayerWeapon(playerid,18,10);}
    case 7:{SetPlayerPos(playerid,LVPDSpawn);GivePlayerWeapon(playerid,18,10);}
    case 8:{SetPlayerPos(playerid,FDSpawn);GivePlayerWeapon(playerid,18,10);}
    case 9:{SetPlayerPos(playerid,LaViceSpawn);GivePlayerWeapon(playerid,18,10);}
    case 10:{SetPlayerPos(playerid,SonsOfAnarchySpawn);GivePlayerWeapon(playerid,18,10);}
    case 11:{SetPlayerPos(playerid,SKSpawn);GivePlayerWeapon(playerid,18,10);}
    case 12:{SetPlayerPos(playerid,MedicSpawn);GivePlayerWeapon(playerid,18,10);}
    case 13:{SetPlayerPos(playerid,SwatSpawn);GivePlayerWeapon(playerid,18,10);}
    case 14:{SetPlayerPos(playerid,HitmanSpawn);GivePlayerWeapon(playerid,18,10);}
    }
    return 1;
    }


    Und oben im Script habe ich:


    [pwn]
    //Spawns
    #define LSPDSpawn 1571.9734,-1694.7366,5.4608
    #define FBISpawn 1531.4615,-1478.8479,9.5432
    #define ArmySpawn 2772.4231,-2354.1746,15.3014
    #define MedicSpawn 1182.9384,-1314.0101,13.7059
    #define SKSpawn 694.5745,-466.9713,15.8766
    #define SWATSpawn 1544.4252,-1654.9655,6.0225
    #define SFPDSpawn -1937.4652,297.0116,47.8444
    #define LVPDSpawn 2264.0220,1399.6082,42.4374
    #define FDSpawn 599.3893,-1519.8585,15.1724
    #define SurenosSpawn 1826.9275,-2039.7380,13.2444
    #define SignatraSpawn 1242.3684,-807.4321,84.0231
    #define LaViceSpawn 147.6993,-1754.9312,4.8489
    #define SonsOfAnarchySpawn 690.3946,-439.8338,16.9225
    #define HitmenSpawn 1081.7549,-314.0566,73.5864


    Aber leider wenn ich es Compilieren will dann kommt:


    "Pawn Compiler libary funktioniert nicht mehr."


    Wenn ich das unter OnPlayerSpawn wegenehme dann kann ich es Compilieren.


    Ich bin mir nicht sicher ob das hier etwas damit zutun hat:



    if(gTeam[playerid] == 3)
    {
    if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0)
    {
    SendClientMessage(playerid, COLOR_LIGHTRED, "You are part of a Family/Force, you've been forced to the right Class + Char !");
    MedicBill[playerid] = 0;
    new model = PlayerInfo[playerid][pChar];
    if(PlayerInfo[playerid][pMember] == 1) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
    else if(PlayerInfo[playerid][pMember] == 2) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
    else if(PlayerInfo[playerid][pMember] == 3) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
    else if(PlayerInfo[playerid][pMember] == 4) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; }
    else if(PlayerInfo[playerid][pMember] == 5) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
    else if(PlayerInfo[playerid][pMember] == 6) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
    else if(PlayerInfo[playerid][pMember] == 7) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pMember] == 8) { SetSpawnInfo(playerid, 10, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; }
    else if(PlayerInfo[playerid][pMember] == 9) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
    else if(PlayerInfo[playerid][pMember] == 10) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
    else if(PlayerInfo[playerid][pMember] == 11) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
    else if(PlayerInfo[playerid][pMember] == 12) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; }
    else if(PlayerInfo[playerid][pMember] == 13) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pMember] == 14) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
    else if(PlayerInfo[playerid][pMember] == 15) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
    else if(PlayerInfo[playerid][pMember] == 16) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
    else if(PlayerInfo[playerid][pLeader] == 1) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 2) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 3) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 4) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 5) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 6) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 7) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 8) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 9) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 10) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 11) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 12) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; }
    else if(PlayerInfo[playerid][pLeader] == 13) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 14) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 15) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    else if(PlayerInfo[playerid][pLeader] == 16) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
    //SetSpawnInfo(playerid, team, model,0.0,0.0,0.0,0,0,0,0,0,0,0);
    SpawnPlayer(playerid);
    }


    Hoffe ihr könnt mir helfen.


    Gruß PsYcH0999

    Hallo,


    so meine Fragen:


    1.)


    Ich wollte es so machen das alle Fraktionen in ihren Basen Spawnen. Da habe ich ganz oben im Script folgendes geschrieben:



    //Spawns
    #define LSPDSpawn 1571.9734,-1694.7366,5.4608
    #define FBISpawn 1531.4615,-1478.8479,9.5432
    #define ArmySpawn 2772.4231,-2354.1746,15.3014
    #define MedicSpawn 1182.9384,-1314.0101,13.7059
    #define SKSpawn 694.5745,-466.9713,15.8766
    #define SWATSpawn 1544.4252,-1654.9655,6.0225
    #define SFPDSpawn -1937.4652,297.0116,47.8444
    #define LVPDSpawn 2264.0220,1399.6082,42.4374
    #define FDSpawn 599.3893,-1519.8585,15.1724
    #define SurenosSpawn 1826.9275,-2039.7380,13.2444
    #define SignatraSpawn 1242.3684,-807.4321,84.0231
    #define LaViceSpawn 147.6993,-1754.9312,4.8489
    #define SonsOfAnarchySpawn 690.3946,-439.8338,16.9225
    #define HitmenSpawn 1081.7549,-314.0566,73.5864


    Dann unter OnPlayerSpawn folgendes:



    {
    switch(GetPVarInt(playerid,"Fraktion"))
    {
    case 0:{}
    case 1:{SetPlayerPos(playerid,LSPDSpawn);GivePlayerWeapon(playerid,18,10);}
    case 2:{SetPlayerPos(playerid,FBISpawn);GivePlayerWeapon(playerid,18,10);}
    case 3:{SetPlayerPos(playerid,SurenosSpawn);GivePlayerWeapon(playerid,18,10);}
    case 4:{SetPlayerPos(playerid,SignatraSpawn);GivePlayerWeapon(playerid,18,10);}
    case 5:{SetPlayerPos(playerid,ArmySpawn);GivePlayerWeapon(playerid,18,10);}
    case 6:{SetPlayerPos(playerid,SFPDSpawn);GivePlayerWeapon(playerid,18,10);}
    case 7:{SetPlayerPos(playerid,LVPDSpawn);GivePlayerWeapon(playerid,18,10);}
    case 8:{SetPlayerPos(playerid,FDSpawn);GivePlayerWeapon(playerid,18,10);}
    case 9:{SetPlayerPos(playerid,LaViceSpawn);GivePlayerWeapon(playerid,18,10);}
    case 10:{SetPlayerPos(playerid,SonsOfAnarchySpawn);GivePlayerWeapon(playerid,18,10);}
    case 11:{SetPlayerPos(playerid,SKSpawn);GivePlayerWeapon(playerid,18,10);}
    case 12:{SetPlayerPos(playerid,MedicSpawn);GivePlayerWeapon(playerid,18,10);}
    case 13:{SetPlayerPos(playerid,SwatSpawn);GivePlayerWeapon(playerid,18,10);}
    case 14:{SetPlayerPos(playerid,HitmanSpawn);GivePlayerWeapon(playerid,18,10);}
    }
    return 1;
    }


    Dann habe ich noch einen Stock erstellt:



    stock IsPlayerInFrakt(playerid,fraktid)
    {
    if(GetPVarInt(playerid,"Fraktion")==fraktid)return 1;
    return 0;
    }


    Dann wollte ich es Compilieren aber dann kam Pawn Compiler oder so funktioniert nicht mehr. Und das kommt immer. Dann habe ich das unter OnPlayerSpawn weggenommen und ich konnte es Compilieren. Was ist dabei der Fehler???


    2.)


    So meine 2. Frage: Ich wollte es so machen das man den Spielern am Anfang die Scheine geben kann. Also Passport, Driving License, Flying License, Boat License, Weapon License, etc. Aber ich weiß nicht wo und wie ich den Befehl Scripten kann.


    3.) So meine 3. und letzte Frage: Wie kann ich ein Command Scripten das ein Level 4 Admin z.B. einem Spieler Level 2,3 oder andere Level geben kann? Wo muss ich das machen und wie?


    Habe Frage 2 und 3 schonmal ausprobiert aber dann ist mein PC abgekackt nach dem das Compilieren gescheitert war. Also Compilieren ging nicht kamen Errors.


    Wäre nett wenn ihr mir helfen könntet.


    Gruß PsYcH0999