Teams mit gTeam erstellen [UPDATED]

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
  • Hallo Leute, hoffe mir kann jemand helfen. Hier mein Code:
    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid, 1955.8024,-2320.8855,13.5469);
    SetPlayerCameraPos(playerid, 1957.4470,-2316.4155,13.5469);
    SetPlayerCameraLookAt(playerid, 1955.8024,-2320.8855,13.5469);

    if(classid == 0)
    {
    gTeam[playerid] = TEAM_BAGGAGEFAHRER;
    SetPlayerSkin(playerid, 16);
    }
    else if(classid == 1)
    {
    gTeam[playerid] = TEAM_BAUARBEITER;
    SetPlayerSkin(playerid, 27);
    }
    else if(classid == 2)
    {
    gTeam[playerid] = TEAM_BUSFAHRER;
    }
    else if(classid == 3)
    {
    gTeam[playerid] = TEAM_PERSONENSCHÜTZER;
    }
    else if(classid == 4)
    {
    gTeam[playerid] = TEAM_BIKER;
    }
    else if(classid == 5)
    {
    gTeam[playerid] = TEAM_PIZZERBOY;
    }
    else if(classid == 6)
    {
    gTeam[playerid] = TEAM_TRUCKER;
    }
    else if(classid == 7)
    {
    gTeam[playerid] = TEAM_FEUERWEHRMANN;
    }
    else if(classid == 8)
    {
    gTeam[playerid] = TEAM_POLIZIST;
    }
    else if(classid == 9)
    {
    gTeam[playerid] = TEAM_MEDIC;
    }
    else if(classid == 10)
    {
    gTeam[playerid] = TEAM_ARMY;
    }
    else{}
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    if(gTeam[playerid] == TEAM_BAGGAGEFAHRER)
    {
    SetPlayerPos(playerid, 2001.9963,-2315.1099,13.5469);
    SetPlayerColor(playerid, COLOR_WHITE);
    GivePlayerWeapon(playerid, 16, 75);//granaten
    GivePlayerWeapon(playerid, 37, 500);//flammenwerfer
    GivePlayerWeapon(playerid, 33, 150);//rifle
    }
    if(gTeam[playerid] == TEAM_BAUARBEITER)
    {
    SetPlayerPos(playerid, 1228.3705,-1244.2374,19.3500);
    SetPlayerColor(playerid, COLOR_YELLOW);
    GivePlayerWeapon(playerid, 30, 800);//ak 47
    GivePlayerWeapon(playerid, 25, 800);//shotgun
    GivePlayerWeapon(playerid, 6, 800);//shovel
    }
    if(gTeam[playerid] == TEAM_BUSFAHRER)
    {
    SetPlayerPos(playerid, 1772.3640,-1939.9377,13.5630);
    SetPlayerSkin(playerid, 61);
    SetPlayerColor(playerid, COLOR_BROWN);
    GivePlayerWeapon(playerid, 3, 1);//nike
    GivePlayerWeapon(playerid, 41, 300);//spray
    GivePlayerWeapon(playerid, 25, 150);//shotgun
    }
    if(gTeam[playerid] == TEAM_PERSONENSCHÜTZER)
    {
    SetPlayerPos(playerid, 1663.9655,-1002.8958,24.0536);
    SetPlayerSkin(playerid, 71);
    SetPlayerColor(playerid, COLOR_LIGHTBLUE);
    GivePlayerWeapon(playerid, 23, 150);//pistole
    GivePlayerWeapon(playerid, 32, 350);//tec 9
    GivePlayerWeapon(playerid, 1, 1);
    }
    ....
    return 1;


    der letzte Code ist nicht ganz voll zählig, reicht aber um klar zu machen um was es geht.


    Jetzt mein Problem: Wenn ich den Skin wähle kann ich nur den Baggage-Skin wählen, die anderen kann ich net auswählen, und wenn ich den Unteren Teil mit dem oberen zusammenpacke geht es auch nicht.


    Hoffe auf eine schnelle und hilfreiche Antwort.


    Mfg Spike

  • also ich habe meine fraktionen jetzt so gemacht:


    static gTeam[MAX_PLAYERS];


    dann habe ich das hier gemacht:


    //Fraktionsfarben
    #define NAMECOLOR_COP 0x0000FFFF
    #define NAMECOLOR_FBI 0x00007DFF
    #define NAMECOLOR_ARMY 0x00FF00FF
    #define NAMECOLOR_SECURITY 0x00FFFFFF
    #define NAMECOLOR_HITMAN 0x000000FF
    #define NAMECOLOR_BALLAS 0xFF00FFFF
    #define NAMECOLOR_GROOVE 0x009200FF
    #define NAMECOLOR_SAVG 0xFFFF00FF
    #define NAMECOLOR_LCN 0x00000071
    #define NAMECOLOR_LOS_SANTOS_VAGOS 0xFFDF41FF
    #define NAMECOLOR_FAST_AND_FURIOUS 0xFF0000FF
    #define NAMECOLOR_DRIFT_CLUB 0x6D0000FF
    #define NAMECOLOR_ATZEN 0x6DE79AFF
    #define NAMECOLOR_ADAC 0xFFE79AFF
    #define NAMECOLOR_YAKUZA 0xFFE7FFFF
    #define NAMECOLOR_MEDIC 0xFF0061FF
    #define NAMECOLOR_FAHRSCHULE 0xFFFFFFFF


    und dann noch das hier:


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);

    if(classid == 0)
    {
    gTeam[playerid] = TEAM_COPS;
    }

    if(classid == 1)
    {
    gTeam[playerid] = TEAM_FBI;
    }

    if(classid == 2)
    {
    gTeam[playerid] = TEAM_ARMY;
    }

    if(classid == 3)
    {
    gTeam[playerid] = TEAM_SECURITY;
    }

    if(classid == 4)
    {
    gTeam[playerid] = TEAM_HITMAN;
    }

    if(classid == 5)
    {
    gTeam[playerid] = TEAM_BALLAS;
    }

    if(classid == 6)
    {
    gTeam[playerid] = TEAM_GROOVE;
    }

    if(classid == 7)
    {
    gTeam[playerid] = TEAM_SAVG;
    }

    if(classid == 8)
    {
    gTeam[playerid] = TEAM_LCN;
    }

    if(classid == 9)
    {
    gTeam[playerid] = TEAM_LOS_SANTOS_VAGOS;
    }

    if(classid == 10)
    {
    gTeam[playerid] = TEAM_FAST_AND_FURIOUS;
    }

    if(classid == 11)
    {
    gTeam[playerid] = TEAM_DRIFT_CLUB;
    }


    if(classid == 12)
    {
    gTeam[playerid] = TEAM_ATZEN;
    }

    if(classid == 13)
    {
    gTeam[playerid] = TEAM_ADAC;
    }


    if(classid == 14)
    {
    gTeam[playerid] = TEAM_YAKUZA;
    }

    if(classid == 15)
    {
    gTeam[playerid] = TEAM_MEDIC;
    }

    if(classid == 16)
    {
    gTeam[playerid] = TEAM_FAHRSCHULE;
    }
    return 1;
    }


    und zu guter letzt habe ich den Fraktionen Farben zu geordnet:


    public SetPlayerToTeamColor(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0)
    {
    SetPlayerColor(playerid, NAMECOLOR_COP);
    }
    else if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
    {
    SetPlayerColor(playerid, NAMECOLOR_FBI);
    }
    else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    SetPlayerColor(playerid, NAMECOLOR_ARMY);
    }
    else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
    {
    SetPlayerColor(playerid, NAMECOLOR_SECURITY);
    }
    else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
    {
    SetPlayerColor(playerid, NAMECOLOR_HITMAN);
    }
    else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
    {
    SetPlayerColor(playerid, NAMECOLOR_BALLAS);
    }
    else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
    {
    SetPlayerColor(playerid, NAMECOLOR_GROOVE);
    }
    else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
    {
    SetPlayerColor(playerid, NAMECOLOR_SAVG);
    }
    else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
    {
    SetPlayerColor(playerid, NAMECOLOR_LCN);
    }
    else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
    {
    SetPlayerColor(playerid, NAMECOLOR_LOS_SANTOS_VAGOS);
    }
    else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
    {
    SetPlayerColor(playerid, NAMECOLOR_FAST_AND_FURIOUS);
    }
    else if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
    {
    SetPlayerColor(playerid, NAMECOLOR_DRIFT_CLUB);
    }
    else if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
    {
    SetPlayerColor(playerid, NAMECOLOR_ATZEN);
    }
    else if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
    {
    SetPlayerColor(playerid, NAMECOLOR_ADAC);
    }
    else if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
    {
    SetPlayerColor(playerid, NAMECOLOR_YAKUZA);
    }
    else if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
    {
    SetPlayerColor(playerid, NAMECOLOR_MEDIC);
    }
    else if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
    {
    SetPlayerColor(playerid, NAMECOLOR_FAHRSCHULE);
    }
    }
    }


    aber ich weiß jetzt nicht wie man den spawnpunkt macht und die skins und die waffen.
    da bräuchte ich nochma hilfe und zwar dringend weil die zeit mir davon läuft.

  • gibts auch Ateam ect? weil ich meine G ist nun wircklich nicht der erste buchstabe im alphabet xD
    und was bedeutet dann G?
    und P?

  • das ... ist das selbe wie Gteam?? nur ich muss überall wo gtema steht ateam drauß machen? :D

  • eien frage wie mache ich das z.b. die team cops nur die cops skin bekommen ???

  • eine möglichkeit wär das:

    //über main
    #define TEAM_POLICE 1
    new iSpawnSet[MAX_PLAYERS];
    new gPlayerClass[MAX_PLAYERS];





    public OnPlayerRequestClass(playerid, classid)
    {
    iSpawnSet[playerid] = 0;
    SetupPlayerForClassSelection(playerid);


    gPlayerClass[playerid] = classid;
    switch (classid)
    {
    case 0,1,2,3,4,5,6,7,8,9,10:
    {
    GameTextForPlayer(playerid, "~r~Police", 500, 3);
    gTeam[playerid] = TEAM_POLICE;
    SetPlayerColor(playerid, //deine farbe);
    }
    }
    return 1;
    }

    Gruß Nate

    Einmal editiert, zuletzt von Nate ()

  • ja und wo muss ich die skin id entragen sodass z.b. bei den cops dann ein cop skin kommt

  • hier, das muss in ongamemodeinit:
    AddPlayerClass(265,1545.2031,-1676.1350,13.5599,93.1360,0,0,0,0,0,0); // police1 tenpenny 18
    AddPlayerClass(266,1545.2031,-1676.1350,13.5599,93.1360,0,0,0,0,0,0); // police1 pulaski
    AddPlayerClass(267,1545.2031,-1676.1350,13.5599,93.1360,0,0,0,0,0,0); // police1 hernandez 20
    AddPlayerClass(280,1545.2031,-1676.1350,13.5599,93.1360,0,0,0,0,0,0); // police1 21
    AddPlayerClass(281,1545.2031,-1676.1350,13.5599,93.1360,0,0,0,0,0,0); // police2
    AddPlayerClass(282,1545.2031,-1676.1350,13.5599,93.1360,0,0,0,0,0,0); // police3
    AddPlayerClass(283,1545.2031,-1676.1350,13.5599,93.1360,0,0,0,0,0,0); // police4
    AddPlayerClass(284,1545.2031,-1676.1350,13.5599,93.1360,0,0,0,0,0,0); // police5
    AddPlayerClass(285,1545.2031,-1676.1350,13.5599,93.1360,0,0,0,0,0,0); // police6
    AddPlayerClass(286,1545.2031,-1676.1350,13.5599,93.1360,0,0,0,0,0,0); // police7
    AddPlayerClass(288,1545.2031,-1676.1350,13.5599,93.1360,0,0,0,0,0,0); // police8 28--------------------



    Wenn du noch fehler machst, dann lern ma scripten :whistling:

    Gruß Nate

  • Hi ich habe es mal ausprobiert doch bei mir kommt immer dieser Fehler!


    error 017: undefined symbol "gTeam"


    Bitte helft mir !



    #include <a_samp>


    #if defined FILTERSCRIPT


    #define COLOR_GREY 0xAFAFAFAA
    #define COLOR_GREEN 0x33AA33AA
    #define COLOR_BRIGHTRED 0xFF0000AA
    #define COLOR_YELLOW 0xFFFF00AA
    #define COLOR_PINK 0xFF66FFAA
    #define COLOR_BLUE 0x3A47DEFF
    #define COLOR_TAN 0xBDB76BAA
    #define COLOR_PURPLE 0x800080AA
    #define COLOR_WHITE 0xFFFFFFAA
    #define COLOR_LIGHTBLUE 0x33CCFFAA
    #define COLOR_ORANGE 0xFF9900AA
    #define COLOR_INDIGO 0x4B00B0AA
    #define COLOR_BLACK 0x00000000
    #define COLOR_DARKGREY 0x696969FF


    new gTeam[MAX_PLAYERS];


    #define TEAM_TEROR 0
    #define TEAM_ARMY 1



    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" Script by Sky and Einstein");
    print("--------------------------------------\n");
    return 1;
    }




    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("\n----------------------------------");
    print(" Sky and Einstein Script");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {
    SetGameModeText("Sky and Einstein");
    ShowPlayerMarkers (2);
    DisableInteriorEnterExits();
    AddPlayerClass(287,1551.1501,-1675.7406,15.7231,109.0502,0,0,0,0,0,0); // GuySpawnreal
    AddPlayerClass(124,1551.1501,-1675.7406,15.7231,109.0502,0,0,0,0,0,0); // GuySpawnreal
    AddStaticVehicle(433,1520.9374,-1680.2629,13.2740,274.6331,106,1); // infernuspd3
    AddStaticVehicle(455,1520.8962,-1675.6794,13.2766,271.8604,75,1); // infernuspd5


    return 1;


    }



    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid, 1209.2413,-1282.9291,63.5066);
    SetPlayerCameraPos(playerid, 1219.9479,-1273.5522,63.5066);
    SetPlayerCameraLookAt(playerid, 1209.2413,-1282.9291,63.5066);

    if(classid == 1) //wenn der Spieler den ersten Skin auswählt
    {
    gTeam[playerid] = TEAM_TEROR;
    }
    if(classid == 0) //wenn der Spieler den zweiten Skin auswählt
    {
    gTeam[playerid] = TEAM_ARMY;
    }

    return 1;
    }




    public OnPlayerConnect(playerid)
    {


    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {


    return 1;


    }


    public OnPlayerSpawn(playerid)
    {



    return 1;
    }




    public OnPlayerDeath(playerid, killerid, reason)
    {
    SetPlayerScore(killerid,GetPlayerScore(killerid)+1); // zählt den score
    SetPlayerScore(playerid,GetPlayerScore(playerid)-1); //Zieht eins ab beim sterben
    SendDeathMessage(killerid,playerid,reason); // zeigt den kill rechts an der seite an zb blabla hat blala gekillt ...
    GivePlayerMoney(killerid, 5000);
    GivePlayerMoney(playerid, -5000);


    return 1;
    }



    public OnVehicleSpawn(vehicleid)
    {
    return 1;
    }


    public OnVehicleDeath(vehicleid, killerid)
    {
    return 1;
    }


    public OnPlayerText(playerid, text[])
    {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/st", cmdtext, true, 10) == 0)
    {


    ResetPlayerWeapons(playerid);
    SetPlayerPos (playerid,1551.1501,-1675.7406,15.7231);
    GivePlayerWeapon(playerid, 17, 9999);
    GivePlayerWeapon(playerid, 4, 9999);
    GivePlayerWeapon(playerid, 29, 9999);
    GivePlayerWeapon(playerid, 35,400);
    GivePlayerWeapon(playerid, 30,9999);

    return 1;


    }


    return 0;
    }


    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)



    {
    new newcar= GetPlayerVehicleID(playerid);
    new carmodel = GetVehicleModel(newcar);
    if(carmodel == 433)
    {
    if(gteam == TEAM_ARMY)
    {
    }
    else
    {
    RemovePlayerFromVehicle(playerid);
    }
    }



    {
    new newcar= GetPlayerVehicleID(playerid);
    new carmodel = GetVehicleModel(newcar);
    if(carmodel == 455)
    {
    if(gteam == TEAM_TEROR)
    {
    }
    else
    {
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    }
    }


    {
    return 1;
    }


    public OnPlayerExitVehicle(playerid, vehicleid)
    {
    return 1;
    }


    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    return 1;
    }


    public OnPlayerEnterCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerEnterRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnRconCommand(cmd[])
    {
    return 1;
    }


    public OnPlayerRequestSpawn(playerid)
    {
    return 1;
    }


    public OnObjectMoved(objectid)
    {
    return 1;
    }


    public OnPlayerObjectMoved(playerid, objectid)
    {
    return 1;
    }


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    return 1;
    }


    public OnVehicleMod(playerid, vehicleid, componentid)
    {
    return 1;
    }


    public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
    {
    return 1;
    }


    public OnVehicleRespray(playerid, vehicleid, color1, color2)
    {
    return 1;
    }


    public OnPlayerSelectedMenuRow(playerid, row)
    {
    return 1;
    }


    public OnPlayerExitedMenu(playerid)
    {
    return 1;
    }


    public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
    {
    return 1;
    }


    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    return 1;
    }


    public OnRconLoginAttempt(ip[], password[], success)
    {
    return 1;
    }


    public OnPlayerUpdate(playerid)
    {
    return 1;
    }


    public OnPlayerStreamIn(playerid, forplayerid)
    {
    return 1;
    }


    public OnPlayerStreamOut(playerid, forplayerid)
    {
    return 1;
    }


    public OnVehicleStreamIn(vehicleid, forplayerid)
    {
    return 1;
    }


    public OnVehicleStreamOut(vehicleid, forplayerid)
    {
    return 1;
    }


    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    return 1;
    }


    public OnPlayerClickPlayer(playerid, clickedplayerid, source)
    {
    return 1;
    }

  • Soweit ich weiß,existiert der Befehl in deinem Pawno nicht, ich glaube du musst dir so eine Datei von Wiki runterladen.


    Ich bin mir aber nicht sicher,warten wir lieber auf die Antwort Erfahrener Leute.

  • Habe Neun Errors Für meine Fraktion hilft mir da wer


    C:\Users\Denniskaj\Desktop\GM.pwn(162) : error 017: undefined symbol "Team_MaraSalvatrucha13"
    C:\Users\Denniskaj\Desktop\GM.pwn(166) : error 010: invalid function or declaration
    C:\Users\Denniskaj\Desktop\GM.pwn(171) : error 055: start of function body without function header
    C:\Users\Denniskaj\Desktop\GM.pwn(172) : error 010: invalid function or declaration
    C:\Users\Denniskaj\Desktop\GM.pwn(177) : error 010: invalid function or declaration
    C:\Users\Denniskaj\Desktop\GM.pwn(181) : error 010: invalid function or declaration
    C:\Users\Denniskaj\Desktop\GM.pwn(184) : error 021: symbol already defined: "SetPlayerPos"
    C:\Users\Denniskaj\Desktop\GM.pwn(187) : error 010: invalid function or declaration
    C:\Users\Denniskaj\Desktop\GM.pwn(190) : error 010: invalid function or declaration



    Kein Plan was ich da machen soll = (

  • ich will das auch unbedingt können xDD aber ich hab alles genauso gemacht hier
    new yakuzacar[20];


    dann bei forward


    forward IstEinyakuzaCar(carid);


    das hab ich bei onplayergamemodeinit


    yakuzacar[0] = AddStaticVehicle(427,320.0952,-1494.8434,24.7257,145.2363,0,0); //
    yakuzacar[1] = AddStaticVehicle(427,312.6796,-1505.5270,24.7254,145.2360,0,0); //
    yakuzacar[2] = AddStaticVehicle(436,304.7080,-1486.6901,24.3629,236.0130,0,0); //
    yakuzacar[3] = AddStaticVehicle(436,307.3316,-1482.7808,24.3613,235.1004,0,0); //
    yakuzacar[4] = AddStaticVehicle(528,294.1696,-1540.1616,24.6374,55.9141,0,0); //
    yakuzacar[5] = AddStaticVehicle(528,297.9397,-1536.2531,24.6373,53.4660,0,0); //
    yakuzacar[6] = AddStaticVehicle(596,302.8395,-1500.3330,24.3220,236.6492,0,0); //
    yakuzacar[7] = AddStaticVehicle(596,301.2871,-1504.4170,24.3182,235.3049,0,0); //
    yakuzacar[8] = AddStaticVehicle(596,297.8830,-1508.8521,24.3161,237.6691,0,0); //
    yakuzacar[9] = AddStaticVehicle(490,293.9719,-1513.7500,24.7223,234.2878,0,0); //
    yakuzacar[10] = AddStaticVehicle(490,291.0343,-1517.9059,24.7224,236.6940,0,0); //
    yakuzacar[12] = AddStaticVehicle(490,288.2802,-1522.0829,24.7212,235.2480,0,0); //
    yakuzacar[13] = AddStaticVehicle(490,285.0039,-1526.7599,24.7303,239.0975,0,0); //
    yakuzacar[14] = AddStaticVehicle(490,281.9551,-1530.7064,24.7214,234.0898,0,0); //
    yakuzacar[15] = AddStaticVehicle(497,347.7353,-1485.5969,76.7147,28.0997,0,0); //
    yakuzacar[16] = AddStaticVehicle(497,335.0208,-1494.8141,76.7149,48.6609,0,0); //
    yakuzacar[17] = AddStaticVehicle(497,322.5496,-1507.0862,76.7147,50.4178,0,0); //
    yakuzacar[18] = AddStaticVehicle(497,306.7131,-1533.1783,76.7150,61.6794,0,0); //
    yakuzacar[19] = AddStaticVehicle(497,299.0536,-1553.1770,76.7162,71.0530,0,0); //


    das habe ich bei onplayerstatechange und da hab ich auch bemerkt fehlt da nit ein return??
    wenn ja bitte verbessern ;(

    public OnPlayerStateChange(playerid, newstate, oldstate)
    else if(IstEinyakuzaCar(newcar))
    {//hir müsst ihr die makeleader zahl eingeb wenn die autos sein sollten z.b yakuza
    if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6) { }
    else
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid, COLOR_YELLOW2, "Du bist kein Yakuza Mitklider!");
    }
    }


    und das hier habe ich ganz unten um gf

    public IstEinyakuzaCar(carid)
    {
    for(new i = 0; i < sizeof(yakuzacar); i++)
    {
    if(carid == yakuzacar[i])
    {
    return 1;
    }
    }
    return 0;
    }


    und dann wenn ich auf compilen gehe crashed mein pawno bitte helfen :(
    die andere methode hab ich auch schon probiert mit TEST_TEAM aber immer bei
    dem hier


    if(newstate == 2) // Status 2 = Fahrer
    {
    if(GetPlayerVehicleID(playerid) == teamcar)
    {
    if(playerteam[playerid] != TEST_TEAM)
    {
    SendClientMessage(playerid,0xFFFFFFF,"Du gehörst nicht ins Test Team daher ist dieses Fahrzeug nicht für dich...");
    RemovePlayerFromVehicle(playerid); // schmeißt den Spieler aus dem Fahrzeug
    }
    }
    }


    bekomme ich pawno crash
    bbittw um hilfe ;(

    KleineHilfe 2.0

  • public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    if(IstEinyakuzaCar(newcar))
    {//hir müsst ihr die makeleader zahl eingeb wenn die autos sein sollten z.b yakuza
    if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6) { }
    else
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid, COLOR_YELLOW2, "Du bist kein Yakuza Mitklider!");
    }
    }

  • Joa danke für die antwort aber


    kriege hier


    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(1744) : error 004: function "SetPlayerToTeamColor" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(1769) : error 004: function "SetPlayerToTeamColor" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(1850) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(1854) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(1866) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(1870) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(1874) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(1878) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(1882) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(1886) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(1890) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(1902) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(1906) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(1910) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(1914) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(1918) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(1930) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(1934) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(1938) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(1950) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(1954) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(1996) : warning 225: unreachable code
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(2209) : error 004: function "SendIRCMessage" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(2231) : error 004: function "SendIRCMessage" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(2243) : error 004: function "SaveCK" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(2273) : error 004: function "SavePapers" is not implemented
    C:\Users\Patrick\Desktop\Samp server\gamemodes\Untitled.pwn(2304) : error 004: function "SaveFamilies" is not implemented


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



    26 Errors.


    wenn ich die stelle rein postenb sol sagt bescheid!!<

    KleineHilfe 2.0