Beiträge von GTA Eastcoast

    Hey Leute von Heute ^^
    Mein PayDay Timer geht nicht ich hoffe jemand kann mir helfen?
    Ich sollte eig. nach einer Stunde PayDay Bekommen aber es geht nicht?
    Man soll jede 60min 1mal pay day bekommen
    Bedanke mich jz schon ma :thumbup:


    MFG Game-Forum


    Bei den Dialogen
    #define DIALOG_PAYDAY 8


    Bei News:
    new PayTime[MAX_PLAYERS];


    Bei Forwards
    forward PayDay (playerid);


    Das habe ich im stats Dialog:
    if(strcmp(cmdtext,"/stats",true)==0)
    {
    new string[560],string2[560],entstring[560];
    new fraktname[64];
    new jobname[64];
    switch(GetPVarInt(playerid,"Job")) {
    case 0:{jobname = "Arbeitlos";}
    case 1:{jobname = "Bauer";}
    }
    switch(GetPVarInt(playerid,"Fraktion"))
    {
    case 0:{fraktname="Keine";}
    case 1:{fraktname=fraktname1;}
    case 2:{fraktname=fraktname2;}
    case 3:{fraktname=fraktname3;}
    case 4:{fraktname=fraktname4;}
    case 5:{fraktname=fraktname5;}
    case 6:{fraktname=fraktname6;}
    case 7:{fraktname=fraktname7;}
    }
    new zeit = 60 - PayTime[playerid];
    //1 reihe
    format(string,sizeof(string),"[{F81414}Name: {6EF83C}%s{FFFFFF}]\n\n[{F81414}Level: {6EF83C}%i{FFFFFF}]\n\n[{F81414}Respekt: {6EF83C}%d/%d{FFFFFF}]\n\n[{F81414}Zeit bis Payday: {6EF83C}%d{FFFFFF}]\n\n[{F81414}Adminlevel: {6EF83C}%i{FFFFFF}]\n\n[{F81414}Fraktion: {6EF83C}%s{FFFFFF}]\n",SpielerName(playerid),GetPlayerScore(playerid),GetPVarInt(playerid,"Respekt"),GetPVarInt(playerid,"MaxRespekt"),PayTime[playerid],GetPVarInt(playerid,"Adminlevel"),fraktname);
    format(string2,sizeof(string2),"{FFFFFF}[{F81414}Job: {6EF83C}%s{FFFFFF}]",jobname);
    format(entstring,sizeof(entstring),"%s\n%s",string,string2);
    ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"Statistiken",entstring,"Ok","");
    //2 reihe
    return 1;
    }
    Das habe ich iwo im gamemode:
    public PayDay (playerid)
    {
    GameTextForPlayer(playerid,"Payday",3000,1);
    GivePlayerMoney(playerid,jobgeld[playerid]);
    new str[128];
    format(str,sizeof(str),"Du hast Pay day!\nDein Jobgehelt: %d$\nNächster PayDay in 60 Minuten!\nDu erhältst 3.0 Zinsen\nSteuern: -2000$",jobgeld[playerid]);
    jobgeld[playerid] = 0;
    ShowPlayerDialog(playerid,DIALOG_PAYDAY,DIALOG_STYLE_MSGBOX,"Zahltag",str,"Gelesen","");
    SetPVarInt(playerid,"Respekt",GetPVarInt(playerid,"Respekt")+1); // Respekt wird um 1 erhöt.
    if(GetPVarInt(playerid,"Respekt") == GetPVarInt(playerid,"MaxRespekt")) { //Hat er maximalen Respekt?
    SetPVarInt(playerid,"Respekt",0);
    SetPVarInt(playerid,"MaxRespekt",GetPVarInt(playerid,"MaxRespekt")+4); // Maximaler Respekt wird um 4 erhöt
    SetPVarInt(playerid,"Level",GetPVarInt(playerid,"Level")+1); // Level Up
    SetPlayerScore(playerid,GetPVarInt(playerid,"Level"));
    GameTextForPlayer(playerid,"~w~Level~n~UP",5000,1);
    }
    }


    Das habe ich iwo im gamemode:
    forward Minute();
    public Minute()
    {
    ForAllPlayers(i) {
    if(vertrag[i] > 0) {
    vertrag[i]--;
    }
    PayTime[i]++;
    if(!IsPlayerConnected(i)) continue;
    if(PayTime[i] == 60)
    {
    PayDay(i);
    PayTime[i] = 0;
    }
    }
    }


    Das habe ich bei AccountLaden
    PayTime[playerid] = dini_Int(Spielerdatei,"Paytime");


    Das habe ich bei AccountSpeichern
    dini_IntSet(Spielerdatei,"Paytime",PayTime[playerid]);

    Hey leute könnte mir vill. einer so was erstellen?
    Anstatt ein Auto exlodiert soll das auto mit dem player freezen und der player soll mit 2hp im auto sitzen und warten bis man ihn raus holt?
    Und man soll ihn mit /unfreezecar rausholen?
    Das auto soll erste wieder gehen wen man es repariert?


    Kann mir vill. einer so was scripten?


    MFG Game-Forum

    Das habe ich bei den Dialogen
    #define NEON 14


    Das habe ich bei OnPlayerCommand Text
    if (strcmp("/neon", cmdtext, true, 10) == 0)
    {
    if(isPlayerAnAdmin(playerid,3))
    if(IsPlayerInAnyVehicle(playerid))
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
    {
    SendClientMessage(playerid, COLOR_WHITE, "Du bist nicht der Fahrer!");
    return 1;
    }
    ShowPlayerDialog(playerid, NEON, DIALOG_STYLE_LIST, "Wähle eine Neon Farbe","Blau (500k)\nGrün(500k)\nGelb(500k)\nWeiß(500k)\nPink(500k)\nSirene(800k)\nNeon Abbauen(Gratis)","Benutzen","Schließen");
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "Du bist in keinem Vehicle!");
    }
    return 1;
    }


    Das habe ich bei OnDialogResponse
    if(dialogid == NEON)
    {
    if(response)
    {
    if(listitem == 0)
    {
    SetPVarInt(playerid, "neon", 1);
    SetPVarInt(playerid, "blue", CreateObject(18648,0,0,0,0,0,0));
    SetPVarInt(playerid, "blue1", CreateObject(18648,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "blue"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "blue1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    if(GetPlayerMoney(playerid) < 500000)return SendClientMessage(playerid,0xAF0000FF,"Du hast nicht genug geld (500000$)");
    GivePlayerMoney(playerid,-500000);
    GameTextForPlayer(playerid, "~b~ Blau ~w~Du hast NEON zu deinem Vehicle hinzugefuegt",3500,5);
    }
    if(listitem == 1)
    {
    SetPVarInt(playerid, "neon", 2);
    SetPVarInt(playerid, "green", CreateObject(18649,0,0,0,0,0,0));
    SetPVarInt(playerid, "green1", CreateObject(18649,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "green"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "green1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    if(GetPlayerMoney(playerid) < 500000)return SendClientMessage(playerid,0xAF0000FF,"Du hast nicht genug geld (500000$)");
    GivePlayerMoney(playerid,-500000);
    GameTextForPlayer(playerid, "~g~Grün ~w~Du hast NEON zu deinem Vehicle hinzugefuegt",3500,5);
    }
    if(listitem == 2)
    {
    SetPVarInt(playerid, "neon", 3);
    SetPVarInt(playerid, "yellow", CreateObject(18650,0,0,0,0,0,0));
    SetPVarInt(playerid, "yellow1", CreateObject(18650,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "yellow"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "yellow1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    if(GetPlayerMoney(playerid) < 500000)return SendClientMessage(playerid,0xAF0000FF,"Du hast nicht genug geld (500000$)");
    GivePlayerMoney(playerid,-500000);
    GameTextForPlayer(playerid, "~y~Gelb~w~ Du hast NEON zu deinem Vehicle hinzugefuegt",3500,5);
    }
    if(listitem == 3)
    {
    SetPVarInt(playerid, "neon", 4);
    SetPVarInt(playerid, "white", CreateObject(18652,0,0,0,0,0,0));
    SetPVarInt(playerid, "white1", CreateObject(18652,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "white"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "white1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    if(GetPlayerMoney(playerid) < 500000)return SendClientMessage(playerid,0xAF0000FF,"Du hast nicht genug geld (500000$)");
    GivePlayerMoney(playerid,-500000);
    GameTextForPlayer(playerid, "~w~Weiß~w~ Du hast NEON zu deinem Vehicle hinzugefügt",3500,5);
    }
    if(listitem == 4)
    {
    SetPVarInt(playerid, "neon", 5);
    SetPVarInt(playerid, "pink", CreateObject(18651,0,0,0,0,0,0));
    SetPVarInt(playerid, "pink1", CreateObject(18651,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "pink"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "pink1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    if(GetPlayerMoney(playerid) < 500000)return SendClientMessage(playerid,0xAF0000FF,"Du hast nicht genug geld (500000$)");
    GivePlayerMoney(playerid,-500000);
    GameTextForPlayer(playerid, "~p~Pink~w~Du hast NEON zu deinem Vehicle hinzugefuegt",3500,5);
    }
    if(listitem == 5)
    {
    SetPVarInt(playerid, "Sirene", 1);
    SetPVarInt(playerid, "Sirene", CreateObject(18646,0,0,0,0,0,0));
    SetPVarInt(playerid, "Sirene1", CreateObject(18646,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "Sirene"), GetPlayerVehicleID(playerid), -0.609999, 0.154999, 0.864999, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "Sirene"), GetPlayerVehicleID(playerid), -0.609999, 0.154999, 0.864999, 0.0, 0.0, 0.0);
    if(GetPlayerMoney(playerid) < 500000)return SendClientMessage(playerid,0xAF0000FF,"Du hast nicht genug geld (500000$)");
    GivePlayerMoney(playerid,-800000);
    GameTextForPlayer(playerid, "~p~Sirene~w~Du hast eine Sirene zu deinem Vehicle hinzugefuegt",3500,5);
    }
    if(listitem == 6)
    {
    DestroyObject(GetPVarInt(playerid, "blue"));
    DeletePVar(playerid, "neon");
    DestroyObject(GetPVarInt(playerid, "blue1"));
    DeletePVar(playerid, "neon");
    DestroyObject(GetPVarInt(playerid, "green"));
    DeletePVar(playerid, "neon");
    DestroyObject(GetPVarInt(playerid, "green1"));
    DeletePVar(playerid, "neon");
    DestroyObject(GetPVarInt(playerid, "yellow"));
    DeletePVar(playerid, "neon");
    DestroyObject(GetPVarInt(playerid, "yellow1"));
    DeletePVar(playerid, "neon");
    DestroyObject(GetPVarInt(playerid, "white"));
    DeletePVar(playerid, "neon");
    DestroyObject(GetPVarInt(playerid, "white1"));
    DeletePVar(playerid, "neon");
    DestroyObject(GetPVarInt(playerid, "pink"));
    DeletePVar(playerid, "neon");
    DestroyObject(GetPVarInt(playerid, "pink1"));
    DeletePVar(playerid, "neon");
    DestroyObject(GetPVarInt(playerid, "Sirene"));
    DeletePVar(playerid, "neon");
    DestroyObject(GetPVarInt(playerid, "Sirene1"));
    DeletePVar(playerid, "neon");

    GameTextForPlayer(playerid, "~g~Du hast das Neon Abgebaut",3500,5);
    }
    }
    }


    Wie kann ich das so machen das meine Sirene & Farben Gespeichert werden
    Und das das immer untern dem auto bleibt?
    z.B. so:
    SpielerDatei
    ------------
    Neon=
    Blau=
    Grün=
    Gelb=
    Pink=
    Weiß=
    Sirene=
    Sirene1=

    Z.B mit Auto


    Bei Forwards:
    forward IsACar (carid);


    Bei ocmd: Befehlen
    //Gibt Auto License
    ocmd:gclic(playerid,params[])
    {
    new pID,
    str[128],
    str2[128];
    if(sscanf(params,"u",pID)) return SendClientMessage(playerid,ROT,"Benutzung: /gclic [SpielerName/ID]");
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    if(!isPlayerInFrakt(playerid,5)) return SendClientMessage(playerid,ROT,"Du bist kein Fahrlehrer!");
    if(!IsPlayerInRangeOfPoint(pID,20,x,y,z)) return SendClientMessage(playerid,ROT,"Dieser Spieler ist nicht in deiner Nähe!");
    format(str,sizeof(str),"* %s hat dir den Auto Führerschin gegeben!",SpielerName(playerid));
    format(str2,sizeof(str2),"* Du hast %s den Auto Führerchein gegeben!",SpielerName(pID));
    SendClientMessage(playerid,gelb,str2);
    GivePlayerMoney(pID,-9000);
    SendClientMessage(pID,gelb,str);
    SetPVarInt(pID,"AutoSchein",1);
    return 1;
    }
    //Auto Führerschein Wegnehehmen
    ocmd:tclic(playerid,params[])
    {
    new pID,
    str[128],
    str2[128];
    if(sscanf(params,"u",pID)) return SendClientMessage(playerid,ROT,"Benutzung: /tclic [SpielerName/ID]");
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    if(!isPlayerInFrakt(playerid,5)) return SendClientMessage(playerid,ROT,"Du bist kein Fahrlehrer!");
    if(!isPlayerInFrakt(playerid,1)) return SendClientMessage(playerid,ROT,"Du bist kein Polizist!");
    if(!IsPlayerInRangeOfPoint(pID,20,x,y,z)) return SendClientMessage(playerid,ROT,"Dieser Spieler ist nicht in deiner Nähe!");
    format(str,sizeof(str),"* %s hat dir den Auto Führerschin entzogen!",SpielerName(playerid));
    format(str2,sizeof(str2),"* Du hast %s den Auto Führerchein entzogen!",SpielerName(pID));
    SendClientMessage(playerid,gelb,str2);
    SendClientMessage(pID,gelb,str);
    SetPVarInt(pID,"AutoSchein",0);
    return 1;
    }


    Bei OnPlayerStateChange
    if(newstate == PLAYER_STATE_DRIVER)
    {
    new vehid = GetPlayerVehicleID(playerid);
    if(IsACar(vehid)) {
    if(GetPVarInt(playerid,"AutoSchein") != 1)
    if(GetPVarInt(playerid,"AutoSchein") != 3) {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid,ROT,"Du hast keinen Führerschein bitte mach diesen an der Fahrschule");
    }
    }
    }


    Da wo du deinen Account Lädst:
    SetPVarInt(playerid,"AutoSchein",dini_Int(Spielerdatei,"AutoSchein"));


    Da wo du deinen Account Speicherst:
    dini_IntSet(Spielerdatei,"AutoSchein",GetPVarInt(playerid,"AutoSchein"));


    Und noch das:
    //Auto License
    public IsACar (carid)
    {
    new Model = GetVehicleModel(carid);
    if(Model == 400 || Model == 401 || Model == 402 || Model == 404 || Model == 405 || Model == 409 || Model == 410 || Model == 411 || Model == 412 || Model == 413)
    {
    return 1;
    }
    if(Model == 414 || Model == 415 || Model == 416 || Model == 418 || Model == 419 || Model == 420 || Model == 421 || Model == 422 || Model == 423 || Model == 424)
    {
    return 1;
    }
    if(Model == 426 || Model == 427 || Model == 428 || Model == 429 || Model == 431 || Model == 434 || Model == 436 || Model == 438 || Model == 439 || Model == 440)
    {
    return 1;
    }
    if(Model == 441 || Model == 442 || Model == 425 || Model == 451 || Model == 458 || Model == 459 || Model == 466 || Model == 467 || Model == 470 || Model == 474)
    {
    return 1;
    }
    if(Model == 475 || Model == 477 || Model == 479 || Model == 478 || Model == 480 || Model == 482 || Model == 483 || Model == 489 || Model == 490 || Model == 491)
    {
    return 1;
    }
    if(Model == 492 || Model == 494 || Model == 495 || Model == 496 || Model == 489 || Model == 499 || Model == 500 || Model == 502 || Model == 503 || Model == 504)
    {
    return 1;
    }
    if(Model == 505 || Model == 506 || Model == 506 || Model == 507 || Model == 508 || Model == 516 || Model == 517 || Model == 518 || Model == 525 || Model == 526)
    {
    return 1;
    }
    if(Model == 527 || Model == 528 || Model == 530 || Model == 533 || Model == 534 || Model == 535 || Model == 536 || Model == 540 || Model == 541 || Model == 542)
    {
    return 1;
    }
    if(Model == 543 || Model == 545 || Model == 546 || Model == 547 || Model == 549 || Model == 550 || Model == 551 || Model == 552 || Model == 554 || Model == 555 || Model == 558 || Model == 559 || Model == 560 || Model == 561 || Model == 562)
    {
    return 1;
    }
    if(Model == 565 || Model == 566 || Model == 567 || Model == 568 || Model == 574 || Model == 575 || Model == 576 || Model == 579 || Model == 580 || Model == 582 || Model == 585 || Model == 587 || Model == 589 || Model == 596 || Model == 597)
    {
    return 1;
    }
    if(Model == 598 || Model == 599 || Model == 600 || Model == 601 || Model == 602 || Model == 603 || Model == 604 || Model == 605 || Model == 609)
    {
    return 1;
    }
    return 0;
    }

    Hey Leute ich habe einen Warning weiß vill. jemand was da Falsch ist?


    Der warning:
    E:\Aktu\gamemodes\Game-Forum.pwn(2435) : warning 202: number of arguments does not match definition
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Warning.


    Hier ist der Warnung in der zeile:
    dini_IntSet(Spielerdatei,"Leben",GetPlayerHealth(playerid));

    hey Leute ich wollte das wen ein Auto eigentlich explodiert das das auto nur gefreezt wird und der player auch obwohl er tot ist damit der krankenwagen und mechanik dienst auch ma was zu tun hat?


    MFG Game-Forum

    Hey Leute kann mir villeicht einer so ein tacho system erstellen?
    Ich bekomms nicht hin
    ;)


    Bitte kopieren und im Browser einfügen ^^
    http://img0.www.suckmypic.net/img/j/H/Iw3BqZ9h/Unbenannt.png


    MFG Game-Forum

    if(strcmp(cmdtext,"/stats",true)==0)
    {
    new string[560];
    new fraktname[64];
    new jobname[64];
    switch(GetPVarInt(playerid,"Job")) {
    case 0:{jobname = "Arbeitlos";}
    case 1:{jobname = "Bauer";}
    }
    switch(GetPVarInt(playerid,"Fraktion"))
    {
    case 0:{fraktname="Keine";}
    case 1:{fraktname=fraktname1;}
    case 2:{fraktname=fraktname2;}
    case 3:{fraktname=fraktname3;}
    case 4:{fraktname=fraktname4;}
    case 5:{fraktname=fraktname5;}
    case 6:{fraktname=fraktname6;}
    }
    new zeit = 60 - PayTime[playerid];
    //1 reihe
    format(string,sizeof(string),"[{F81414}Name: {6EF83C}%s{FFFFFF}]\n\n[{F81414}Level: {6EF83C}%i{FFFFFF}]\n\n[{F81414}Respekt: {6EF83C}%d/%d{FFFFFF}]\n\n[{F81414}Zeit bis Payday: {6EF83C}%d{FFFFFF}]\n\n[{F81414}Adminlevel: {6EF83C}%i{FFFFFF}]\n\n[{F81414}Fraktion: {6EF83C}%s{FFFFFF}]\n\n{FFFFFF}[{F81414}Job: {6EF83C}%s{FFFFFF}]",SpielerName(playerid),GetPlayerScore(playerid),GetPVarInt(playerid,"Respekt"),GetPVarInt(playerid,"MaxRespekt"),zeit,GetPVarInt(playerid,"Adminlevel"),fraktname,jobname);
    ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"Statistiken",string,"Ok","");
    //2 reihe
    return 1;
    }