Beiträge von datgame

    man könnte ja machen, dass man Themen, die man selbst schleißt, wiedeer öffnen kann. Themen die aber von Moderatoren o.ä. geschlossen werde, kann der Threadersteller nicht wieder öffnen...


    ShowPlayerDialog(playerid, DIALOG_JOBS, DIALOG_STYLE_LIST, "Jobs", "Job Kündigen\nDetektiv\nEisverkäufer\nDrogen-Dealer", "Annehmen", "Abbrechen");



    DAFUQ?!


    Was ist der Fehler?

    Hi!


    stock Stastteil(playerid)


    stock Stadtteil(playerid)
    {
    new Float:X, Float:Y, Float:Z; //We use this to store player position
    GetPlayerPos(playerid, X, Y, Z); //Here we are storing the player position on the variables X, Y, and Z defined previously
    for(new zoneid = 0; zoneid < sizeof(zones); zoneid++)
    {
    if (X <= zones[zoneid][zone_maxx] && X >= zones[zoneid][zone_minx] && Y <= zones[zoneid][zone_maxy] && Y >= zones[zoneid][zone_miny])
    {
    return zones[zoneid][zone_name];
    }
    }
    return false;
    }


    ocmd:find


    ocmd:find(playerid,params[]){
    if(find[playerid]) return SCM(playerid, COLOR_RED, "Du musst erst warten, bis du wieder jemanden suchen kannst");
    if(!IsACop(playerid)) return SCM(playerid, COLOR_RED, "Du bist kein Polizist");
    new pID,Float:Pos[3];
    if(sscanf(params,"u",pID))return SendClientMessage(playerid,COLOR_RED,"Verwendung: {FFFFFF}/find [ID]");
    if(GetPlayerInterior(pID) != 0) return SCM(playerid, COLOR_RED, "Der Spieler ist in einem Gebäude");
    find[playerid] = true;
    SetTimerEx("UnFind", 1000*10, false, "i", playerid);
    GetPlayerPos(pID,Pos[0],Pos[1],Pos[2]);
    SetPlayerCheckpoint(playerid, Pos[0], Pos[1], Pos[2], 5.0);
    new s[128];
    format(s, 128, "%s ist in %s", GetName(pID), Stadtteil(pID));
    SCM(playerid, COLOR_GREY, s);
    return 1;
    }


    Dann steht im Chat immer (z.B.) CrashGamesDE ist in GCrashGamesDE (Ich bin in Ganton)


    Kann mit jemand helfen?

    Hi!


    Ich habe ein kleines Problem!


    Ich spawne nach einem Killer immer im LSPD.


    OnPlayerSpawn


    public OnPlayerSpawn(playerid)
    {
    Delete3DTextLabel(TodTexte[playerid]);
    DestroyPickup(TodIcons[playerid]);
    SetPlayerSkin(playerid, GetPVarInt(playerid, "Skin"));
    if(GetPVarInt(playerid, "Jailed") == 1) {
    SetPlayerPos(playerid,264.3857,82.2331,1001.0391);
    SetPlayerInterior(playerid, 6);
    knast[playerid] = SetTimerEx("KnastTimer", 60000, true, "i", playerid);
    return 1;
    }
    new frak = GetPVarInt(playerid, "Fraktion");
    if(GetPVarInt(playerid, "Fraktion") == 0) {
    SetPlayerPos(playerid, 1022.4252,-1121.8209,23.8717);
    SetPlayerInterior(playerid, 0);
    SetPlayerFacingAngle(playerid,190.1917);
    SetPlayerColor(playerid, COLOR_WHITE);
    } else {
    SetPlayerPos(playerid, Fraks[frak][f_x], Fraks[frak][f_y], Fraks[frak][f_z]);
    SetPlayerFacingAngle(playerid, Fraks[frak][f_r]);
    SetPlayerInterior(playerid, Fraks[frak][f_inter]);
    SetPlayerColor(playerid, Fraks[frak][f_color]);
    SetPlayerVirtualWorld(playerid, Fraks[frak][f_world]);
    }
    beschuss[playerid] = false;
    return 1;
    }


    OnPlayerDeath


    public OnPlayerDeath(playerid, killerid, reason)
    {
    if(GetPVarInt(playerid, "Contracted") == 1) {
    if(GetPVarInt(killerid, "Fraktion") == 5) {
    GivePlayerMoney(killerid, GetPVarInt(playerid, "ContractMoney"));
    new s[128];
    format(s, sizeof(s), "Du hast für den Mord an %s %i$ Kopfgeld bekommen", GetName(playerid), GetPVarInt(playerid, "ContractMoney"));
    SCM(killerid, COLOR_YELLOW, s);
    SetPVarInt(playerid, "ContractMoney", 0);
    }
    }
    SetPVarInt(playerid, "Skin", GetPlayerSkin(playerid));
    if(killerid != INVALID_PLAYER_ID){
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    TodIcons[playerid] = CreatePickup(1254, 1, X, Y, Z, 0);
    new string[128];
    format(string, sizeof(string), "%s\nGetötet von: %s", GetName(playerid), GetName(killerid));
    TodTexte[playerid] = Create3DTextLabel(string, COLOR_GREY, X, Y, Z, 40, 0, 1);
    SetTimerEx("RemoveDeathIcons", 60000, false, "i", playerid);
    if(IsACop(killerid) && GetPVarInt(playerid, "Wanteds") > 0){
    new w = GetPVarInt(playerid, "Wanteds");
    SetPVarInt(playerid, "JailTime", w * 2);
    SetPVarInt(playerid, "Wanteds", 0);
    SetPlayerWantedLevel(playerid, 0);
    SetPVarInt(playerid, "Jailed", 1);
    }
    }
    Tazer[playerid] = false;
    if(IsACop(killerid)) return 1;
    if(GetPVarInt(playerid, "Contracted") == 1){
    if(GetPVarInt(killerid, "Fraktion") == 5){
    SetPVarInt(playerid, "Contracted", 0);
    new o_w = GetPVarInt(killerid, "Wanteds");
    new n_w = o_w + 1;
    SetPlayerWantedLevel(killerid, n_w);
    SetPVarInt(killerid, "Wanteds", n_w);
    new s1[128], s2[128];
    format(s1, 128, "Du hast ein Verbrechen begangen: [%s] Zeuge: [%s]", "Mord", "Niemand");
    format(s2, 128, "Neues Wantedlevel: [%i]", n_w);
    SendClientMessage(killerid, COLOR_LIGHTRED, s1);
    SendClientMessage(killerid, COLOR_YELLOW, s2);
    new s3[128], s4[128];
    format(s3, 128, "HQ: Neues Verbrechen: %s", "Mord");
    format(s4, 128, "HQ: Verdächtiger: %s Wantedlevel: %i", GetName(killerid), n_w);
    for(new i = 0; i<MAX_PLAYERS; i++) {
    if(IsPlayerConnected(i)) {
    if(IsACop(i)) {
    SendClientMessage(i, COLOR_LIGHTBLUE, s3);
    SendClientMessage(i, COLOR_LIGHTBLUE, s4);
    }
    }
    }

    }
    return 1;
    }
    new o_ww = GetPVarInt(killerid, "Wanteds");
    new n_ww = o_ww + 2;
    SetPVarInt(killerid, "Wanteds", n_ww);
    SetPlayerWantedLevel(killerid, n_ww);
    new s1[128], s2[128];
    format(s1, 128, "Du hast ein Verbrechen begangen: [%s] Zeuge: [%s]", "Mord", "Niemand");
    format(s2, 128, "Neues Wantedlevel: [%i]", n_ww);
    SendClientMessage(killerid, COLOR_LIGHTRED, s1);
    SendClientMessage(killerid, COLOR_YELLOW, s2);
    new s3[128], s4[128];
    format(s3, 128, "HQ: Neues Verbrechen: %s", "Mord");
    format(s4, 128, "HQ: Verdächtiger: %s Wantedlevel: %i", GetName(killerid), n_ww);
    for(new i = 0; i<MAX_PLAYERS; i++) {
    if(IsPlayerConnected(i)) {
    if(IsACop(i)) {
    SendClientMessage(i, COLOR_LIGHTBLUE, s3);
    SendClientMessage(i, COLOR_LIGHTBLUE, s4);
    }
    }
    }
    return 1;
    }



    1. Das.


    2.



    ocmd:cuff(playerid, params[]) {
    if(!IsACop(playerid)) return SendClientMessage(playerid, COLOR_RED, "Du bist kein Polizist.");
    new pID;
    if(sscanf(params, "u", pID)) return SendClientMessage(playerid, COLOR_RED, "Verwendung: {ffffff}/cuff [ID]");
    new pid_car = GetPlayerVehicleID(pID), player_car = GetPlayerVehicleID(playerid), Float:X, Float:Y, Float:Z;
    GetPlayerPos(pID, X, Y, Z);
    if(pid_car == player_car || IsPlayerInRangeOfPoint(playerid, 2.0, X, Y, Z)) {
    SetPlayerSpecialAction(pID, 24);
    TogglePlayerControllable(pID, false);
    } else {
    new s[128];
    format(s, sizeof(s), "%s ist nicht in deiner Nähe", GetName(pID));
    SendClientMessage(playerid, COLOR_RED, s);
    }
    return 1;
    }


    Der Cop kann aus 100 Metern Entfernung /cuff benutzen, dasselbe bei /uncuff

    Einfach abfragen in welcher Frakt er is, Posi abfrage, usw.



    ocmd:duty(playerid,params[])
    {
    if(isPlayerInFrakt(playerid,0))return SendClientMessage(playerid,COLOR_BLUE,"Du bist in keiner Fraktion");
    if(isPlayerInFrakt(playerid,1)){
    if(!IsPlayerInRangeOfPoint(playerid,3,254.4426,77.4353,1003.6406))return SendClientMessage(playerid,COLOR_BLUE,"Du bist nicht im LSPD am Duty Punkt");
    SetPlayerSkin(playerid,280);
    GivePlayerWeapon(playerid,3,99);
    GivePlayerWeapon(playerid,22,500);
    GivePlayerWeapon(playerid,25,500);
    GivePlayerWeapon(playerid,29,500);
    GivePlayerWeapon(playerid,31,500);
    SetPlayerArmour(playerid,100);
    }
    // usw.
    return 1;
    }