Beiträge von DJ Deagle

    HeyHoo,


    Ich habe ein kleines Jobsystem.


    Wenn der Spieler diesen Command eingibt:

    ocmd:startsweep(playerid,params[])
    {
    if(isPlayerInJob(playerid,2))
    {
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return 1;
    new engine,lights,alarm,doors,bonnet,boot,objective;
    new vid = GetPlayerVehicleID(playerid);
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    if(IsAPutzerCar(vid))
    {
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    TogglePlayerControllable(playerid,1);
    }
    }
    return 1;
    }


    soll ein Checkpoint nach dem anderen aus Dieser Auswahl angezeigt werden:

    new Reinigerpoints1[11][3] = {
    {1534.6433,-1448.8973,13.1538},
    {1431.3346,-1438.5981,13.1542},
    {1317.2488,-1393.7202,13.0857},
    {1139.9426,-1394.3566,13.2893},
    {1060.7434,-1314.5278,13.1559},
    {1089.4274,-1150.9023,23.4292},
    {1299.4103,-1148.7262,23.4292},
    {1439.6110,-1163.1580,23.4315},
    {1451.6865,-1303.5762,13.1561},
    {1478.8530,-1443.5215,13.1559},
    {1532.5496,-1447.3838,13.1526}
    };


    Sobald ein Spieler einen Checkpoint erreicht hat, soll der Nächste Checkpoint starten, bis man am Ende ist.


    lg
    DJ_Deagle

    Wenn der Spieler connectet & disconnectet, brauche ich ja die Abfrage, ob er Gemutet ist, welche ist das?
    Bin tooootal durcheinander

    und jetzt nochmal für Idioten?


    Nein Spaß, ich Verstehe deinen letzten Satz nicht:
    "ob der aktuelle Unix-Timestamp ( gettime() ) größer ist,als der Wert dem du den Spieler zuweist."


    Welchen Wert weise Ich ihm denn zu? o:

    HeyHoo,


    Ich habe einen kleinen /mute - Befehl gebastelt, welcher sich nach Minuten richtet.
    Doch wenn ein Spieler gemutet wird, wird in die Dini eine Zahl im 9-Fachen Wert angelegt.
    Ausserdem würde ich gerne wissen wie die Zeit abläuft!


    Hier mein Code:

    ocmd:mute(playerid,params[])
    {
    if(isPlayerAnAdmin(playerid,1))
    {
    new pID;
    new time;
    new reason[128];
    if(sscanf(params,"uis",pID,time,reason))return SendClientMessage(playerid,Grau,"Benutze: /mute [Spieler-ID] [Zeit (in Minuten)] [Grund]");
    {
    if(isPlayerAnAdmin(pID,1))
    {
    SendClientMessage(playerid,dr,"Du kannst keinen Admin muten!");
    return 1;
    }
    else
    {
    new string[128];
    new msg[128];
    format(string,sizeof(string),"Du wurdest von Admin %s für %i Minuten gemutet! Grund: %s!",PlayerName(playerid),time,reason);
    format(msg,sizeof(msg),"Admin: %s mutet den Spieler %s für %i Minuten! Grund: %s!",PlayerName(playerid),PlayerName(pID),time,reason);
    new Mins;
    Mins=gettime()+(60*time);
    SetPVarInt(pID,"Mute",Mins);
    SpielerSpeichern(pID);
    for(new i=0; i<GetMaxPlayers(); i++)
    {
    if(IsPlayerConnected(i))
    {
    if(isPlayerAnAdmin(i,1337))
    {
    SendClientMessage(i,admwarn,msg);
    }
    else if(isPlayerAnAdmin(i,1338))
    {
    SendClientMessage(i,admwarn,msg);
    }
    }
    }
    }
    }
    }
    return 1;
    }


    Bitte um Hilfe!


    lg

    Versuch mal

    if(newkeys == KEY_WALK)//Deine Taste | Jetzt machst du mit der Taste "ALT" das lich an und aus
    {
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "Du bist in keinem Fahrzeug");
    if(GetPlayerVehicleSeat(playerid) == 0)
    if(Licht[GetPlayerVehicleID(playerid)] == false)
    {
    new car = GetPlayerVehicleID(playerid);
    GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(car,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
    }
    else
    {
    new car = GetPlayerVehicleID(playerid);
    GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(car,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
    }
    return 1;
    }


    wenn das nicht geht, versuch



    if(newkeys == 1024)//Deine Taste | Jetzt machst du mit der Taste "ALT" das lich an und aus
    {
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "Du bist in keinem Fahrzeug");
    if(GetPlayerVehicleSeat(playerid) == 0)
    if(Licht[GetPlayerVehicleID(playerid)] == false)
    {
    new car = GetPlayerVehicleID(playerid);
    GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(car,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
    }
    else
    {
    new car = GetPlayerVehicleID(playerid);
    GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(car,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
    }
    return 1;
    }

    damit gehe ich alle Dialoge die "gelistet" sind durch (DIALOG_STYLE_LIST)!
    Hier die Page vom SAMP Wiki: http://wiki.sa-mp.com/wiki/OnDialogResponse


    Fortschritt:
    Ich habe die float rausgenommen, bekomme nurnoch 3 Warnings bei
    GetPlayerHealth(playerid,health);


    hier wieder die Zeilen:

    switch(dialogid==DIALOG_BSNESSEN)
    {
    case 1:
    {
    if(!response)
    {
    return 1;
    }
    switch(listitem)
    {
    case 0:
    {
    new health;
    GetPlayerHealth(playerid,health);//Zeile 1529
    if (health < 10 )
    {
    SetPlayerHealth(playerid, 14);
    }
    else if (health < 20 )
    {
    SetPlayerHealth(playerid, 26);
    }
    else if (health < 30 )
    {
    SetPlayerHealth(playerid, 34);
    }
    else if (health < 40 )
    {
    SetPlayerHealth(playerid, 42);
    }
    else if (health < 50 )
    {
    SetPlayerHealth(playerid, 56);
    }
    else if (health < 60 )
    {
    SetPlayerHealth(playerid, 69);
    }
    else if (health < 70 )
    {
    SetPlayerHealth(playerid, 76);
    }
    else if (health < 80 )
    {
    SetPlayerHealth(playerid, 83);
    }
    else if (health < 90 )
    {
    SetPlayerHealth(playerid, 99);
    }
    GivePlayerMoney(playerid,-10);
    SendClientMessage(playerid,col_Startbonus,"Mitarbeiter: Vielen Dank für ihre Bestellung!");
    }
    case 1:
    {
    new health;
    GetPlayerHealth(playerid,health);//Zeile 1572
    if (health < 10 )
    {
    SetPlayerHealth(playerid, 18);
    }
    else if (health < 20 )
    {
    SetPlayerHealth(playerid, 29);
    }
    else if (health < 30 )
    {
    SetPlayerHealth(playerid, 37);
    }
    else if (health < 40 )
    {
    SetPlayerHealth(playerid, 46);
    }
    else if (health < 50 )
    {
    SetPlayerHealth(playerid, 57);
    }
    else if (health < 60 )
    {
    SetPlayerHealth(playerid, 69);
    }
    else if (health < 70 )
    {
    SetPlayerHealth(playerid, 78);
    }
    else if (health < 80 )
    {
    SetPlayerHealth(playerid, 85);
    }
    else if (health < 90 )
    {
    SetPlayerHealth(playerid, 100);
    }
    GivePlayerMoney(playerid,-15);
    SendClientMessage(playerid,col_Startbonus,"Mitarbeiter: Vielen Dank für ihre Bestellung!");
    }
    case 2:
    {
    new health;
    GetPlayerHealth(playerid,health);//Zeile 1615
    if (health < 1 )
    {
    SetPlayerHealth(playerid, 60);
    }
    else if (health < 20 )
    {
    SetPlayerHealth(playerid, 68);
    }
    else if (health < 30 )
    {
    SetPlayerHealth(playerid, 76);
    }
    else if (health < 40 )
    {
    SetPlayerHealth(playerid, 82);
    }
    else if (health < 50 )
    {
    SetPlayerHealth(playerid, 89);
    }
    else if (health < 60 )
    {
    SetPlayerHealth(playerid, 93);
    }
    else if (health < 70 )
    {
    SetPlayerHealth(playerid, 100);
    }
    GivePlayerMoney(playerid,-18);
    SendClientMessage(playerid,col_Startbonus,"Mitarbeiter: Vielen Dank für ihre Bestellung!");
    }
    }
    }
    }
    return 1;
    }


    /e:
    Errors:

    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1529) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1572) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1615) : warning 213: tag mismatch
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    3 Warnings.


    HeyHoo,


    Ich habe diese 28 Errors:

    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1529) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1530) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1534) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1538) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1542) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1546) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1550) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1554) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1558) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1562) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1572) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1573) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1577) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1581) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1585) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1589) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1593) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1597) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1601) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1605) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1615) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1616) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1620) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1624) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1628) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1632) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1636) : warning 213: tag mismatch
    C:\Users\Zinne\Desktop\SAMP Server\gamemodes\San-RL.pwn(1640) : warning 213: tag mismatch
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    28 Warnings.



    Hier die Zeilen (direkt der ganze OnDialogResponse):

    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    switch(dialogid==DIALOG_BSNESSEN)
    {
    case 1:
    {
    if(!response)
    {
    return 1;
    }
    switch(listitem)
    {
    case 0:
    {
    new float:health;
    GetPlayerHealth(playerid,health);//Zeile 1529
    if (health < 10 )
    {
    SetPlayerHealth(playerid, 14);
    }
    else if (health < 20 )
    {
    SetPlayerHealth(playerid, 26);
    }
    else if (health < 30 )
    {
    SetPlayerHealth(playerid, 34);
    }
    else if (health < 40 )
    {
    SetPlayerHealth(playerid, 42);
    }
    else if (health < 50 )
    {
    SetPlayerHealth(playerid, 56);
    }
    else if (health < 60 )
    {
    SetPlayerHealth(playerid, 69);
    }
    else if (health < 70 )
    {
    SetPlayerHealth(playerid, 76);
    }
    else if (health < 80 )
    {
    SetPlayerHealth(playerid, 83);
    }
    else if (health < 90 )
    {
    SetPlayerHealth(playerid, 99);
    }
    GivePlayerMoney(playerid,-10);
    SendClientMessage(playerid,col_Startbonus,"Mitarbeiter: Vielen Dank für ihre Bestellung!");
    }
    case 1:
    {
    new float:health;
    GetPlayerHealth(playerid,health);
    if (health < 10 )
    {
    SetPlayerHealth(playerid, 18);
    }
    else if (health < 20 )
    {
    SetPlayerHealth(playerid, 29);
    }
    else if (health < 30 )
    {
    SetPlayerHealth(playerid, 37);
    }
    else if (health < 40 )
    {
    SetPlayerHealth(playerid, 46);
    }
    else if (health < 50 )
    {
    SetPlayerHealth(playerid, 57);
    }
    else if (health < 60 )
    {
    SetPlayerHealth(playerid, 69);
    }
    else if (health < 70 )
    {
    SetPlayerHealth(playerid, 78);
    }
    else if (health < 80 )
    {
    SetPlayerHealth(playerid, 85);
    }
    else if (health < 90 )
    {
    SetPlayerHealth(playerid, 100);
    }
    GivePlayerMoney(playerid,-15);
    SendClientMessage(playerid,col_Startbonus,"Mitarbeiter: Vielen Dank für ihre Bestellung!");
    }
    case 2:
    {
    new float:health;
    GetPlayerHealth(playerid,health);
    if (health < 1 )
    {
    SetPlayerHealth(playerid, 60);
    }
    else if (health < 20 )
    {
    SetPlayerHealth(playerid, 68);
    }
    else if (health < 30 )
    {
    SetPlayerHealth(playerid, 76);
    }
    else if (health < 40 )
    {
    SetPlayerHealth(playerid, 82);
    }
    else if (health < 50 )
    {
    SetPlayerHealth(playerid, 89);
    }
    else if (health < 60 )
    {
    SetPlayerHealth(playerid, 93);
    }
    else if (health < 70 )
    {
    SetPlayerHealth(playerid, 100);
    }
    GivePlayerMoney(playerid,-18);
    SendClientMessage(playerid,col_Startbonus,"Mitarbeiter: Vielen Dank für ihre Bestellung!");
    }
    }
    }
    }
    return 1;
    }


    Bitte helft mir!


    lg