fraktionen spawn'S

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
  • also ich wollte lcn spawn ändern ich habe schon /save gemacht dann steht da irgentwie in meinen GTA-verzeichnis en savedposition da klick ich drauf dann steht da AddPlayerClass(113,1721.1156,-1671.7085,20.2239,2.0975,0,0,0,0,0,0); // das weis eig jeder was da drinn steht ^^ aber unter welche zeile muss ich das schreiben? bwz einfügen? also in meinem script ...

    Registrierungsdatum: 2.08.2008 8)


    Lappenb0y.

  • Hier:
    if(PlayerInfo[playerid][pLeader] == 7)//Mayor spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 3);
    SetPlayerPos(playerid, 356.2998,151.9914,1025.7891);
    PlayerInfo[playerid][pInt] = 3;
    PlayerInfo[playerid][pLocal] = 241;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Police Force spawn & FBI/ATF
    {
    SetPlayerToTeamColor(playerid);
    rand = random(sizeof(gCopPlayerSpawns));
    SetPlayerPos(playerid, gCopPlayerSpawns[rand][0], gCopPlayerSpawns[rand][1], gCopPlayerSpawns[rand][2]); // Warp the player
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    SetPlayerToTeamColor(playerid);
    rand = random(sizeof(gCopPlayerSpawns));
    SetPlayerPos(playerid, gCopPlayerSpawns[rand][0], gCopPlayerSpawns[rand][1], gCopPlayerSpawns[rand][2]); // Warp the player
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//National Guard spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, -1346.2050,492.3983,11.2027);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Fire/Ambulance spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, -2656.0393,635.0596,14.4531);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//LaCosaNostra spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1124.2415,-2037.1274,69.8847);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//Yakuza spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, -2192.3020,646.8816,49.4375);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Hitman spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, 1102.7017,-299.0774,73.9922);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) //News-Reporter spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, -2050.8962,460.0262,35.1719);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) //Taxi Cab Company spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, -1978.5934,102.9237,27.6875);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if(IsAnInstructor(playerid)) //Driving/Flying School spawn
    {
    if(SchoolSpawn[playerid] == 0)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, -2032.6810,-117.4816,1035.1719);
    SetPlayerFacingAngle(playerid, 275.1114);
    SetPlayerInterior(playerid,3);
    PlayerInfo[playerid][pInt] = 3;
    }
    else if(SchoolSpawn[playerid] == 1)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, 414.4144,2531.9580,19.1565);
    SetPlayerFacingAngle(playerid, 4.6505);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    }
    return 1;
    }

  • Das ist die Stelle wo mans einfügen muss. Genauer genommen ist das immer bei "SetPlayerPos(playerid,x,y,z)".


    PS: die xyz koords sind da so enthalten:


    AddPlayerClass(113,1721.1156,-1671.7085,20.2239,2.0975,0,0,0,0,0,0);


    AddPlayerClass(skin,X,Y,Z,drehung,waffe1,munition1,w2,m2,w3,m3);


    Ich scripte NICHT mehr, ich möchte mit NIEMANDEM einen Server aufmachen habe auch NICHTS mehr mit LoH zu tun, also lasst es mit den PNs!

  • if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//LaCosaNostra spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1124.2415,-2037.1274,69.8847);
    AddPlayerClass(113,1721.1156,-1671.7085,20.2239,2.0975,0,0,0,0,0,0);
    PlayerInfo[playerid][pInt] = 0;
    return 1;



    Richtig oder falsch? xD


    wenn ich dann Compile und Compile run mache sind da keine errrors


    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    Header size: 5940 bytes
    Code size: 1102116 bytes
    Data size: 2188232 bytes
    Stack/heap size: 16384 bytes; estimated max. usage=4904 cells (19616 bytes)
    Total requirements: 3312672 bytes


    aber wenn ich InsGame gehe hat sich nix geändert lol

    Registrierungsdatum: 2.08.2008 8)


    Lappenb0y.

  • if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//LaCosaNostra spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1124.2415,-2037.1274,69.8847);
    AddPlayerClass(113,1721.1156,-1671.7085,20.2239,2.0975,0,0,0,0,0,0);
    PlayerInfo[playerid][pInt] = 0;
    return 1;



    falsch



    if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//LaCosaNostra spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1721.1156,-1671.7085,20.2239);
    PlayerInfo[playerid][pInt] = 0;
    return 1;



    richtig :O