beim Spawn...

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
  • Ich schätze mal du willst einen DM Server machen? :P




    gTeam (Nach oben):


    static gTeam[MAX_PLAYERS];
    #define TEAM_GROVE 0
    #define TEAM_BALLAS 1
    #define TEAM_COP 2
    #define TEAM_TRIADEN 3
    #define TEAM_HITMAN 4


    AddPlayerClass (Bei OnGameModeInit):



    AddPlayerClass(102,2002.9896,-1115.7136,27.1250,92.0379,0,0,0,0,0,0); // Ballas Spawn
    AddPlayerClass(103,2002.9896,-1115.7136,27.1250,92.0379,0,0,0,0,0,0); // Ballas Spawn
    AddPlayerClass(104,2002.9896,-1115.7136,27.1250,92.0379,0,0,0,0,0,0); // Ballas Spawn
    AddPlayerClass(105,2459.6799,-1690.5546,13.5416,352.9616,0,0,0,0,0,0); // Grove
    AddPlayerClass(106,2522.0486,-1679.1824,15.4970,72.5490,0,0,0,0,0,0); // Grove
    AddPlayerClass(107,2495.4314,-1686.7506,13.5150,356.5232,0,0,0,0,0,0); // Grove
    AddPlayerClass(280,1568.6503,-1693.7280,5.8906,177.1730,0,0,0,0,0,0); //cop
    AddPlayerClass(281,1568.6503,-1693.7280,5.8906,177.1730,0,0,0,0,0,0); //cop
    AddPlayerClass(284,1568.6503,-1693.7280,5.8906,177.1730,0,0,0,0,0,0); //cop
    AddPlayerClass(117,848.4336,-1197.8033,16.9766,357.6465,0,0,0,0,0,0); // Triadenspawn
    AddPlayerClass(118,848.4336,-1197.8033,16.9766,357.6465,0,0,0,0,0,0); // Triadenspawn
    AddPlayerClass(120,848.4336,-1197.8033,16.9766,357.6465,0,0,0,0,0,0); // Triadenspawn
    AddPlayerClass(121,742.7863,-1357.1238,13.5000,311.5738,0,0,0,0,0,0); //Hitmanspawn
    AddPlayerClass(112,742.7863,-1357.1238,13.5000,311.5738,0,0,0,0,0,0); //Hitmanspawn
    AddPlayerClass(113,742.7863,-1357.1238,13.5000,311.5738,0,0,0,0,0,0); //Hitmanspawn


    OnPlayerRequestClass:


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1960.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    if(classid == 0)
    {
    gTeam[playerid] = TEAM_BALLAS;
    GameTextForPlayer(playerid, "~g~BALLAS", 500, 3);
    }
    if(classid == 1)
    {
    gTeam[playerid] = TEAM_BALLAS;
    GameTextForPlayer(playerid, "~g~BALLAS", 500, 3);
    }
    if(classid == 2)
    {
    gTeam[playerid] = TEAM_BALLAS;
    GameTextForPlayer(playerid, "~g~BALLAS", 500, 3);
    }
    if(classid == 3)
    {
    gTeam[playerid] = TEAM_GROVE;
    GameTextForPlayer(playerid, "~g~GROVE", 500, 3);
    }
    if(classid == 4)
    {
    gTeam[playerid] = TEAM_GROVE;
    GameTextForPlayer(playerid, "~g~GROVE", 500, 3);
    }
    if(classid == 5)
    {
    gTeam[playerid] = TEAM_GROVE;
    GameTextForPlayer(playerid, "~g~GROVE", 500, 3);
    }
    if(classid == 6)
    {
    gTeam[playerid] = TEAM_COP;
    GameTextForPlayer(playerid, "~g~COP", 500, 3);
    }
    if(classid == 7)
    {
    gTeam[playerid] = TEAM_COP;
    GameTextForPlayer(playerid, "~g~COP", 500, 3);
    }
    if(classid == 8)
    {
    gTeam[playerid] = TEAM_COP;
    GameTextForPlayer(playerid, "~g~COP", 500, 3);
    }
    if(classid == 9)
    {
    gTeam[playerid] = TEAM_TRIADEN;
    GameTextForPlayer(playerid, "~g~Triade", 500, 3);
    }
    if(classid == 10)
    {
    gTeam[playerid] = TEAM_TRIADEN;
    GameTextForPlayer(playerid, "~g~Triade", 500, 3);
    }
    if(classid == 11)
    {
    gTeam[playerid] = TEAM_TRIADEN;
    GameTextForPlayer(playerid, "~g~Triade", 500, 3);
    }
    if(classid == 12)
    {
    gTeam[playerid] = TEAM_HITMAN;
    GameTextForPlayer(playerid, "~g~Hitman", 500, 3);
    }
    if(classid == 13)
    {
    gTeam[playerid] = TEAM_HITMAN;
    GameTextForPlayer(playerid, "~g~Hitman", 500, 3);
    }
    if(classid == 14)
    {
    gTeam[playerid] = TEAM_HITMAN;
    GameTextForPlayer(playerid, "~g~Hitman", 500, 3);
    }


    return 1;
    }



    OnPlayerSpawn:


    public OnPlayerSpawn(playerid)
    {
    if(gTeam[playerid] == TEAM_GROVE)
    {


    SetPlayerColor(playerid, 0x009200FF);
    GivePlayerWeapon(playerid, 28, 500);//Uzi
    GivePlayerWeapon(playerid, 25, 50);//shotgun
    GivePlayerWeapon(playerid, 24, 150);//deagle
    }
    if(gTeam[playerid] == TEAM_BALLAS)
    {


    SetPlayerColor(playerid, 0xFF00FFFF);
    GivePlayerWeapon(playerid, 28, 500);//Uzi
    GivePlayerWeapon(playerid, 25, 50);//shotgun
    GivePlayerWeapon(playerid, 24, 150);//deagle


    }
    if(gTeam[playerid] == TEAM_COP)
    {


    SetPlayerColor(playerid, 0x00F6F6F6);


    }
    if(gTeam[playerid] == TEAM_TRIADEN)
    {


    SetPlayerColor(playerid, 0xFF66FFAA);
    GivePlayerWeapon(playerid, 5, 1);//Baseballschläger
    GivePlayerWeapon(playerid, 30, 500);//Uzi
    GivePlayerWeapon(playerid, 34, 50);//Sniper
    GivePlayerWeapon(playerid, 24, 50);//Deagle
    }
    if(gTeam[playerid] == TEAM_HITMAN)
    {


    SetPlayerColor(playerid, 0xAFAFAFAA);
    GivePlayerWeapon(playerid, 5, 1);//Baseballschläger
    GivePlayerWeapon(playerid, 30, 500);//Uzi
    GivePlayerWeapon(playerid, 34, 50);//Sniper
    GivePlayerWeapon(playerid, 24, 50);//Deagle
    }
    return 1;
    }


    Ist alles nur ein Beispiel ;)

  • ne ich verwende das (noch) nicht aber vilen dank an alle ihr seit super macht weiter so :thumbup:


    //edit: zaziki das weis ich schon ^^ ich wollte nur das mit den waffen aber auch danke für deinen post

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen