Jump to content

bL3s

Membru
  • Posts

    42
  • Joined

  • Last visited

    Never

Posts posted by bL3s

  1. Am rezolvat:) trebuia cu SetObjectRot

    Dar acum primesc warning-urile astea

    C:\DOCUME~1\bles\Desktop\SA-MP0~1.3C\GAMEMO~1\GODFAT~1.PWN(9584) : warning 202: number of arguments does not match definition

    C:\DOCUME~1\bles\Desktop\SA-MP0~1.3C\GAMEMO~1\GODFAT~1.PWN(32843) : warning 202: number of arguments does not match definition

    Liniile

    SetObjectRot(barieralspd,0.0000, 0.0000, 90.8594,0.97);
    - 9584

    SetObjectRot(barieralspd,0.0000, 89.3814, 90.8594,5);
    - 32843

    Multumesc!:D

  2. Am facut in felul urmator

    Intre toate acele forward am pus

    forward barieralspdclose(playerid);

    Apoi printre toate acele new..; am pus

    new barieralspd;

    Apoi la OnGameModeInit langa celelalte createobject

    barieralspd = CreateObject(968, 1544.700439, -1630.897217, 13.093362, 0.0000, 89.3814, 90.8594);// Bariera LSPD

    La OnPlayerCommandText am pus:

    //-------------------------------[bariera LSPD]-----------------------------------------------------------//

    if (strcmp("/opengate", cmdtext, true, 10) == 0)

    {

    if(PlayerInfo[playerid][pMember] >= 1 || PlayerInfo[playerid][pLeader] >= 1 || PlayerInfo[playerid][pMember] <= 3 || PlayerInfo[playerid][pLeader] <= 3)

    {

    if(PlayerToPoint(5.0,playerid,1544.2599,-1627.5999,13.3828))

      {

      MoveObject(barieralspd,1544.700439, -1630.897217, 13.093362,0.97);

        SendClientMessage(playerid,COLOR_BLUE,"You have opened the gate,it will be closed in 7 seconds!");

        SetTimer("barieralspdclose", 7000, 0);

          }

    }

                return 1;

    }

    Apoi la sfarsitul gm-ului

    public barieralspdclose(playerid)

    {

          MoveObject(barieralspd,-1630.897217, 13.093362, 0.0000, 89.3814, 90.8594,0.97);

          return 1;

    }

    Bariera se misca foarte ciudat:| nu cum am aranjat-o eu in mta.. imi puteti spune ce am gresit?:D

  3. Am urmatoarea comanda de /unban :D

    //--------------------------[unBan]-----------------------------------//

    if (strcmp(cmd, "/unban", true)==0)

    {

        if(PlayerInfo[playerid][pAdmin] >=1337)

        {

            tmp = strtok(cmdtext, idx);

            if(!strlen(tmp))

    {

            SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unban [Player Name]");

                return 1;

    }

    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

    GetPlayerName(playerid, sendername, sizeof(giveplayer));

    format(string, 256, "[ADMIN] %s has unbanned %s", sendername, tmp);

    ABroadCast(COLOR_YELLOW,string,1);

    format(string, 256, "[ADMIN] %s has unbanned %s", sendername, tmp);

    printf(string);

    format(string,sizeof(string),"Users/%s.ini",tmp);

    fremove(string);

    SendClientMessage(playerid, COLOR_WHITE, "Player unbanned");

    SendRconCommand(string);

    SendRconCommand("reloadbans");

      GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

    GetPlayerName(playerid, sendername, sizeof(sendername));

    }

    return 1;

    }

    Cum fac , ca atunci cand dau unban unui player, sa ii se scoata banul dar sa nu ii se stearga contul:|

    Cu comanda asta ii se sterge:(

  4. Am aceasta comanda pe server:D si as vrea sa stiu cum pot face ca atunci cand un lider scrie de exemplu: "/giverank gigel 5" lui gigel sa ii deie skinul cutare..:| adica la rank 5 sa ii deie 1 skin la rank 4 alt skin.. etc.:D

    Dar la fiecare factiune sa fie alte skinuri:D

    Se poate?:))

    if(strcmp(cmd, "/giverank", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /giverank [playerid/PartOfName] [Number(1-5)]");

    return 1;

    }

    new para1;

    new level;

    para1 = ReturnUser(tmp);

    tmp = strtok(cmdtext, idx);

    level = strval(tmp);

    if(level > 5 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "  Dont go below number 0, or above number 5!"); return 1; }

    if (PlayerInfo[playerid][pLeader] >= 1)

    {

        if(IsPlayerConnected(para1))

        {

            if(para1 != INVALID_PLAYER_ID)

            {

    GetPlayerName(para1, giveplayer, sizeof(giveplayer));

    GetPlayerName(playerid, sendername, sizeof(sendername));

    PlayerInfo[para1][pRank] = level;

    format(string, sizeof(string), "  You have been promoted to a higher Rank by Leader %s", sendername);

    SendClientMessage(para1, COLOR_LIGHTBLUE, string);

    format(string, sizeof(string), "  You have given %s Rank %d.", giveplayer,level);

    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

    }

    }

    }

    else

    {

    SendClientMessage(playerid, COLOR_GRAD1, "  you are not authorized to use that command(Leaders Only)!");

    }

    }

    return 1;

    }

  5. Deci, ca sa inteleg..

    Daca am

    CreateObject(4859, -3131.285645, -2571.534668, 2.386509, 0.0000, 0.0000, 0.0000);

    pun asa?

    CreateObject(4859, -3131.285645, -2571.534668, 2.386509, 0.0000, 0.0000, 0.0100);
  6. Am facut o mapa in MTA, mai bine zis, un exterior pentru jail:)

    Dar am o problema, l-am facut undeva pe apa si am observat ca se poate intra pe undeva cu barca:|

    Deci m-am hotarat sa urc tot jailul undeva in aer unde sa nu il gaseasca nimeni..

    Si as vrea sa stiu daca pot sa fac ceva sa unesc toate obiectele intr-una si sa le ridic pe toate deodata.. sau daca trebuie sa le iau pe rand X_X

    Multumesc!

  7. La factiunile nr.5 si nr.6 le-am facut cate 1 hq.. toate bune si frumoase pana cand le-am adaugat cate 1 pickup info la exit.

    MafiaExit = CreatePickup(1239, 23,1302.5199,-1.7875,1001.0283, 0); //Mafia Exit

    Problema este cand intru in pickup, cad prin podea.. si ma da undeva in cer si tot cad:))

    La factiunea numarul 6 difera doar cordonatele asa ca nu am mai pus si linia aceea..

    Multumesc!

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.