Beiträge von Corvus

    Guten Tag,
    Sobald man auf den Server connectet kommt Stay in the World Bons.
    Code von SetPlayerSpawn:
    Function SetPlayerSpawn(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pTot] == 1)
    {
    SendClientMessage(playerid, COLOR_LIGHTRED, "Da du Schwer Verletzt wurdest, liegst du nun Bewusstlos am Boden");
    TogglePlayerControllable(playerid, 0);
    ResetPlayerWeapons(playerid);
    SetPlayerPos(playerid,1162.871704, -1339.109619, 14.297291);
    SetPlayerCameraPos(playerid, 1223.379028, -1333.354126, 33.809105);
    SetPlayerCameraLookAt(playerid, 1178.824829, -1325.804077, 13.284119);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerInterior(playerid, 0);
    return 1;
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "NeuerBot", true))
    {
    PlayerInfo[playerid][pCarLic] = 1;
    PlayerInfo[playerid][pChar] = 255;
    PlayerInfo[playerid][pJob] = 14;
    SetPlayerSkin(playerid, 255);
    PutPlayerInVehicle(playerid, car_BulletLS, 0);
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "Busbot1", true))
    {
    PlayerInfo[playerid][pCarLic] = 1;
    PlayerInfo[playerid][pChar] = 255;
    PlayerInfo[playerid][pJob] = 14;
    SetPlayerSkin(playerid, 255);
    PutPlayerInVehicle(playerid, car_Busbot1, 0);
    }
    }
    if(PlayerInfo[playerid][pTut] == 0 && !IsPlayerNPC(playerid))
    {
    gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
    AtRegestration[playerid] = 1;
    RegistrationStep[playerid] = 1;
    SetPlayerCameraPos(playerid, 1434.6798, -1612.6145, 72.9015);
    SetPlayerCameraLookAt(playerid, 1435.2239, -1613.4575, 72.4415);
    TogglePlayerControllable(playerid,0);
    SendClientMessage(playerid, COLOR_YELLOW, "");
    SendClientMessage(playerid, COLOR_LIGHTRED, "Bist du Männlich oder Weiblich?");
    ShowPlayerDialog(playerid,DIALOG_REGSTEP_1,DIALOG_STYLE_MSGBOX,"Geschlecht","Bist du Männlich oder Weiblich?","Männlich","Weiblich");
    SetPlayerCameraPos(playerid, 1434.6798, -1612.6145, 72.9015);
    SetPlayerCameraLookAt(playerid, 1435.2239, -1613.4575, 72.4415);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid, 0);
    }
    new rand;
    new house = PlayerInfo[playerid][pPhousekey];
    if(PlayerPaintballing[playerid] != 0)
    {
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid, 29, 999);
    GivePlayerWeapon(playerid, 24, 999);
    rand = random(sizeof(PaintballSpawns));
    SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
    return 1;
    }
    if(KnastTime[playerid] > 0)
    {
    SetPlayerToKnast(playerid,Knast[playerid]);
    SendClientMessage(playerid, COLOR_LIGHTRED, " Flüchten bringt nichts, zurück in die Zelle!");
    SetPlayerInterior(playerid,3);
    return 1;
    }
    if(PlayerInfo[playerid][pJailed] == 1)
    {
    SetPlayerInterior(playerid,10);
    SetPlayerPos(playerid,219.4217,110.5207,999.0156);
    SetCameraBehindPlayer(playerid);
    TogglePlayerControllable(playerid, 1);
    SetPlayerVirtualWorld(playerid, 0);
    SendClientMessage(playerid, COLOR_LIGHTRED, "Flüchten bringt nichts, zurück in die Zelle!");
    return 1;
    }
    if(PlayerInfo[playerid][pJailed] == 2)
    {
    SendClientMessage(playerid, COLOR_LIGHTRED, "Du wurdest wieder ins Gefängnis gebracht!");
    SetPlayerInterior(playerid,6);
    SetCameraBehindPlayer(playerid);
    TogglePlayerControllable(playerid, 1);
    SetPlayerPos(playerid, 263.5588,86.7332,1001.0391);
    SetPlayerVirtualWorld(playerid, 0);
    return 1;
    }
    if(PlayerInfo[playerid][pGangJailed] == 1)
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, 218.9510,-231.8540,1.7786);
    SetCameraBehindPlayer(playerid);
    TogglePlayerControllable(playerid, 1);
    SendClientMessage(playerid, COLOR_LIGHTRED, " Du befindest dich noch im GangJail!");
    return 1;
    }
    if(house != 255)
    {
    if(SpawnChange[playerid]) //If 1, then you get to your house, else spawn somewhere else
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid,HouseInfo[house][hInt]);
    SetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
    PlayerInfo[playerid][pLocal] = house;
    PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
    SetPlayerVirtualWorld(playerid,house);
    return 1;
    }
    }//======== ALLE SPAWNS ===== //
    if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)// LS Police spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid, 227.2998,74.1214,1005.0391); // Warp the player
    SetPlayerFacingAngle(playerid,272.6156);
    SetPlayerInterior(playerid,6);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) //FBI
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid,0);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,-1718.0100000,1018.0400000,17.8000000);
    SetPlayerFacingAngle(playerid,90.0000);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerArmour(playerid, 100);


    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//lvpd spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid,2281.1982,2446.8792,3.5313);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Sanitäter spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,1178.0094,-1323.1536,14.0989);
    SetPlayerFacingAngle(playerid,273.6423);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//LaCosaNostra spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerHealth(playerid,100);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid,2107.4829,1004.1138,11.0651);
    SetPlayerFacingAngle(playerid,1.7557);
    return 1;
    }
    if (PlayerInfo[playerid][pLeader] == 6)//Leader Yakuza
    {
    SetPlayerToTeamColor(playerid);// fraktions farbe
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid,2632.5498,1824.4310,11.0234);//spawn koordinaten
    SetPlayerFacingAngle(playerid,88.3555);
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if(PlayerInfo[playerid][pMember] == 6)//Member Yakuza
    {
    SetPlayerHealth(playerid,100);
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid,2632.5498,1824.4310,11.0234);//spawn koordinaten
    SetPlayerFacingAngle(playerid,88.3555);
    return 1;
    }
    if(PlayerInfo[playerid][pLeader] == 7)//San Andreas Präsident spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,1290.6393,-791.4279,1089.9375);
    SetPlayerInterior(playerid, 5);
    SetPlayerVirtualWorld(playerid, 4);
    SetPlayerArmour(playerid,100);
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if(PlayerInfo[playerid][pMember] == 7)//Bodyguard spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,1274.0594,-790.8364,1089.9316);
    SetPlayerInterior(playerid, 5);
    SetPlayerVirtualWorld(playerid, 4);
    SetPlayerArmour(playerid,100);
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Hitman spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, 1956.5480,691.4636,10.8203);
    SetPlayerFacingAngle(playerid,88.2029);
    SetPlayerHealth(playerid,100);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) //News Reporter spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,-308.4424,1538.4647,75.5625);
    SetPlayerFacingAngle(playerid, 179.6135);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) //Taxi spawn
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid, 1025.2363,-1358.8267,13.7266);
    SetPlayerFacingAngle(playerid,243.8503);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerArmour(playerid,100);
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) //Fuegos
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,-2642.3894,1398.7834,906.4666);
    SetPlayerFacingAngle(playerid,51.4238);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid, 0);
    PlayerInfo[playerid][pInt] = 3;
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) //GROOVE STREET FAMILIY
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2529.3440,-1667.3522,15.1686);
    SetPlayerHealth(playerid,100);
    SetPlayerVirtualWorld(playerid, 0);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) //Ballas GANG
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2473.5352,-1287.1400,29.8294);
    SetPlayerFacingAngle(playerid,177.0701);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15) //Street Racer
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,-2032.5929,161.4476,29.046);
    SetPlayerFacingAngle(playerid,263.0450);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16) //Los Santos Vagos
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerVirtualWorld(playerid,8);
    SetPlayerFacingAngle(playerid,88.9785);
    SetPlayerInterior(playerid,8);
    SetPlayerVirtualWorld(playerid, 0);
    PlayerInfo[playerid][pInt] = 8;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17) //Varios Los Aztecas
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerFacingAngle(playerid,134.9023);
    SetPlayerInterior(playerid,8);
    PlayerInfo[playerid][pInt] = 8;
    SetPlayerVirtualWorld(playerid,9);
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18) //Los Santos Rifa
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,-2465.1494,-21.6143,28.0547);
    SetPlayerHealth(playerid,100);
    SetPlayerFacingAngle(playerid,223.2888);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19) //RS SPAWN
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,234.1262,1081.6293,1084.2415);
    SetPlayerFacingAngle(playerid,179.4645);
    SetPlayerInterior(playerid,6);
    SetPlayerVirtualWorld(playerid,5);
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20) //Terroristen
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerFacingAngle(playerid,179.9684);
    SetPlayerInterior(playerid,8);
    SetPlayerVirtualWorld(playerid,12);
    GivePlayerWeapons(playerid);
    SetPlayerHealth(playerid,100);
    return 1;
    }
    if(IsPlayerInFrac(playerid, 21))
    {
    SetPlayerPos(playerid, 2562.6875,-1282.1237,1065.3672);
    SetPlayerInterior(playerid,2);
    SetPlayerVirtualWorld(playerid,0);
    GivePlayerWeapons(playerid);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22) //SWAT
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid,10);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid,216.5056,168.7749,1003.0234);
    SetPlayerFacingAngle(playerid,273.0);
    SetPlayerInterior(playerid, 3);
    SetPlayerArmour(playerid, 100);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23) //Triaden spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,-2720.4929,-318.5245,7.8438);
    SetPlayerFacingAngle(playerid,46.0943);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid, 0);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24) //Oamt spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2176.3252,2046.1682,16.3220);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid, 0);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if(IsAnInstructor(playerid)) //Fahrschule spawn
    {
    if(SchoolSpawn[playerid] == 0)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,-2022.2632,-116.6569,1035.1719);
    SetPlayerFacingAngle(playerid,4.7173);
    SetPlayerInterior(playerid,3);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerHealth(playerid, 100);
    GivePlayerWeapons(playerid);
    }
    else if(SchoolSpawn[playerid] == 1)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2145.5706,-1803.3696,16.1406);
    SetPlayerFacingAngle(playerid,4.7173);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerHealth(playerid, 100);
    GivePlayerWeapons(playerid);
    }
    return 1;
    }
    if ((gTeam[playerid]) == 1)
    {
    SetPlayerToTeamColor(playerid);
    rand = random(sizeof(gMedPlayerSpawns));
    SetPlayerPos(playerid, gMedPlayerSpawns[rand][0], gMedPlayerSpawns[rand][1], gMedPlayerSpawns[rand][2]); // Warp the player
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    else
    {
    SetPlayerToTeamColor(playerid);
    if(PlayerInfo[playerid][pOrigin] == 1 || PlayerInfo[playerid][pOrigin] == 2 || PlayerInfo[playerid][pOrigin] == 3)
    {
    SetPlayerPos(playerid,1757.8586,-1895.5825,13.5561);
    SetPlayerFacingAngle(playerid,267.9927);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid, 0);
    PlayerInfo[playerid][pInt] = 0;
    PlayerInfo[playerid][pRollerLic] = 1;
    PlayerInfo[playerid][pPhoneBook] = 1;
    }
    else
    {
    rand = random(sizeof(gRandomPlayerSpawns));
    SetPlayerPos(playerid, gRandomPlayerSpawns[rand][0], gRandomPlayerSpawns[rand][1], gRandomPlayerSpawns[rand][2]); // Warp the player
    SetPlayerFacingAngle(playerid, 180.0); //normal 270.0
    SetPlayerInterior(playerid,3); //normal 15
    PlayerInfo[playerid][pInt] = 3; //normal 15
    SetPlayerVirtualWorld(playerid, 0);
    }
    return 1;
    }
    }
    return 1;
    }


    Mfg, Corvus