Fraktion erstellen

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
  • thx aber ich mein wie kann ich jetzt noch machen welches skinns die haben welche befehle sie nutzen können !?


    und ich will doch eig. NUR DEN Job Busfahrer zur ner fraktion machen das kapier ich daraus nicht^^ 8|

  • Das wird da auch erklärt! BSP:



    if(strcmp("/just4Bus",cmdtext) == 0)
    {
    if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) // Bus ist hier Team12
    {
    SendClientMessage(playerid,COLOR_YELLOW,"Diese Nachricht können nur Busfahrer lesen!");
    }
    else SendClientMessage(playerid,COLOR_RED,"Du bist kein Busfahrer!");
    }


    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!

  • mhhh ich kapier das nicht aber egal habe jetzt nen neues TEAM gemacht JUHU xD thx an euch ABER:^^
    wenn ich in game /makeleader ID 12 mache bin ich der skin der ich vorher war sprich ich war policelereder mache /make..... bin ich da auch noch policeleader wenn ich z.b Cj bin darein gehe bin ich Cj 8| so siehst aus :


    else if(PlayerInfo[playerid][pLeader] == 12) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "GSG9"; ChosenSkin[para1] = 284; SetPlayerSkin(para1, 284); }

  • Ja musst ja auch skin definieren.

    if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Police Force"; ChosenSkin[para1] = 280; SetPlayerSkin(para1, 280); }
    else if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "FBI/ATF"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); }
    else if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "National Guard"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
    .
    .
    //hier muss deine fraktion rein


    if(strcmp(cmd, "/clothes", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pMember] >= 1)
    {
    if(IsAtClothShop(playerid))
    {
    if(PlayerInfo[playerid][pMember] == 1) { ChosenSkin[playerid] = 280; SetPlayerSkin(playerid, 280); }
    else if(PlayerInfo[playerid][pMember] == 2) { ChosenSkin[playerid] = 286; SetPlayerSkin(playerid, 286); }
    else if(PlayerInfo[playerid][pMember] == 3) { ChosenSkin[playerid] = 287; SetPlayerSkin(playerid, 287); }
    else if(PlayerInfo[playerid][pMember] == 4) { ChosenSkin[playerid] = 70; SetPlayerSkin(playerid, 70); }
    else if(PlayerInfo[playerid][pMember] == 5) { ChosenSkin[playerid] = 258; SetPlayerSkin(playerid, 120); }
    else if(PlayerInfo[playerid][pMember] == 6) { ChosenSkin[playerid] = 120; SetPlayerSkin(playerid, 258); }
    else if(PlayerInfo[playerid][pMember] == 8) { ChosenSkin[playerid] = 127; SetPlayerSkin(playerid, 127); }
    else if(PlayerInfo[playerid][pMember] == 9) { ChosenSkin[playerid] = 148; SetPlayerSkin(playerid, 148); }
    else if(PlayerInfo[playerid][pMember] == 10) { ChosenSkin[playerid] = 255; SetPlayerSkin(playerid, 255); }
    else if(PlayerInfo[playerid][pMember] == 11) { ChosenSkin[playerid] = 59; SetPlayerSkin(playerid, 59); }
    //hier muss deine fraktion rein
    else { return 1; }


    public OnPlayerText(playerid, text[])
    {
    new giver[MAX_PLAYER_NAME];
    new sendername[MAX_PLAYER_NAME];
    new giveplayer[MAX_PLAYER_NAME];
    new tmp[256];
    new string[256];
    new giveplayerid;
    if(PlayerInfo[playerid][pMuted] == 1)
    {
    SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced");
    return 0;
    }
    if(SelectChar[playerid] == 255)
    {
    new idx;
    tmp = strtok(text, idx);
    if ((strcmp("next", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("next")))
    {
    switch (SelectCharID[playerid])
    {
    case 1: //Police Force
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[0][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[1][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[2][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[2][0]; }
    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[3][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[3][0]; }
    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[4][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[4][0]; }
    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[5][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = JoinPed[5][0]; }
    else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, JoinPed[6][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = JoinPed[6][0]; }
    else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, JoinPed[7][0]); SelectCharPlace[playerid] = 9; ChosenSkin[playerid] = JoinPed[7][0]; }
    else if(SelectCharPlace[playerid] == 9) { SetPlayerSkin(playerid, JoinPed[8][0]); SelectCharPlace[playerid] = 10; ChosenSkin[playerid] = JoinPed[8][0]; }
    else if(SelectCharPlace[playerid] == 10) { SetPlayerSkin(playerid, JoinPed[9][0]); SelectCharPlace[playerid] = 11; ChosenSkin[playerid] = JoinPed[9][0]; }
    else if(SelectCharPlace[playerid] == 11) { SetPlayerSkin(playerid, JoinPed[10][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[10][0]; }
    }
    case 2: //FBI/ATF
    {
    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[11][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[11][0]; }
    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[12][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[12][0]; }
    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[13][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[13][0]; }



    Dann such nochmal nach isaclotheshop oder so und dann da auch nochmal für dein fraktion was erstellen
    so nun musst du selbst noch so eine zeile machen und dann haste es^^

    4 Mal editiert, zuletzt von Chriss ()

  • Dass ist das hier:


    else if(level == 1) { PlayerInfo[para1][pChar] = 288; } //Police Force
    else if(level == 2) { PlayerInfo[para1][pChar] = 286; } //FBI/ATF
    else if(level == 3) { PlayerInfo[para1][pChar] = 287; } //National Guard
    else if(level == 4) { PlayerInfo[para1][pChar] = 228; } //Fire/Ambulance
    else if(level == 5) { PlayerInfo[para1][pChar] = 113; } //La Cosa Nostra
    else if(level == 6) { PlayerInfo[para1][pChar] = 120; } //Yakuza
    else if(level == 7) { PlayerInfo[para1][pChar] = 147; } //Mayor
    else if(level == 8) { PlayerInfo[para1][pChar] = 294; } //Hitmans
    else if(level == 9) { PlayerInfo[para1][pChar] = 227; } //News Reporters
    else if(level == 10) { PlayerInfo[para1][pChar] = 61; } //Taxi Cab Company
    else if(level == 11) { PlayerInfo[para1][pChar] = 171; } //Driving/Flying School

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