/bankraub 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
  • Guten Morgen zusammen


    ich habe ein pickup erstellt, wo man /bankraub machen soll


    bankrobpoint==CreatePickup(1239,1,2307.7258,-4.6196,26.7422);


    wie mache ich das, das man nur in den symbol den befehl machen kann?
    und die 2. Frage wie erstelle ich das, das der spieler dabei geld erhält?


    ich bitte um eine fertige vorlage

  • hab das bei OnPlayerComandText eingefügt


    }
    if(!strcmp("/bankraub",cmdtext))
    {
    if(IsPlayerInRangeOfPoint(playerid, 7.0,2307.7258,-4.6196,26.7422))
    {
    SendClientMessage(playerid,0xFFFFFFFF,"Du bist nicht nahgenug am symbol!");
    GivePlayerMoney(playerid,20000);
    }


    aber es geht nicht bekomme folgende errors


    Zeile (917) : Unbekannte Variable : "sscanf"
    Zeile (937) : Unbekannte Variable : "sscanf"
    Zeile (953) : Unbekannte Variable : "sscanf"
    Zeile (969) : Unbekannte Variable : "sscanf"
    Zeile (990) : Unbekannte Variable : "sscanf"
    Zeile (992) : Funktion "SendAdminMessage" wurde nicht gefunden
    Zeile (1004) : Unbekannte Variable : "sscanf"
    Zeile (1021) : Unbekannte Variable : "sscanf"
    Zeile (1040) : Unbekannte Variable : "sscanf"
    Zeile (1056) : Unbekannte Variable : "sscanf"
    Zeile (1073) : Unbekannte Variable : "sscanf"
    Zeile (1090) : Unbekannte Variable : "sscanf"
    Zeile (1114) : Unbekannte Variable : "sscanf"
    Zeile (1299) : Unbekannte Variable : "PreloadAnimLib"
    Zeile (1300) : Unbekannte Variable : "PreloadAnimLib"
    Zeile (1301) : Unbekannte Variable : "PreloadAnimLib"
    Zeile (1302) : Unbekannte Variable : "PreloadAnimLib"
    Zeile (1303) : Unbekannte Variable : "PreloadAnimLib"
    Zeile (1304) : Unbekannte Variable : "PreloadAnimLib"
    Zeile (1305) : Unbekannte Variable : "PreloadAnimLib"
    Zeile (1306) : Unbekannte Variable : "PreloadAnimLib"
    Zeile (1307) : Unbekannte Variable : "PreloadAnimLib"
    Zeile (1308) : Unbekannte Variable : "PreloadAnimLib"
    Zeile (1309) : Unbekannte Variable : "PreloadAnimLib"
    Zeile (1310) : Unbekannte Variable : "PreloadAnimLib"
    Zeile (1311) : Unbekannte Variable : "PreloadAnimLib"


    26 Errors (Klammerfehler), 3 Warnungen
    Du hast Errors im Skript. Kompilierung abgebrochen


    PWNMod Compiler Version 1.2
    (c) Trooper[Y]
    In Kooperation mit GTA-Servers.de


    wenn der wieder weg ist dann geht es
    hier mal das ganze andere wo die errors sind


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    new cartype = GetPlayerVehicleID(playerid);
    new State=GetPlayerState(playerid);


    new cmd[256];
    new idx;
    new dancestyle;
    cmd = strtok(cmdtext, idx);




    if(strcmp(cmdtext, "/neonshop", true) == 0)
    {


    SetPlayerInterior(playerid,0);
    {if(State!=PLAYER_STATE_DRIVER)
    {SetPlayerPos(playerid,-1980.0026,474.2643,29);}
    else if(IsPlayerInVehicle(playerid, cartype) == 1)
    {SetVehiclePos(cartype,-1980.0026,474.2643,29);
    SetVehicleZAngle(cartype,180.1530);}
    else
    {SetPlayerPos(playerid,-1980.0026,474.2643,29);}
    SendClientMessage(playerid, COLOR_YELLOW,"Sie haben sich zu den Neonshop geportet fahren sie in die Garage und geben sie /neon ein.");}


    return 1;
    }
    if (strcmp(cmdtext, "/neon", true)==0)
    {
    if(IsPlayerInRangeOfPoint(playerid, 7.0, -1979.3672,440.1091,27))
    {
    ShowPlayerDialog(playerid, 8899, DIALOG_STYLE_LIST, "Pick Neon Color", "Blue\nRed\nGreen\nWhite\nPink\nYellow\nPolice Strobe\nInterior Lights\nBack Neon\nFront neon\nUndercover Roof Light\nRemove All Neon", "Wählen", "Abbrechen");
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    }
    return 1;
    }
    if(strcmp(cmdtext, "/gotols", true) == 0)
    {
    new tmpcar = GetPlayerVehicleID(playerid);
    SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
    LinkVehicleToInterior(tmpcar,0);
    return 1;
    }
    if (strcmp(cmdtext, "/neongate", true)==0)
    {
    if(NeonTorvar == 0)
    {
    MoveObject(NeonTor,-1978.9588623047, 459.5778503418, 24.686092376709,1.5);
    SendClientMessageToAll(COLOR_GREEN,"Der Neonshop hat nun geöffnet!");
    NeonTorvar = 1;
    }
    else
    {
    MoveObject(NeonTor,-1978.9588623047, 459.5778503418, 30.342178344727,1.5);
    SendClientMessageToAll(COLOR_RED,"Der Neonshop wird nun geschloßen!");
    NeonTorvar = 0;
    }
    return 1;
    }
    if (strcmp(cmdtext, "/sfpdgate", true)==0)
    {
    if(IsPlayerInRangeOfPoint(playerid,30.0,-1664.8713378906, 682.60729980469, 13.512115478516))
    {
    if(SFPDTorvar == 0)
    {
    MoveObject(SFPDTor,-1664.3400878906, 682.36553955078, 10.512115478516,1.5);
    TorNachricht(playerid,1);
    SFPDTorvar = 1;
    }
    else
    {
    MoveObject(SFPDTor,-1664.3400878906, 682.36553955078, 16.211387634277,1.5);
    TorNachricht(playerid,0);
    SFPDTorvar = 0;
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,30.0,-1571.1501464844, 661.16577148438, 6.6245129108429))
    {
    if(SFPDTorvar2 == 0)
    {
    MoveObject(SFPDTor2,-1571.9305419922, 661.30108642578, 2.6245129108429,1.5);
    TorNachricht(playerid,1);
    SFPDTorvar2 = 1;
    }
    else
    {
    MoveObject(SFPDTor2,-1571.9305419922, 661.30108642578, 8.9608917236328,1.5);
    TorNachricht(playerid,0);
    SFPDTorvar2 = 0;
    }
    }
    else
    {
    SendClientMessage(playerid,0xFF0000FF,"Du bist nicht in der Nähe!");
    }
    return 1;
    }
    if (strcmp(cmdtext, "/armygate", true)==0)
    {
    if(IsPlayerInRangeOfPoint(playerid,30.0,-1530.4819335938, 482.73611450195, 8.9530792236328))
    {
    if(ArmyTorvar == 0)
    {
    MoveObject(ArmyTor,-1530.4819335938, 482.73611450195, 2.9998736381531,1.5);
    TorNachricht(playerid,1);
    ArmyTorvar = 1;
    }
    else
    {
    MoveObject(ArmyTor,-1530.4819335938, 482.73611450195, 8.9530792236328,1.5);
    TorNachricht(playerid,0);
    ArmyTorvar = 0;
    }
    }
    else
    {
    SendClientMessage(playerid,0xFF0000FF,"Du bist nicht in der Nähe!");
    }
    return 1;
    }
    if (strcmp(cmdtext, "/park", true)==0)
    {
    if(IsPlayerInRangeOfPoint(playerid,5.0,-1984.30004883,104.40000153,27.50000000))
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    GivePlayerMoney(playerid,-150);
    MoveObjektRot(ParkplatzSF,0.00000000,359.50000000,270.00000000,9);
    SetTimer("ParkplatzSFSchrankeZu",3000,0);
    }
    else
    {
    SendClientMessage(playerid,COLOR_GRAD2,"Du bist in keinem Fahrzeug!");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_GRAD2,"Du bist nicht in der Nähe!");
    }
    return 1;
    }
    if(strcmp(cmd,"/animlist",true)==0)
    {
    SendClientMessage(playerid,0xAFAFAFAA,"Available Animations:");
    SendClientMessage(playerid,0xAFAFAFAA,"/handsup /drunk /bomb /getarrested /laugh /lookout /robman");
    SendClientMessage(playerid,0xAFAFAFAA,"/crossarms /lay /hide /vomit /eat /wave /taichi");
    SendClientMessage(playerid,0xAFAFAFAA,"/deal /crack /smokem /smokef /groundsit /chat /dance /f**ku");
    }


    if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) {
    // We don't handle anything here that can be used InVehicle
    return 0;
    }


    // HANDSUP
    if(strcmp(cmd, "/handsup", true) == 0) {
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
    return 1;
    }


    // CELLPHONE IN
    if(strcmp(cmd, "/cellin", true) == 0) {
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
    return 1;
    }


    // CELLPHONE OUT
    if(strcmp(cmd, "/cellout", true) == 0) {
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
    return 1;
    }


    // Drunk
    if(strcmp(cmd, "/drunk", true) == 0) {
    LoopingAnim(playerid,"PED","WALK_DRUNK",4.0,1,1,1,1,0);
    return 1;
    }


    // Place a Bomb
    if (strcmp("/bomb", cmdtext, true) == 0) {
    ClearAnimations(playerid);
    OnePlayAnim(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Place Bomb
    return 1;
    }
    // Police Arrest
    if (strcmp("/getarrested", cmdtext, true, 7) == 0) {
    LoopingAnim(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1); // Gun Arrest
    return 1;
    }
    // Laugh
    if (strcmp("/laugh", cmdtext, true) == 0) {
    OnePlayAnim(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0); // Laugh
    return 1;
    }
    // Rob Lookout
    if (strcmp("/lookout", cmdtext, true) == 0) {
    OnePlayAnim(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); // Rob Lookout
    return 1;
    }
    // Rob Threat
    if (strcmp("/robman", cmdtext, true) == 0) {
    LoopingAnim(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0); // Rob
    return 1;
    }
    // Arms crossed
    if (strcmp("/crossarms", cmdtext, true) == 0) {
    LoopingAnim(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1); // Arms crossed
    return 1;
    }
    // Lay Down
    if (strcmp("/lay", cmdtext, true, 6) == 0) {
    LoopingAnim(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0); // Lay down
    return 1;
    }
    // Take Cover
    if (strcmp("/hide", cmdtext, true, 3) == 0) {
    LoopingAnim(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0); // Taking Cover
    return 1;
    }
    // Vomit
    if (strcmp("/vomit", cmdtext, true) == 0) {
    OnePlayAnim(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0); // Vomit BAH!
    return 1;
    }
    // Eat Burger
    if (strcmp("/eat", cmdtext, true) == 0) {
    OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0); // Eat Burger
    return 1;
    }
    // Wave
    if (strcmp("/wave", cmdtext, true) == 0) {
    LoopingAnim(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0); // Wave
    return 1;
    }
    // Slap Ass
    if (strcmp("/slapass", cmdtext, true) == 0) {
    OnePlayAnim(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0); // Ass Slapping
    return 1;
    }
    // Dealer
    if (strcmp("/deal", cmdtext, true) == 0) {
    OnePlayAnim(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0); // Deal Drugs
    return 1;
    }
    // Crack Dieing
    if (strcmp("/crack", cmdtext, true, 6) == 0) {
    LoopingAnim(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); // Dieing of Crack
    return 1;
    }
    // Male Smoking
    if (strcmp("/smokem", cmdtext, true, 4) == 0) {
    LoopingAnim(playerid,"SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0); // Smoke
    return 1;
    }
    // Female Smoking
    if (strcmp("/smokef", cmdtext, true) == 0) {
    LoopingAnim(playerid, "SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0); // Female Smoking
    return 1;
    }
    // Sit
    if (strcmp("/groundsit", cmdtext, true, 4) == 0) {
    LoopingAnim(playerid,"BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0); // Sit
    return 1;
    }
    // Idle Chat
    if(strcmp(cmd, "/chat", true) == 0) {
    OnePlayAnim(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0);
    return 1;
    }
    // Fucku
    if(strcmp(cmd, "/fucku", true) == 0) {
    OnePlayAnim(playerid,"PED","fucku",4.0,0,0,0,0,0);
    return 1;
    }
    // TaiChi
    if(strcmp(cmd, "/taichi", true) == 0) {
    LoopingAnim(playerid,"PARK","Tai_Chi_Loop",4.0,1,0,0,0,0);
    return 1;
    }


    // ChairSit
    if(strcmp(cmd, "/chairsit", true) == 0) {
    LoopingAnim(playerid,"BAR","dnk_stndF_loop",4.0,1,0,0,0,0);
    return 1;
    }


    // START DANCING
    if(strcmp(cmd, "/dance", true) == 0) {
    new tmp[256];


    // Get the dance style param
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp) || strlen(tmp) > 2) {
    SendClientMessage(playerid,0xFF0000FF,"USAGE: /dance [style 1-4]");
    return 1;
    }


    dancestyle = strval(tmp);
    if(dancestyle < 1 || dancestyle > 4) {
    SendClientMessage(playerid,0xFF0000FF,"USAGE: /dance [style 1-4]");
    return 1;
    }


    if(dancestyle == 1) {
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
    } else if(dancestyle == 2) {
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
    } else if(dancestyle == 3) {
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
    } else if(dancestyle == 4) {
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);
    }
    return 1;
    }
    if(!strcmp("/bankraub",cmdtext))
    {
    if(IsPlayerInRangeOfPoint(playerid, 7.0,2307.7258,-4.6196,26.7422))
    {
    SendClientMessage(playerid,0xFFFFFFFF,"Du bist nicht nahgenug am symbol!");
    GivePlayerMoney(playerid,20000);
    }
    return 0;
    }


    forward ParkplatzSFSchrankeZu();
    public ParkplatzSFSchrankeZu()
    {
    MoveObjektRot(ParkplatzSF,0.00000000,270,270.00000000,9);
    }


    forward Check();
    public Check()
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerInRangeOfPoint(i,5.0,-1976.0000,104.40000153,27.50000000))
    {
    if(IsPlayerInAnyVehicle(i))
    {
    MoveObjektRot(ParkplatzSF,0.00000000,359.00,270.00000000,9);
    SetTimer("ParkplatzSFSchrankeZu",3000,0);
    }
    }
    }
    }


    stock TorNachricht(playerid,status)
    {
    if(status == 0)
    {
    SendClientMessage(playerid,COLOR_RED,"Das Tor wird geschloßen!");
    }
    else if(status == 1)
    {
    SendClientMessage(playerid,COLOR_GREEN,"Das Tor wird geöffnet!");
    }
    }


    public MoveObjektRot(oid,Float:rx, Float:ry, Float:rz, geschw)
    {
    new Float:x, Float:y, Float:z, Float:dx, Float:dy, Float:dz;
    GetObjectRot(oid,x,y,z);
    dx=(rx-x)/geschw;
    dy=(ry-y)/geschw;
    dz=(rz-z)/geschw;
    SetObjectRot(oid,x+dx,y+dy,z+dz);
    geschw--;
    SetTimerEx("MoveRot",50,0,"dfffdfff",oid,rx,ry,rz,geschw,dx,dy,dz);
    return 1;
    }
    public MoveRot(oid,Float:rx, Float:ry, Float:rz, geschw, Float:dx, Float:dy, Float:dz)
    {
    new Float:x, Float:y, Float:z;
    GetObjectRot(oid,x,y,z);
    SetObjectRot(oid,x+dx,y+dy,z+dz);
    geschw--;
    if(geschw>=1) {
    SetTimerEx("MoveRot",50,0,"dfffdfff",oid,rx,ry,rz,geschw,dx,dy,dz); }
    return 1;
    }


    public lights_right_1(playerid)
    {
    new panels, doors, lights, tires;
    GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
    UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,3,tires);
    TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
    TextDrawColor(p_B_L_S[playerid],0x00FF00FF);
    TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
    lighttimer[playerid] = SetTimerEx("lights_right_2",350,0,"d",playerid);
    return 1;
    }
    public lights_right_2(playerid)
    {
    new panels, doors, lights, tires;
    GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
    UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,5,tires);
    TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
    TextDrawColor(p_B_L_S[playerid],0xFFFFFFFF);
    TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
    lighttimer[playerid] = SetTimerEx("lights_right_1",350,0,"d",playerid);
    return 1;
    }
    public lights_left_1(playerid)
    {
    new panels, doors, lights, tires;
    GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
    UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,4,tires);
    TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
    TextDrawColor(p_B_L_S[playerid],0x00FF00FF);
    TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
    lighttimer[playerid] = SetTimerEx("lights_left_2",350,0,"d",playerid);
    return 1;
    }
    public lights_left_2(playerid)
    {
    new panels, doors, lights, tires;
    GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
    UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,5,tires);
    TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
    TextDrawColor(p_B_L_S[playerid],0xFFFFFFFF);
    TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
    lighttimer[playerid] = SetTimerEx("lights_left_1",350,0,"d",playerid);
    return 1;
    }
    public lights_warn_1(playerid)
    {
    new panels, doors, lights, tires;
    GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
    UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,0,tires);
    TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
    TextDrawColor(p_B_L_S[playerid],0x00FF00FF);
    TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
    lighttimer[playerid] = SetTimerEx("lights_warn_2",350,0,"d",playerid);
    return 1;
    }
    public lights_warn_2(playerid)
    {
    new panels, doors, lights, tires;
    GetVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,lights,tires);
    UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid),panels,doors,5,tires);
    TextDrawHideForPlayer(playerid,p_B_L_S[playerid]);
    TextDrawColor(p_B_L_S[playerid],0xFFFFFFFF);
    TextDrawShowForPlayer(playerid,p_B_L_S[playerid]);
    lighttimer[playerid] = SetTimerEx("lights_warn_1",350,0,"d",playerid);
    return 1;
    }


  • if
    (!strcmp("/bankraub",cmdtext))
    {
    if
    (IsPlayerInRangeOfPoint(playerid, 7.0,2307.7258,-4.6196,26.7422))
    {
    SendClientMessage(playerid,0xFFFFFFFF,"Du bist nicht nahgenug am symbol!"); GivePlayerMoney(playerid,20000);
    }
    return 1;
    }


    Und es geht


    Mfg

  • if(!strcmp("/bankraub",cmdtext))
    {
    if(IsPlayerInRangeOfPoint(playerid, 7.0,2307.7258,-4.6196,26.7422))
    {
    SendClientMessage(playerid,0xFFFFFFFF,"Due hast die Bank erfolgreich ausgeraubt!");
    GivePlayerMoney(playerid,20000);
    }
    else
    {
    SendClientMessage(playerid,0xFFFFFFFF,"Du bist nicht nahgenug am symbol!");
    }
    return 1;
    }

  • ich danke soweit
    habe es so gemacht


    if(!strcmp("/bankraub",cmdtext))
    {
    if(IsPlayerInRangeOfPoint(playerid, 7.0,2307.7258,-4.6196,26.7422))
    {
    SendClientMessage(playerid,0xFFFFFFFF,"Du hast die Bank erfolgreich ausgeraubt!");
    SendClientMessageToAll(0xFFFFFFFF,"Achtung! %s Raubt die Bank aus");
    GivePlayerMoney(playerid,20000);
    }
    else
    {
    SendClientMessage(playerid,0xFFFFFFFF,"Du bist nicht nahgenug am symbol!");
    }
    return 1;
    }


    wenn ich jetzt aber /bankraub eingebe dann geht der server down


    warum?

    Einmal editiert, zuletzt von hansi0151 ()

  • if(!strcmp("/bankraub",cmdtext))
    {
    if(IsPlayerInRangeOfPoint(playerid, 7.0,2307.7258,-4.6196,26.7422))
    {
    new pname[24],stext[128];
    GetPlayerName(playerid,pname,sizeof(pname));
    SendClientMessage(playerid,0xFFFFFFFF,"Du hast die Bank erfolgreich ausgeraubt!");
    format(stext,sizeof(stext),"%s hat die bank ausgerabut!!!",pname);
    SendClientMessageToAll(0xFFFFFFFF,stext);
    GivePlayerMoney(playerid,20000);
    }
    else
    {
    SendClientMessage(playerid,0xFFFFFFFF,"Du bist nicht nahgenug am symbol!");
    return 1;
    }
    }


    du hast was vergessen :D wie soll er den den namen abrufen wen du nix dafür gemacht hast %s geht nicht nur so :D

  • format(stext,sizeof(stext),"%s hat die bank ausgerabut!!!",pname);


    jetzt geht es soewit bis auf das oben erwähnte

  • zeig der den namen nicht an ?? oder bekommst du fehler in der zeile ?

  • Du hast die Bank erfolgreich ausgeraubt!
    das kommt
    danach sagt er mir
    Server unkown commandant