Beiträge von Nate

    //========================[Defines]=====================
    #define MAXIMALE_JACKS (3)
    #define MINIMALE_JACKS (0)
    #pragma tabsize 0


    //========================[Forwards]=====================
    forward public AutoDiebstahlTimer();
    forward public VernichteAutoDieb();
    forward public AutoDieb();


    //========================[News]=====================
    new Entered[MAX_PLAYERS];


    //========================[Timer]=====================
    public OnFilterScriptInit()
    {
    //===================[Timer für Brotfisch Diebstahl]=====================
    SetTimer("AutoDieb",1000,true);
    SetTimer("AutoDiebstahlTimer",10000,true);
    SetTimer("VernichteAutoDieb",2000,true);
    return 1;
    }


    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    Entered[playerid]++;
    return 1;
    }


    public AutoDieb() {
    for(new i=0;i<MAX_PLAYERS;i++) {
    if(Entered[i]==MAXIMALE_JACKS) {
    return Kick(i); //Kannst du natürlich einstellen, ob die Spieler gekickt oder mit SetPlayerHealth auf 0 Hp gesetzt werden sollen
    }
    }
    return 1;
    }


    public VernichteAutoDieb() {
    for(new i=0;i<MAX_PLAYERS;i++) {
    return Entered[i]=MINIMALE_JACKS;
    }
    return 1;
    }


    public AutoDiebstahlTimer() {
    for(new i=0;i<MAX_PLAYERS;i++) {
    if(Entered[i]==MAXIMALE_JACKS) {
    return Entered[i]=MAXIMALE_JACKS;
    }
    }
    return 1;
    }

    so, habe script, aber da kommen warnings:

    Zitat

    warning 202: number of arguments does not match definition
    warning 202: number of arguments does not match definition
    warning 202: number of arguments does not match definition
    warning 202: number of arguments does not match definition

    #include <a_samp>
    #pragma tabsize 0
    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {


    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    SetPlayerWorldBounds(playerid, 992,6194, 233,5575, 1086,042, 665,6389);
    return 1;
    }

    #include <a_samp>
    #pragma tabsize 0
    #if defined FILTERSCRIPT
    new Jobs[MAX_PLAYERS];
    new Taxi[MAX_PLAYERS];
    new Dealer[MAX_PLAYERS];
    new Arzt[MAX_PLAYERS];
    new mats[MAX_PLAYERS];


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {
    // Don't use these lines if it's a filterscript
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    dcmd(job,3,cmdtext);
    dcmd(deal,4,cmdtext);
    dcmd(get,3,cmdtext);
    //Außerhalb eines CallBacks
    dcmd_deal(playerid,params[])
    {


    new form[100];
    new playa;
    new mat;
    if(sscanf(params,"dd",playa,mat))
    {
    SendClientMessage(playerid,COLOR_YELLOW,"Verwende: /deal [ID] [DROGENANZAHL]");
    return 1;
    }
    if(mat > mats[playerid])
    {
    SendClientMessage(playerid,COLOR_BLUE,"So viele drogen hast du nicht !");
    return 1;
    }
    if(!IsPlayerConnected(playa))
    {
    SendClientMessage(playerid,COLOR_BLUE,"Angegebener User nicht online!");
    return 1;
    }
    if(Dealer[playerid] == 1)
    {
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playa,name,sizeof name);
    new name2[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name2,sizeof name2);
    format(form,sizeof form,"Du hast %s %d Drogen gegeben",name,mat);
    SendClientMessage(playerid,COLOR_YELLOW,form);
    new Float:h;
    GetPlayerHealth(playa,h);
    SetPlayerHealth(playerid,h+mat);
    new form2[100];
    format(form2,sizeof form2,"Du hast von %s %d Drogen erhalten",name2,mat);
    SendClientMessage(playa,COLOR_YELLOW,form2);
    return 1;
    }
    else
    {
    SendClientMessage(playerid,COLOR_BLUE,"Du bist kein Dealer");
    return 1;
    }
    }
    dcmd_get(playerid, params[])
    {
    new form[100];
    new mat = strval(params);
    if(!strlen(params))
    {
    SendClientMessage(playerid,COLOR_YELLOW,"Verwende: /get [AMMOUNT]");
    return 1;
    }
    if(!PlayerToPoint(5.0,playerid,1958.33, 1343.12, 15.36))//Deine Koords
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist nicht am Drogen Ort");
    return 1;
    }
    if(Dealer[playerid] == 1)
    {
    ApplyAnimation(playerid,"DEALER","DEALER_DEAL",4.1,1,1,1,1,1);
    mats[playerid] += mat;
    //GivePlayerMoney(playerid,-500);
    format(form,sizeof form,"Du hast %d Drogen erworben",mat);
    SendClientMessage(playerid,COLOR_BLUE,form);
    return 1;
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist kein Dealer");
    return 1;
    }}



    dcmd_job(playerid,params[])
    {
    new form[100];
    new name[MAX_PLAYER_NAME];
    new job[100];
    if(sscanf(params,"s",job))
    {
    SendClientMessage(playerid,COLOR_RED,"Verwende: /job [NAME]");
    SendClientMessage(playerid,COLOR_YELLOW,"===== JOBS =====");
    SendClientMessage(playerid,COLOR_BLUE," Taxifahrer , Arzt , Dealer ");
    SendClientMessage(playerid,COLOR_YELLOW,"===== JOBS =====");
    return 1;
    }
    if(strcmp(job,"Taxifahrer",true,strlen(job))==0)
    {
    Jobs[playerid] = 1;
    Taxi[playerid] = 1;
    SendClientMessage(playerid,COLOR_YELLOW,"***INFO: Du bist nun Taxifahrer");
    GetPlayerName(playerid, name, sizeof name);
    format(form,sizeof form,"***INFO:%s ist nun Taxifahrer",name);
    SendClientMessage(playerid,COLOR_BLUE,form);
    return 1;
    }
    else if(strcmp(job,"Arzt",true,strlen(job)) ==0)
    {
    Jobs[playerid] = 1;
    Arzt[playerid] = 1;
    SendClientMessage(playerid,COLOR_YELLOW,"***INFO: Du bist nun Arzt");
    GetPlayerName(playerid, name, sizeof name);
    format(form,sizeof form,"***INFO:%s ist nun Arzt (Medic)",name);
    SendClientMessage(playerid,COLOR_BLUE,form);
    return 1;
    }
    else if(strcmp(job,"Dealer",true,strlen(job)) ==0)
    {
    Jobs[playerid] = 1;
    Dealer[playerid] = 1;
    SendClientMessage(playerid,COLOR_YELLOW,"***INFO: Du bist nun Dealer");
    GetPlayerName(playerid, name, sizeof name);
    format(form,sizeof form,"***INFO:%s ist nun Dealer",name);
    SendClientMessage(playerid,COLOR_BLUE,form);
    return 1;
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Diesen Job gibt es nicht!");
    SendClientMessage(playerid,COLOR_BLUE,"Jobs: Taxifahrer , Dealer , Arzt ");
    return 1;
    }
    return 0;
    }

    Ich suche einen Job Script, wo man als Taxifahrer oder Sonstiges machen kann. Mein GM ist kein GF, es wird ein Stuntgamemode. Und von daher suche ich einen Job Script. Habe schon SuFu benutzt, der findet leider nichts.