Jump to content

alexutu

Membru
  • Posts

    51
  • Joined

  • Last visited

    Never

Posts posted by alexutu

  1. Nick:alexutu

    Problema:am adaugat un sistem de km dupa tutorialul lui Gireada,dar nu imi arata cati km aare masina parcursi

    Erori / warnings:-

    Lini/script:-

    Ai incercat sa rezolvi singur ?:Da,dar nu am reusit

  2. eu am incercat sa fac pentru toti vipi dar nu imi tp masina.Am facut comanda dupa /getcar

    [pawn] if(strcmp(cmd, "/v call", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

      tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "[Ft:Rp]: /getcar [carid]");

    return 1;

    }

    new Float:plocx,Float:plocy,Float:plocz;

    new plo;

    plo = strval(tmp);

    if (PlayerInfo[playerid][pDonateRank] >= 3)

    {

    GetPlayerPos(playerid, plocx, plocy, plocz);

    SetVehiclePos(plo,plocx,plocy+4, plocz);

    PutPlayerInVehicle(playerid,pPcarkey,0);

    }

    else

    {

    SendClientMessage(playerid, COLOR_GRAD1, "  Nu esti autorizat sa folosesti aceasta comanda!");

    }

    }

    return 1;

    }[/pawn]

  3. Ma puteti ajuta sa introduc intr-un dialog

    [pawn]  if(strcmp(cmd, "/items", true) == 0)

    {

            if(IsPlayerConnected(playerid))

            {

              if (gPlayerLogged[playerid] != 0)

          {

                  new x_coin[128];//era 256

      x_coin = strtok(cmdtext, idx);

      if(!strlen(x_coin)) {

                  SendClientMessage(playerid,COLOR_GREY,"{00A1FF}USAGE{FFFFFF}: /items [Nume]");

                  SendClientMessage(playerid,COLOR_GREY,"Nume: bani | materiale | droguri | respect | unwarn | vip | level |");

                  return 1;

    }

                if(strcmp(x_coin,"bani",true) == 0)

                {

                  if(PlayerInfo[playerid][pCoin] >= 2)

                  {

                      GivePlayerMoney(playerid, 500000);

              new playercoin = PlayerInfo[playerid][pCoin];

              PlayerInfo[playerid][pCoin] = playercoin - 2;

              SendClientMessage(playerid,COLOR_ORANGE,"Felicitari ai achizitionat 500.000$ [500k] pentru 2 Puncte Premium)");

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

              }

              else

          {

                  SendClientMessage(playerid,COLOR_GREY,"Nu ai destule Puncte Premium.");

          }

                }

                if(strcmp(x_coin,"materiale",true) == 0)

                {

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

                  {

                  new playermats = PlayerInfo[playerid][pMats];

              PlayerInfo[playerid][pMats] = playermats + 5000;

              new playercoin = PlayerInfo[playerid][pCoin];

              PlayerInfo[playerid][pCoin] = playercoin - 1;

              SendClientMessage(playerid,COLOR_ORANGE,"Felicitari ai achizitionat 5000 mats pentru 1 Punct Premium");

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

            }

          else

          {

                  SendClientMessage(playerid,COLOR_GREY,"Nu ai destule monede(coin).");

          }

                }

                if(strcmp(x_coin,"droguri",true) == 0)

                {

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

                  {

                  new playerdrugs = PlayerInfo[playerid][pDrugs];

              PlayerInfo[playerid][pDrugs] = playerdrugs + 5000;

              new playercoin = PlayerInfo[playerid][pCoin];

              PlayerInfo[playerid][pCoin] = playercoin - 1;

              SendClientMessage(playerid,COLOR_ORANGE,"Felicitari ai achizitionat 500 g droguri pentru 1 Punct Premium");

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

            }

          else

          {

                  SendClientMessage(playerid,COLOR_GREY,"Nu ai destule Puncte Premium.");

          }

                  if(strcmp(x_coin,"unwarn",true) == 0)

                {

                  if(PlayerInfo[playerid][pCoin] >= 7)

          {

                        PlayerInfo[giveplayerid][pWarns] -= 1;

              new playercoin = PlayerInfo[playerid][pCoin];

              PlayerInfo[playerid][pCoin] = playercoin - 7;

              SendClientMessage(playerid,COLOR_ORANGE,"Felicitari ai achizitionat UNWARN pentru 1 Punct Premium");

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

            }

          else

          {

                  SendClientMessage(playerid,COLOR_GREY,"Nu ai destule Puncte Premium.");

          }

          }

                }

                if(strcmp(x_coin,"vip",true) == 0)

                {

                  if(PlayerInfo[playerid][pCoin] >= 25)

                  {

                      new para1;

        PlayerInfo[para1][pDonateRank] = 1;

              new playercoin = PlayerInfo[playerid][pCoin];

              PlayerInfo[playerid][pCoin] = playercoin - 25;

              SendClientMessage(playerid,COLOR_ORANGE,"Felicitari ai achizitionat VIP 1 pentru 25 Punct Premium");

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

            }

          else

          {

                  SendClientMessage(playerid,COLOR_GREY,"Nu ai destule Puncte Premium.");

          }

          }

          if(strcmp(x_coin,"level",true) == 0)

                {

                  if(PlayerInfo[playerid][pCoin] >= 7)

                  {

    PlayerInfo[playerid][pLevel]++;

    PlayerInfo[playerid][pLevel]++;

              new playercoin = PlayerInfo[playerid][pCoin];

              PlayerInfo[playerid][pCoin] = playercoin - 7;

              SendClientMessage(playerid,COLOR_ORANGE,"Felicitari ai achizitionat 2Levele pentru 7 Punct Premium");

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

            }

          else

          {

                  SendClientMessage(playerid,COLOR_GREY,"Nu ai destule Puncte Premium.");

          }

          }

                if(strcmp(x_coin,"respect",true) == 0)

                {

              if(IsPlayerConnected(playerid))

        {

                  if(PlayerInfo[playerid][pCoin] >= 2)

                  {

                  new playerexp = PlayerInfo[playerid][pExp];

              PlayerInfo[playerid][pExp] = playerexp + 3;

              new playercoin = PlayerInfo[playerid][pCoin];

              PlayerInfo[playerid][pCoin] = playercoin - 2;

              SendClientMessage(playerid,COLOR_ORANGE,"Felicitari ai achizitionat 3 Puncte Respect pentru 1 Punct Premium)");

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

              }

          else

          {

                  SendClientMessage(playerid,COLOR_GREY,"Nu ai destule Puncte Premium).");

          }

                }

      }

                  }

          }

    return 1;

    }[/pawn]

  4. Salut,amsi eu urmatoare prob la newbuyechat am adaugat ca si lideri sa poata vb pe chat avand orce lvl dar nu mia reusit am facut asa

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

        {

                    format(string, sizeof(string), "* Lider {33FF33}%s: {C9FFAB}%s", sendername, result);

        }[/pawn]

    si aici

    [pawn]            if (IsPlayerConnected(n) && (PlayerInfo[n][pLevel] < 4 || PlayerInfo[n][pAdmin] > 0 || PlayerInfo[n][pHelper] > 0 || PlayerInfo[n][pDonateRank] > 0))[/pawn]

    am adaugat asta

    [pawn]|| PlayerInfo[n][pLeader] > 0)[/pawn]

    dar iau eroroarea asta

    [pawn]C:\Users\ghuest\Desktop\ForTeam Romania\gamemodes\ftrp.pwn(45087) : error 029: invalid expression, assumed zero[/pawn]

      iar la aceas linie e asta

    [pawn]            if (IsPlayerConnected(n) && (PlayerInfo[n][pLevel] < 4 || PlayerInfo[n][pAdmin] > 0 || PlayerInfo[n][pHelper] > 0 || PlayerInfo[n][pDonateRank] > 0) || PlayerInfo[n][pLeader] > 0))[/pawn]

  5. Salut Sa-Mp am si eu o prob,am luat sistemul de measini al lui gireada si nu merge lam bagat in file script si lam trecut in svr cfg si degeaba.Un pr mia zis ca este ca nu am aces includ in gamemod

    [pawn]#include <zcmd>[/pawn]

    Lam bagat si iau aceste errori

    [pawn]C:\Users\ghuest\Desktop\ForTeam Romania\pawno\include\zcmd.inc(62) : warning 235: public function lacks forward declaration (symbol "OnGameModeInit")

    C:\Users\ghuest\Desktop\ForTeam Romania\pawno\include\zcmd.inc(64) : error 017: undefined symbol "funcidx"

    C:\Users\ghuest\Desktop\ForTeam Romania\pawno\include\zcmd.inc(64) : warning 215: expression has no effect

    C:\Users\ghuest\Desktop\ForTeam Romania\pawno\include\zcmd.inc(64) : error 001: expected token: ";", but found ")"

    C:\Users\ghuest\Desktop\ForTeam Romania\pawno\include\zcmd.inc(64) : error 029: invalid expression, assumed zero

    C:\Users\ghuest\Desktop\ForTeam Romania\pawno\include\zcmd.inc(64) : fatal error 107: too many error messages on one line

    Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    4 Errors.[/pawn]

    iar de la linia 60 pana la 66 am asta

    [pawn]/*

    239 +

    256 // Max Jucatori*2

    ~~~

    495

    */[/pawn]

  6. Salutare la toti,imi puteti spune cum pot fa ca pana la logare pe svr sa pot baga o melodie iar dupa ce baga parola sa inceteze melodia?

    2)Ce este gresit in acest Text3d de nu apare playerilor

    [pawn]                AdminLabel[player] = Create3DTextLabel("Admin On Duty", 0xEA494FFF, 0.0, 0.0, 0.0, 61.0, 0);

      Attach3DTextLabelToPlayer(Text3D:AdminLabel[player],player, 0.0, 0.0, 0.42);

    [/pawn]

  7. Salutare Sa-Mp.ro ma puteti ajuta ca sa tranform aceasta comanda

    [pawn]    if (strcmp(cmd, "/richlist", true) == 0)

    {

            if(IsPlayerConnected(playerid))

        {

            if(PlayerInfo[playerid][pAdmin] < 1)

            {

                SendClientMessage(playerid, COLOR_GREY, "** You're no authorized to use that command . ");

                return 1;

            }

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

    format(string, sizeof(string), "{FF2C00}[AdmWarning]: {33FF33}%s {FFFFFF}Has Checked For Rich Users Online.", sendername);

    ABroadCast(COLOR_LIGHTRED, string, 5);

    SendClientMessage(playerid, COLOR_LIGHTRED, "Rich Users online:");

    for(new i = 0; i < MAX_PLAYERS; i++)

    {

    if(IsPlayerConnected(i))

    {

        if(GetPlayerMoney(i) >= 5000000 || PlayerInfo[pAccount] >= 5000000)

        {

            GetPlayerName(i, sendername, sizeof(sendername));

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

    format(string, 128, "%s (%d) - In Hand: $%d | In Bank: $%d", sendername, i, GetPlayerMoney(i), PlayerInfo[pAccount]);

    SendClientMessage(playerid, COLOR_YELLOW, string);

    }

    }

    }

    }

    return 1;

    }

    [/pawn]

    sa poata fi folosita de toti playeri,iar aceasta sa le arata top 10 cei maai bogati playeri acestea fin clasificati in functie de bani.  Sa scrie ceva de genul

    1.Shyft Portofel 1000 Banca 2000

    2.x Portofel 900 Banca 1000

  8. La prob 1 o erroare

    [pawn]C:\Users\ghuest\Desktop\ForTeam Romania\gamemodes\ftrp.pwn(11662) : error 017: undefined symbol "PLAYER_STATE_PASENGER"[/pawn]

    si unde pun adresea radio

    [pawn] if(newstate == PLAYER_STATE_PASENGER  || newstate == PLAYER_STATE_DRIVER) //Player entered a vehicle as a driver { playaudio....... }[/pawn]

    Inca o prob cum fac ca si helperi sa vad reportul?

    comanda  [pawn] if(strcmp(cmd, "/report", true) == 0 || strcmp(cmd, "/re", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

                if(PlayerReported[playerid] == -1)//report timer

                {

                  SendClientMessage(playerid,COLOR_RED,"Poti da /report doar o data pe minut !");

                }

                else if(PlayerReported[playerid] == 0)

                {

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

    new length = strlen(cmdtext);

    while ((idx < length) && (cmdtext[idx] <= ' '))

    {

    idx++;

    }

    new offset = idx;

    new result[130];

    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))

    {

    result[idx - offset] = cmdtext[idx];

    idx++;

    }

    result[idx - offset] = EOS;

    if(!strlen(result))

    {

    SendClientMessage(playerid, 0x0080FFFF, "USAGE: /report [text]");

    return 1;

    }

    format(string, sizeof(string), "[REPORT] de la player %s(ID:%d): %s", sendername,playerid, (result));

    ABroadCast(0xE19898AA,string,1);

    SendClientMessage(playerid, 0xFF80FFFF,"[REPORT INFO]: ~~|Reportul tau a fost trimis Adminilor. Ei se vor uita si iti vor raspunde|~~");

    SetTimerEx("ResetReport", 60000, 0, "d", playerid);

        PlayerReported[playerid] = -1;

        CallReport[playerid] = 1;

        for(new i = 0; i < MAX_PLAYERS; i ++)

    {

        if(PlayerInfo[pAdmin] >= 1 || PlayerInfo[pHelper] >= 1)

        {

            format(string, sizeof(string), "~r~REPORT:%s",sendername);

            GameTextForPlayer(i,string,3000,3);

        }

        }

        }

        }

        return 1;

    }[/pawn]

  9. La prob 1 o erroare

    [pawn]C:\Users\ghuest\Desktop\ForTeam Romania\gamemodes\ftrp.pwn(11662) : error 017: undefined symbol "PLAYER_STATE_PASENGER"[/pawn]

    si unde pun adresea radio

    [pawn] if(newstate == PLAYER_STATE_PASENGER  || newstate == PLAYER_STATE_DRIVER) //Player entered a vehicle as a driver { playaudio....... }[/pawn]

    Inca o prob cum fac ca si helperi sa vad reportul?

    comanda  [pawn] if(strcmp(cmd, "/report", true) == 0 || strcmp(cmd, "/re", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

                if(PlayerReported[playerid] == -1)//report timer

                {

                  SendClientMessage(playerid,COLOR_RED,"Poti da /report doar o data pe minut !");

                }

                else if(PlayerReported[playerid] == 0)

                {

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

    new length = strlen(cmdtext);

    while ((idx < length) && (cmdtext[idx] <= ' '))

    {

    idx++;

    }

    new offset = idx;

    new result[130];

    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))

    {

    result[idx - offset] = cmdtext[idx];

    idx++;

    }

    result[idx - offset] = EOS;

    if(!strlen(result))

    {

    SendClientMessage(playerid, 0x0080FFFF, "USAGE: /report [text]");

    return 1;

    }

    format(string, sizeof(string), "[REPORT] de la player %s(ID:%d): %s", sendername,playerid, (result));

    ABroadCast(0xE19898AA,string,1);

    SendClientMessage(playerid, 0xFF80FFFF,"[REPORT INFO]: ~~|Reportul tau a fost trimis Adminilor. Ei se vor uita si iti vor raspunde|~~");

    SetTimerEx("ResetReport", 60000, 0, "d", playerid);

        PlayerReported[playerid] = -1;

        CallReport[playerid] = 1;

        for(new i = 0; i < MAX_PLAYERS; i ++)

    {

        if(PlayerInfo[pAdmin] >= 1 || PlayerInfo[pHelper] >= 1)

        {

            format(string, sizeof(string), "~r~REPORT:%s",sendername);

            GameTextForPlayer(i,string,3000,3);

        }

        }

        }

        }

        return 1;

    }[/pawn]

×
×
  • 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.