Beiträge von Master147

    Gute Tag Community,


    ich habe mir ein Tacho system angeschaut halt wie das alles gebaut ist.Da habe ich gemerkt das er ein Textdraw erstellt hat meine frage jetzt was bedeutet das alles hier ?


    SpeedoBox = TextDrawCreate(430.000000, 422.000000, " ");
    TextDrawBackgroundColor(SpeedoBox, 255);
    TextDrawFont(SpeedoBox, 1);
    TextDrawLetterSize(SpeedoBox, 27.410072, 1.000000);
    TextDrawColor(SpeedoBox, -1);
    TextDrawSetOutline(SpeedoBox, 0);
    TextDrawSetProportional(SpeedoBox, 1);
    TextDrawSetShadow(SpeedoBox, 1);
    TextDrawUseBox(SpeedoBox, 1);
    TextDrawBoxColor(SpeedoBox, 50);
    TextDrawTextSize(SpeedoBox, 430.000000, 422.000000);

    Guten Tag Community ich wollte mal ein /su befehl machen aber wenn ich /su eingebe kommt du bist kein polizist

    Spoiler anzeigen
    ocmd:su(playerid,params[])
    {
    if(isPlayerInFrakt(playerid,1)) return SendClientMessage(playerid,ROT,"Du bist kein Polizist");
    new rang, string[128], string2[64], pID;
    if(sscanf(params,"uis",pID,rang,string2))return SendClientMessage(playerid,ROT,"Benutze: /su [ID] [WantedAnzahl] [Grund]");
    if(rang>1&&rang<69)
    SetPlayerWantedLevel(pID,GetPlayerWantedLevel(pID) +rang);
    format(string,sizeof(string),"Polizist %s hat dir %i Wanted gegeben. Grund: %s",SpielerName(playerid),rang,string2);
    SendClientMessage(pID,BLAU,string);
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    format(string, sizeof(string),"HQ: Alle Einheiten: Reporter: %s",SpielerName(playerid));
    SendClientMessage(i, BLAU, string);
    format(string, sizeof(string), "HQ: Verbrechen: %s, Gesuchter: %s",string2,SpielerName(pID));
    SendClientMessage(i, BLAU, string);
    }
    return 1;
    }

    funktioniert immer noch nicht


    onplayerdeath


    Spoiler anzeigen
    SetPVarInt(playerid,"Friedhof",1);
    new Float:pX,Float:pY,Float:pZ;
    GetPlayerPos(playerid, pX, pY, pZ);
    TotenKopf[playerid] = CreatePickup(1254,1, pX, pY, pZ);
    SetPVarInt(playerid,"tx",pX);
    SetPVarInt(playerid,"ty",pY);
    SetPVarInt(playerid,"tz",pZ);

    Wieso funktioniert hier nix ?


    Spoiler anzeigen
    ocmd:wiederbeleben(playerid,params[])
    {
    if(isPlayerInFrakt(playerid,3))
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {

    Spoiler anzeigen
    if(GetPVarInt(i,"Friedhof")==1 &&
    IsPlayerInRangeOfPoint(i,3.0,GetPVarInt(i,"tx"),GetPVarInt(i,"ty"),GetPVarInt(i,"tz")))
    {
    new string[128];
    new pname[256];
    GetPlayerName(i, pname, 256);
    format(string, 256, "Du hast %s, wiederbelebt!",pname);
    SendClientMessage(playerid, BLAU, string);
    GetPlayerName(playerid, pname, 256);
    format(string, 256, "Arzt %s hat dich wiederbelebt!",pname);
    SendClientMessage(i, BLAU, string);
    DestroyPickup(TotenKopf[i]);
    SetPVarInt(i,"Friedhof",0);
    SetPlayerPos(i,GetPVarInt(i,"tx"),GetPVarInt(i,"ty"),GetPVarInt(i,"tz"));
    SetCameraBehindPlayer(i);
    SetPVarInt(i,"tx",0.0);
    SetPVarInt(i,"ty",0.0);
    SetPVarInt(i,"tz",0.0);
    new Float:tempheal;
    GetPlayerHealth(i,tempheal);
    SetPlayerHealth(i,15.0);
    return 1;
    }
    }
    }
    return 1;
    }


    //edit brauche immer noch hilfe :$

    leider funktioniert das auch nicht und ja ich bin in der richtigen frak


    hier onplayerdeath und den command wieder


    Onplayerdeath

    Spoiler anzeigen
    SetPVarInt(playerid,"Friedhof",1);
    new Float:pX,Float:pY,Float:pZ;
    GetPlayerPos(playerid, pX, pY, pZ);
    TotenKopf[playerid] = CreatePickup(1254,1, pX, pY, pZ);
    SetPVarInt(playerid,"tx",pX);
    SetPVarInt(playerid,"ty",pY);
    SetPVarInt(playerid,"tz",pZ);


    command

    Spoiler anzeigen
    ocmd:wiederbeleben(playerid,params[])
    {
    if(isPlayerInFrakt(playerid,3))
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(GetPVarInt(i,"Friedhof")==1 && IsPlayerInRangeOfPoint(playerid,3.0,GetPVarInt(i,"tx"),GetPVarInt(i,"ty"),GetPVarInt(i,"tz")))
    {
    new string[128];
    new pname[256];
    GetPlayerName(i, pname, 256);
    format(string, 256, "Du hast %s, wiederbelebt!",pname);
    SendClientMessage(playerid, BLAU, string);
    GetPlayerName(playerid, pname, 256);
    format(string, 256, "Arzt %s hat dich wiederbelebt!",pname);
    SendClientMessage(i, BLAU, string);
    DestroyPickup(TotenKopf[i]);
    SetPVarInt(i,"Friedhof",0);
    SetPlayerPos(i,GetPVarInt(i,"tx"),GetPVarInt(i,"ty"),GetPVarInt(i,"tz"));
    SetCameraBehindPlayer(i);
    SetPVarInt(i,"tx",0.0);
    SetPVarInt(i,"ty",0.0);
    SetPVarInt(i,"tz",0.0);
    new Float:tempheal;
    GetPlayerHealth(i,tempheal);
    SetPlayerHealth(i,15.0);
    return 1;
    }
    }
    }
    return 1;
    }



    //edit


    brauche noch hilfe pls hilft mir :(

    Guten Tag Community,


    da ich in einer Umfrage gefragt habe ob ich ein SF machen soll oder ein GF hab ich mit einem Selfmade angefangen.Ich brauche nun hier hilfe mit dini
    und zwar ich habe das so gemacht wenn jemand stirbt soll da ein totenkopf erstellt werden.


    So habe ich es gemacht aber wenn der medic /wiederbeleben machen möchte passiert nix.
    Ich weis bestimmt das ich mit dini falsch arbeite aber ich möchte sodaso bald auf mysql umsteigen.


    Hier der code bitte verbessert ihn:
    Onplayerdeath

    Spoiler anzeigen
    SetPVarInt(playerid,"Friedhof",1);
    new Float:pX,Float:pY,Float:pZ;
    GetPlayerPos(playerid, pX, pY, pZ);
    TotenKopf[playerid] = CreatePickup(1254,1, pX, pY, pZ);
    SetPVarInt(playerid,"tx",pX);
    SetPVarInt(playerid,"ty",pY);
    SetPVarInt(playerid,"tz",pZ);


    wiederbelben

    Spoiler anzeigen
    ocmd:wiederbeleben(playerid,params[])
    {
    if(isPlayerInFrakt(playerid,3))
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(GetPVarInt(i,"Friedhof")==1 && IsPlayerInRangeOfPoint(i,3.0,GetPVarInt(i,"tx"),GetPVarInt(i,"ty"),GetPVarInt(i,"tz")))
    {
    new string[128];
    new pname[256];
    GetPlayerName(i, pname, 256);
    format(string, 256, "Du hast %s, wiederbelebt!",pname);
    SendClientMessage(playerid, BLAU, string);
    GetPlayerName(playerid, pname, 256);
    format(string, 256, "Arzt %s hat dich wiederbelebt!",pname);
    SendClientMessage(i, BLAU, string);
    DestroyPickup(TotenKopf[i]);
    SetPVarInt(i,"Friedhof",0);
    SetPlayerPos(i,GetPVarInt(i,"tx"),GetPVarInt(i,"ty"),GetPVarInt(i,"tz"));
    SetCameraBehindPlayer(i);
    SetPVarInt(i,"tx",0.0);
    SetPVarInt(i,"ty",0.0);
    SetPVarInt(i,"tz",0.0);
    new Float:tempheal;
    GetPlayerHealth(i,tempheal);
    SetPlayerHealth(i,15.0);
    return 1;
    }
    }
    }
    return 1;
    }

    ich könnte beides machen nur was das problem ist wenn man GF edit macht spielen viele aber viele gehen dann wieder.
    Selfmade spielen wenige aber bleiben halt so ich bin momentan noch am überlegen :/

    Guten Tag Community,



    ich wollte fragen ob ich lieber ein Selfmade machen soll oder an einem GF weiter arbeiten soll weil ich habe momentan keine ahnung :/ ich würde gerne eure meinung hören und hier eine umfrage machen.


    Ich hoffe ihr könnt mir helfen


    MfG


    Master

    habe das jetzt so gemacht


    Spoiler anzeigen
    if(gTeam[playerid] == 3)
    {
    if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0)
    {
    MedicBill[playerid] = 0;
    new model = PlayerInfo[playerid][pChar];
    if(PlayerInfo[playerid][pMember] == 1) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 2) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 3) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 4) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 5) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 6) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 7) { SetSpawnInfo(playerid, 7, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 8) { SetSpawnInfo(playerid, 10, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 9) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 10) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 11) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 12) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Hells Angels
    else if(PlayerInfo[playerid][pMember] == 13) { SetSpawnInfo(playerid, 13, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Groove Street
    else if(PlayerInfo[playerid][pMember] == 14) { SetSpawnInfo(playerid, 14, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Ballas
    else if(PlayerInfo[playerid][pMember] == 15) { SetSpawnInfo(playerid, 15, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Red Soldier
    else if(PlayerInfo[playerid][pMember] == 16) { SetSpawnInfo(playerid, 16, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Los Santos Vagos
    else if(PlayerInfo[playerid][pMember] == 17) { SetSpawnInfo(playerid, 17, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Varios Los Aztecas
    else if(PlayerInfo[playerid][pMember] == 18) { SetSpawnInfo(playerid, 18, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//San Fierro Rifa
    else if(PlayerInfo[playerid][pMember] == 19) { SetSpawnInfo(playerid, 19, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Most Wanted Riders
    else if(PlayerInfo[playerid][pMember] == 20) { SetSpawnInfo(playerid, 20, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//
    else if(PlayerInfo[playerid][pMember] == 21) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }//
    else if(PlayerInfo[playerid][pMember] == 22) { SetSpawnInfo(playerid, 22, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//
    else if(PlayerInfo[playerid][pMember] == 23) { SetSpawnInfo(playerid, 23, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Wheelman Agency
    else if(PlayerInfo[playerid][pMember] == 24) { SetSpawnInfo(playerid, 24, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//
    else if(PlayerInfo[playerid][pMember] == 25) { SetSpawnInfo(playerid, 25, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//
    else if(PlayerInfo[playerid][pLeader] == 1) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 2) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 3) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 4) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 5) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 6) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 7) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 8) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 9) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 10) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 11) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; } // Fahrschule
    else if(PlayerInfo[playerid][pLeader] == 12) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Hells Angels
    else if(PlayerInfo[playerid][pLeader] == 13) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Groove Street
    else if(PlayerInfo[playerid][pLeader] == 14) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Ballas
    else if(PlayerInfo[playerid][pLeader] == 15) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Red Soldier
    else if(PlayerInfo[playerid][pLeader] == 16) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Los Santos Vagos
    else if(PlayerInfo[playerid][pLeader] == 17) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Varios Los Aztecas
    else if(PlayerInfo[playerid][pLeader] == 18) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//San Fierro Rifa
    else if(PlayerInfo[playerid][pLeader] == 19) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Most Wanted Riders
    else if(PlayerInfo[playerid][pLeader] == 20) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }// Terroristen
    else if(PlayerInfo[playerid][pLeader] == 21) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }// FBI
    else if(PlayerInfo[playerid][pLeader] == 22) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }// Feuerwehr
    else if(PlayerInfo[playerid][pLeader] == 23) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }// Wheelman Agency
    else if(PlayerInfo[playerid][pLeader] == 24) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }// Oamt
    else if(PlayerInfo[playerid][pLeader] == 25) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }// BikerBoyZ
    //SetSpawnInfo(playerid, team, model,0.0,0.0,0.0,0,0,0,0,0,0,0);
    SpawnPlayer(playerid);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    }
    }
    if(PlayerInfo[playerid][pChar] > 0) { SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]); }
    else { SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); }
    //SetPlayerWeapons(playerid);
    if(Deagle[playerid] == 0 && funpark[playerid] == 0 && PlayerInfo[playerid][pTot] == 0)
    {
    SetPlayerSpawn(playerid);
    }

    Guten Tag,


    ich hatte da mal ne frage und zwar wollte ich fragen welche objekt id ich nehmen sollte wenn ich ein objekt wegmappe und der kein boden mehr hat?
    ich bitte um hilfe möchte gerne ein neues lspd mappen


    MfG


    Master

    Guten Tag,


    wenn ich im system so mache das wenn er stirbt auf den Friedhof kommt spawnt der spieler immer neu , bei onplayerspawn ist ein setplayerspawn und wenn ich den mit variablen abfrage spawnen sie halt aber ohne skin etc kann mir einer helfen ?



    MfG


    Master

    Guten Tag Community,


    ich habe ein problem undzwar wenn ich in die paintballarena gehe und sterbe spawne ich wieder in der base.Habe variablen eingesezt das wenn er in der PB ist wieder da spawnt aber leider funktionierts nicht habe es einmal in onplayerspawn gemacht und in onplayerdeath. bitte um hilfe


    es ist ein GF edit


    MfG


    Master

    Guten Tag Community,


    ich suche jemanden der mir ein schöne LSPD , Feuerwehrwache und medic base mappen kann. Es wird für ein Project genutzt das bald eröffnet wird wir sind momentan im map berreich :)

    ist leider immer noch so :(


    OnPlayerDeath:

    Spoiler anzeigen
    public OnPlayerDeath(playerid, killerid, reason)
    {
    GW_OnPlayerDeath(playerid, killerid, reason);
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    new string[256];
    new playercash;
    new victimteam;
    new Float:px,Float:py,Float:pz;
    GetPlayerPos(playerid, px, py, pz);
    new killerteam;
    TextDrawHideForPlayer(playerid,txtTimeDisp);
    if(Deagle[playerid] != 0)
    {
    PlayerInfo[playerid][pTot] = 0;
    SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,100);
    GivePlayerWeapon(playerid,24,500);
    SetPlayerPos(playerid,-1401.829956,107.051300,1032.273437);
    SetPlayerInterior(playerid,1);
    }
    /*if(PlayerPaintballing[playerid] == 1)
    {

    Spoiler anzeigen
    GetPlayerPos(playerid,PlayerInfo[playerid][pTx],PlayerInfo[playerid][pTy],PlayerInfo[playerid][pTz]);
    CreatePickup(1254,1,PlayerInfo[playerid][pTx],PlayerInfo[playerid][pTy],PlayerInfo[playerid][pTz]);
    PlayerInfo[playerid][pTot] = 1;
    ClearCrime(playerid);
    PlayerInfo[playerid][pTot] = 1;
    SetPlayerInterior(playerid, 0);
    Clear5Text(playerid);
    Clear5Text(playerid);
    SetPlayerHealth(playerid, 100);
    SendClientMessage(playerid,COLOR_LIGHTBLUE, "Du wurdest schwer verletzt ins Krankenhaus gebracht!");
    GameTextForPlayer(playerid, "~w~IN BEHANDLUNG ~n~~r~ DAUER CA. 60 SEKUNDEN", 5000, 3);
    SetPlayerPos(playerid,1162.871704, -1339.109619, 14.297291);
    SetPlayerCameraPos(playerid, 1223.379028, -1333.354126, 33.809105);
    SetPlayerCameraLookAt(playerid, 1178.824829, -1325.804077, 13.284119);
    if(PlayerInfo[playerid][pJailed] == 2)
    {
    PlayerInfo[playerid][pTot] = 0;
    //SpawnPlayer(playerid);
    }
    }*/
    if(Deagle[playerid] == 0)
    {
    PlayerInfo[playerid][pTot] = 1;
    new Float:pX,Float:pY,Float:pZ;
    GetPlayerPos(playerid, pX, pY, pZ);
    TotenKopf[playerid] = CreatePickup(1254,1, pX, pY, pZ);
    PlayerInfo[playerid][pTx] = pX;
    PlayerInfo[playerid][pTy] = pY;
    PlayerInfo[playerid][pTz] = pZ;
    }
    if(PlayerInfo[playerid][pTot] == 1)
    {
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_YELLOW, "|________ Am Krankenhaus ________|");
    SendClientMessage(playerid, COLOR_LIGHTRED, "Durch deine schweren Verletzungen liegst du im Koma!");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Sie sind fü 2-3 Minuten im Krankenhaus! In 2-3 Minuten kommen Sie wieder raus, da Sie gearde behandelt werden!");
    ResetPlayerWeapons(playerid);
    return 1;
    }
    if(FirstSpawn[playerid] == 1)
    {
    FirstSpawn[playerid] = 0;
    }

    Spoiler anzeigen
    if(IsAtNoDm(playerid))
    {
    new kickname[MAX_PLAYER_NAME];
    new nn[MAX_PLAYER_NAME], str[150];
    GetPlayerName(playerid, nn, MAX_PLAYER_NAME);
    GetPlayerName(killerid, kickname, sizeof(kickname));
    format(str, 150, "AdmCmd: %s wurde vom System gekickt, Grund: DM in einer NO-DM Zone", kickname);
    SendClientMessageToAll(COLOR_LIGHTRED, str);
    Kick(killerid);
    }

    Spoiler anzeigen
    if(InGangJail[playerid] == 1)
    {
    format(string,sizeof(string),"AdmCmd: %s ist im Gangjail gestorben! Er wird automatisch zurück teleportiert.",PlayerName(playerid));
    ABroadCast(COLOR_LIGHTRED,string,1);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,-1634.9923,-2239.2424,31.4766);
    UnFreezePlayer(playerid);
    PlayerTied[playerid] = 0;
    InGangJail[playerid] = 1;
    }
    RobTime[playerid] = 0;
    InCargo[playerid] = 0; InLevi[playerid] = 0;
    victimteam = gTeam[playerid];
    killerteam = gTeam[killerid];
    gPlayerSpawned[playerid] = 0;
    GetPlayerName(playerid, name, sizeof(name));
    PlayerInfo[playerid][pLocal] = 255;

    Spoiler anzeigen
    if (gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11)
    {
    DisablePlayerCheckpoint(playerid);
    gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
    }
    new caller = Mobile[playerid];
    if(caller != 255)
    {
    if(caller < 255)
    {
    SendClientMessage(caller, COLOR_GRAD2, " Die Verbindung wurde unterbrochen....");
    CellTime[caller] = 0;
    CellTime[playerid] = 0;
    Mobile[caller] = 255;
    }
    Mobile[playerid] = 255;
    CellTime[playerid] = 0;
    }
    if(PlayerPaintballing[playerid] != 0)
    {
    PlayerPaintballKills[killerid] ++;
    if(PlayerPaintballKills[killerid] > PaintballWinnerKills)
    {
    new killer[MAX_PLAYER_NAME];
    PaintballWinner = killerid;
    PaintballWinnerKills = PlayerPaintballKills[killerid];
    GetPlayerName(killerid, killer, sizeof(killer));
    ClearCrime(playerid);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerPaintballing[i] != 0)
    {

    Spoiler anzeigen
    format(string, sizeof(string), "* %s ist mit %d Punkten in Führung.",killer,PaintballWinnerKills);
    SendClientMessage(i, COLOR_WHITE, string);
    }
    }
    }
    }
    return 1;
    }
    if(IsBlacklist[playerid]==1)
    {
    ClearBlack(playerid);
    IsBlacklist[playerid]=0;
    }
    if(GettingCK[playerid] < 999 || OnCK[playerid] < 999)
    {
    if(IsPlayerConnected(killerid))
    {
    if(GettingCK[killerid] < 999 || OnCK[playerid] < 999)
    {
    new killer[MAX_PLAYER_NAME];
    new dier[MAX_PLAYER_NAME];
    GetPlayerName(playerid, dier, sizeof(dier));
    GetPlayerName(killerid, killer, sizeof(killer));
    format(string, sizeof(string), "* %s hat deinen Charakter gesperrt, du kannst nun mit diesem Charakter nicht mehr Spielen.",killer);
    SendClientMessage(playerid, COLOR_LIGHTRED, string);
    format(string, sizeof(string), "** %s hat den Spieler %s erledigt**",killer,dier);
    CKLog(string);
    PlayerInfo[playerid][pCK] = 1;
    if(GettingCK[playerid] < 999) { GettingCK[playerid] = 999; }
    else if(OnCK[playerid] < 999) { OnCK[playerid] = 999; }
    if(GettingCK[killerid] < 999) { GettingCK[killerid] = 999; }
    else if(OnCK[killerid] < 999) { OnCK[killerid] = 999; }
    KickPlayer[playerid] = 1;
    }
    }
    }
    if(PlayerInfo[playerid][pHeadValue] > 0)
    {
    if(IsPlayerConnected(killerid))
    {
    if(PlayerInfo[killerid][pMember] == 8 || PlayerInfo[killerid][pLeader] == 8)
    {
    if(GoChase[killerid] == playerid)
    {
    ConsumingMoney[killerid] = 1;
    new killer[MAX_PLAYER_NAME];
    GetPlayerName(killerid, killer, sizeof(killer));
    GivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]);
    format(string,128,"<< Hitman %s hat den Auftrag an %s erfüllt und bekommt: $%d >>",killer,name,PlayerInfo[playerid][pHeadValue]);
    SendFamilyMessage(8, COLOR_YELLOW, string);
    PlayerInfo[playerid][pHeadValue] = 0;
    GotHit[playerid] = 0;
    GetChased[playerid] = 999;
    GoChase[killerid] = 999;
    }
    }
    }
    }
    if(victimteam >= 4)
    {
    if(IsPlayerConnected(killerid))
    {
    new slice = 100; //$100
    playercash = GetPlayerMoney(playerid);
    if(gTeam[killerid] != 2 && PlayerInfo[killerid][pMember] != 7) { WantedPoints[killerid] += 2; } //+ 2 wanted points
    if(SafeTime[playerid] <= 0)
    {
    if(gTeam[killerid] != gTeam[playerid])
    {
    if(GetPlayerState(killerid) == 1)
    {
    PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills] + 2;
    }
    else
    {
    PlayerInfo[killerid][pKills]++;
    }
    PlayerInfo[playerid][pKills]--;
    }
    }
    if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || (gTeam[killerid] == gTeam[playerid] && gTeam[playerid] != 4))
    {
    slice = 0;
    }
    if (((gTeam[killerid]) != 4) && ((gTeam[killerid]) == gTeam[playerid]))//no team kill
    {
    slice = 0;
    }
    if (playercash > 0)
    {
    GivePlayerMoney(playerid, -slice);
    }
    else
    {
    slice = slice+500;
    }
    GivePlayerMoney(killerid, slice);
    PlayerPlaySound(killerid, 1083, 0.0, 0.0, 0.0);
    if (((gTeam[killerid]) == 3) && reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    }
    else if (victimteam == 2)
    {
    if(IsPlayerConnected(killerid))
    {
    // Cop kill
    PlayerInfo[playerid][pKills]--;
    if (gTeam[killerid] == 2)//cops kill cop
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+100);//+100pays hospital bill
    }
    if (gTeam[killerid] >= 3)
    {
    // WantedPoints[killerid] += 1; //+ 2 wanted points

    Spoiler anzeigen
    if (reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    if(gTeam[killerid] >= 5 && SafeTime[playerid] <= 0)
    {
    if(GetPlayerState(killerid) == 1)
    {
    PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills]+2;
    }
    else
    {
    PlayerInfo[killerid][pKills]++;
    }
    WantedPoints[killerid]+=2;
    }
    }
    }
    else if (victimteam == 3)
    {
    if(IsPlayerConnected(killerid))
    {
    // Civ kill
    if ((gTeam[killerid]) == 2 || PlayerInfo[killerid][pMember] == 7)//cops kill civ
    {
    if(WantedLevel[playerid] < 1)
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+100);//+100pays hospital bill
    }
    }
    else
    {
    }

    Spoiler anzeigen
    }
    }
    else if (victimteam == 1)
    {
    if(IsPlayerConnected(killerid))
    {
    // Civ kill
    if ((gTeam[killerid]) == 2)//cops kill civ
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+100);//+100pays hospital bill
    }
    else if ((gTeam[killerid]) == 1)//med kill civ
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+100);//+100pays hospital bill
    }
    else if (((gTeam[killerid]) == 3) && reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    }
    if (victimteam >= 3 && WantedPoints[playerid] > 0 && killerteam == 2)
    {
    SetPlayerFree(playerid,killerid, "Gekillt");
    }
    if(reauber[playerid] == 1)
    {
    new s[100];
    GetPlayerName(playerid,name,sizeof(name));
    reauber[playerid] = 0;
    glav = 1800;
    KillTimer(bankcountdown1);
    KillTimer(bankcountdown2);
    KillTimer(bankcountdown3);
    KillTimer(bankcountdown4);
    KillTimer(bankcountdown5);
    KillTimer(ausgeraubt1);
    SetTimer("rauberlauben1", 1800000, 0);
    format(s,sizeof(s),"%s ist gestorben. Bankrob gescheitert.",name);
    SendClientMessageToAll(COLOR_YELLOW,s);
    }
    if(reaubersf[playerid] == 1)
    {
    new s[100];
    GetPlayerName(playerid,name,sizeof(name));
    reaubersf[playerid] = 0;
    glavsf = 1800;
    KillTimer(bankcountdown1sf);
    KillTimer(bankcountdown2sf);
    KillTimer(bankcountdown3sf);
    KillTimer(bankcountdown4sf);
    KillTimer(bankcountdown5sf);
    KillTimer(ausgeraubt1sf);
    SetTimer("rauberlauben1sf", 1800000, 0);
    format(s,sizeof(s),"%s ist gestorben. Bankrob gescheitert.",name);
    SendClientMessageToAll(COLOR_YELLOW,s);
    }
    ImShamalInterior[playerid] = 0;
    ShamalID[playerid] = -1;
    killerid = INVALID_PLAYER_ID;
    SetPlayerColor(playerid,COLOR_GRAD2);
    return 1;
    }


    //edit
    brauche immer noch hilfe man spawnt trotzdem wieder in der base :(