Beiträge von Anarchiyx3

    dcmd_aoff(playerid, params[])
    {
    #pragma unused params
    if(Player[playerid][admin] >= 1)
    {
    if(Player[playerid][aDuty] == 0) return SendClientMessage(playerid, COLOR_RED, "Du bist bereits Off Duty!");
    else
    {
    Player[playerid][aDuty] = 0;
    new str[128], pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(str, sizeof(str),"** %s hat sich als Supporter abgemeldet! **", pname);
    SendClientMessageToAll(COLOR_LILA, str);
    SetPlayerColor(playerid, COLOR_WHITE);
    SetPlayerArmour(playerid, 0);
    }
    }
    return 1;
    }


    Du hattest


    Player[playerid][admin] < 1


    das geht so erstmal nicht ^^


    entweder du machst es soo


    Player[playerid][admin] >= 1 Das heißst ist der Admin Rank = 1 oder höher


    oder


    Player[playerid][admin] == 1 Ist der Admin Rank genau 1



    MFg
    Kevin

    Ganz oben im Script zu den ganzen New´s und Definitionen
    #define MAX_ROADBLOCKS 85 // Can be anything you want, but don't go over the top.
    // Search enum in your script and add this:
    enum rInfo
    {
    sCreated,
    Float:sX,
    Float:sY,
    Float:sZ,
    sObject,
    };
    new Roadblocks[MAX_ROADBLOCKS][rInfo];


    unter OnPlayerCommandText


    if(strcmp(cmd, "/nappel", true) == 0)
    {
    if(IsPlayerConnected(playerid) && IsACop(playerid) || IsPlayerAdmin(playerid))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /crb [Roadblock ID]");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Available Roadblocks:");
    SendClientMessage(playerid, COLOR_GRAD1, "| 1: Small Roadblock");
    SendClientMessage(playerid, COLOR_GRAD1, "| 2: Medium Roadblock");
    SendClientMessage(playerid, COLOR_GRAD1, "| 3: Big Roadblock");
    SendClientMessage(playerid, COLOR_GRAD1, "| 3: Cone");
    return 1;
    }
    new rb = strval(tmp);
    if (rb == 1)
    {
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
    GetPlayerPos(playerid, plocx, plocy, plocz);
    GetPlayerFacingAngle(playerid,ploca);
    CreateRoadblock(1459,plocx,plocy,plocz,ploca);
    format(string,sizeof(string),"[HQ]: Officer %s has placed a Roadblock(1) at his position, over.",GPN(playerid));
    SendRadioMessage(1,COLOR_BLUE,string);
    GameTextForPlayer(playerid,"~w~Roadblock ~b~Placed!",3000,1);
    return 1;
    }
    else if (rb == 2)
    {
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
    GetPlayerPos(playerid, plocx, plocy, plocz);
    GetPlayerFacingAngle(playerid,ploca);
    CreateRoadblock(978,plocx,plocy,plocz+0.6,ploca);
    format(string,sizeof(string),"[HQ]: Officer %s has placed a Roadblock(2) at his position, over.",GPN(playerid));
    SendRadioMessage(1,COLOR_BLUE,string);
    GameTextForPlayer(playerid,"~w~Roadblock ~b~Placed!",3000,1);
    return 1;
    }
    else if (rb == 3)
    {
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
    GetPlayerPos(playerid, plocx, plocy, plocz);
    GetPlayerFacingAngle(playerid,ploca);
    CreateRoadblock(981,plocx,plocy,plocz+0.9,ploca+180);
    format(string,sizeof(string),"[HQ]: Officer %s has placed a Roadblock(3) at his position, over.",GPN(playerid));
    SendRadioMessage(1,COLOR_BLUE,string);
    GameTextForPlayer(playerid,"~w~Roadblock ~g~Placed!",3000,1);
    SetPlayerPos(playerid, plocx, plocy+1.3, plocz);
    return 1;
    }
    else if (rb == 4)
    {
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
    GetPlayerPos(playerid, plocx, plocy, plocz);
    GetPlayerFacingAngle(playerid,ploca);
    CreateRoadblock(1238,plocx,plocy,plocz+0.2,ploca);
    format(string,sizeof(string),"[HQ]: Officer %s has placed a Traffic Cone(1) at his position, over.",GPN(playerid));
    SendRadioMessage(1,COLOR_BLUE,string);
    GameTextForPlayer(playerid,"~w~Cone ~g~Placed!",3000,1);
    return 1;
    }
    else if (rb == 4)
    {
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
    GetPlayerPos(playerid, plocx, plocy, plocz);
    GetPlayerFacingAngle(playerid,ploca);
    CreateRoadblock(1425,plocx,plocy,plocz+0.6,ploca);
    format(string,sizeof(string),"[HQ]: Officer %s has placed a Detour Sign(4) at his position, over.",GPN(playerid));
    SendRadioMessage(1,COLOR_BLUE,string);
    GameTextForPlayer(playerid,"~w~Sign ~g~Placed!",3000,1);
    return 1;
    }
    else if (rb == 5)
    {
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
    GetPlayerPos(playerid, plocx, plocy, plocz);
    GetPlayerFacingAngle(playerid,ploca);
    CreateRoadblock(3265,plocx,plocy,plocz-0.5,ploca);
    format(string,sizeof(string),"[HQ]: Officer %s has placed a Will Be Sign(5) at his position, over.",GPN(playerid));
    SendRadioMessage(1,COLOR_BLUE,string);
    GameTextForPlayer(playerid,"~w~Sign ~g~Placed!",3000,1);
    return 1;
    }
    else if (rb == 6)
    {
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
    GetPlayerPos(playerid, plocx, plocy, plocz);
    GetPlayerFacingAngle(playerid,ploca);
    CreateRoadblock(3091,plocx,plocy,plocz+0.5,ploca+180);
    format(string,sizeof(string),"[HQ]: Officer %s has placed a Line Closed Sign(6) at his position, over.",GPN(playerid));
    SendRadioMessage(1,COLOR_BLUE,string);
    GameTextForPlayer(playerid,"~w~Sign ~g~Placed!",3000,1);
    return 1;
    }
    }
    return 1;
    }
    else if (strcmp(cmd,"/rrb",true) == 0)
    {
    if(IsPlayerConnected(playerid) && IsACop(playerid) || IsPlayerAdmin(playerid))
    {
    DeleteClosestRoadblock(playerid);
    format(string,sizeof(string),"[HQ]: Officer %s has removed a Roadblock, over.",GPN(playerid));
    SendRadioMessage(1,COLOR_BLUE,string);
    GameTextForPlayer(playerid,"~w~Roadblock ~r~Removed!",3000,1);
    }
    return 1;
    }
    else if (strcmp(cmd,"/rrball",true) == 0)
    {
    if(IsPlayerConnected(playerid) && IsACop(playerid) || IsPlayerAdmin(playerid))
    {
    if(PlayerInfo[playerid][pRank] >= 6 || IsPlayerAdmin(playerid)) // This being the default Chief rank in LA-RP change if neccesary.
    {
    DeleteAllRoadblocks(playerid);
    format(string,sizeof(string),"[HQ]: Officer %s has removed all Roadblocks in the area, over.",GPN(playerid));
    SendRadioMessage(1,COLOR_BLUE,string);
    GameTextForPlayer(playerid,"~b~All ~w~Roadblocks ~r~Removed!",3000,1);
    }
    }
    return 1;
    }


    und ganz unten ins Script


    stock CreateRoadblock(Object,Float:x,Float:y,Float:z,Float:Angle)
    {
    for(new i = 0; i < sizeof(Roadblocks); i++)
    {
    if(Roadblocks[i][sCreated] == 0)
    {
    Roadblocks[i][sCreated] = 1;
    Roadblocks[i][sX] = x;
    Roadblocks[i][sY] = y;
    Roadblocks[i][sZ] = z-0.7;
    Roadblocks[i][sObject] = CreateDynamicObject(Object, x, y, z-0.9, 0, 0, Angle);
    return 1;
    }
    }
    return 0;
    }
    stock DeleteAllRoadblocks(playerid)
    {
    for(new i = 0; i < sizeof(Roadblocks); i++)
    {
    if(IsPlayerInRangeOfPoint(playerid, 100, Roadblocks[i][sX], Roadblocks[i][sY], Roadblocks[i][sZ]))
    {
    if(Roadblocks[i][sCreated] == 1)
    {
    Roadblocks[i][sCreated] = 0;
    Roadblocks[i][sX] = 0.0;
    Roadblocks[i][sY] = 0.0;
    Roadblocks[i][sZ] = 0.0;
    DestroyDynamicObject(Roadblocks[i][sObject]);
    }
    }
    }
    return 0;
    }
    stock DeleteClosestRoadblock(playerid)
    {
    for(new i = 0; i < sizeof(Roadblocks); i++)
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0, Roadblocks[i][sX], Roadblocks[i][sY], Roadblocks[i][sZ]))
    {
    if(Roadblocks[i][sCreated] == 1)
    {
    Roadblocks[i][sCreated] = 0;
    Roadblocks[i][sX] = 0.0;
    Roadblocks[i][sY] = 0.0;
    Roadblocks[i][sZ] = 0.0;
    DestroyDynamicObject(Roadblocks[i][sObject]);
    return 1;
    }
    }
    }
    return 0;
    }





    PS: Steht aber alles dort im Code ^^

    Create3DTextLabel(text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, virtualworld, testLOS)



    Text = "z.B Regeln"
    Color = "Farbe Grün,Rot,Blau etc."
    Float:X = "Kordinate X"
    Float:Y = "Kordinate Y"
    Float:Z = "Kordinate Z"
    Float:DrawDistance = "ab welcher Distance man das Text Label sieht
    virtualworld = "sollte das TextLabel in einer Virtuellenwelt sein eintragen
    testLOS = "Weis ich nicht genau ist aber eigentlich nicht wichtig (benutze es selber nicht)"

    Hallo Leute


    Ich habe 13 mal den gleichen Fehler :X


    (14047) : warning 202: number of arguments does not match definition
    (14048) : warning 202: number of arguments does not match definition
    (14049) : warning 202: number of arguments does not match definition
    (14050) : warning 202: number of arguments does not match definition
    (14051) : warning 202: number of arguments does not match definition
    (14052) : warning 202: number of arguments does not match definition
    (14053) : warning 202: number of arguments does not match definition
    (14054) : warning 202: number of arguments does not match definition
    (14055) : warning 202: number of arguments does not match definition
    (14056) : warning 202: number of arguments does not match definition
    (14057) : warning 202: number of arguments does not match definition
    (14058) : warning 202: number of arguments does not match definition
    (14059) : warning 202: number of arguments does not match definition


    Es fang an mit 14047 und geht bis 14059 xD


    strmid(HausDaten[_cache_haus][Besitzer],strtok(line,haus_index,','),0,MAX_PLAYER_NAME,MAX_PLAYER_NAME);
    HausDaten[_cache_haus][ax] = floatstr(strtok(line,haus_index,','));
    HausDaten[_cache_haus][ay] = floatstr(strtok(line,haus_index,','));
    HausDaten[_cache_haus][az] = floatstr(strtok(line,haus_index,','));
    HausDaten[_cache_haus][ix] = floatstr(strtok(line,haus_index,','));
    HausDaten[_cache_haus][iy] = floatstr(strtok(line,haus_index,','));
    HausDaten[_cache_haus][iz] = floatstr(strtok(line,haus_index,','));
    HausDaten[_cache_haus][interior] = strval(strtok(line,haus_index,','));
    HausDaten[_cache_haus][virtual_world] = strval(strtok(line,haus_index,','));
    HausDaten[_cache_haus][kosten] = strval(strtok(line,haus_index,','));
    HausDaten[_cache_haus][play_time] = strval(strtok(line,haus_index,','));
    HausDaten[_cache_haus][nicht_zum_kauf] = strval(strtok(line,haus_index,','));
    HausDaten[_cache_haus][verschlossen] = strval(strtok(line,haus_index,','));