Jump to content

Jo!nt

Membru
  • Posts

    537
  • Joined

  • Last visited

    Never

Posts posted by Jo!nt

  1. sigur o sa primesti warn o sa ma asigur eu :)

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

      {

          new skin[256];

          skin = strtok(cmdtext, idx);

          if (!strlen(skin))

          {

            SendClientMessage(playerid, COLOR_RED, "Use: /skin [skinid]");

            return 1;

          }

          new newskin = strval(skin);

          if ((newskin < 0) || (newskin > 299) || IsInvalidSkin(newskin)) {

            SendClientMessage(playerid, COLOR_RED, "Server: This skin does not exist!");

            return 1;

          }

          if (GetPlayerMoney(playerid) >= 0)

          {

            SetPlayerSkin(playerid, newskin);

            GivePlayerMoney(playerid,-0);

            format(string, 128, "Server: Skin changed to the id %d, have fun", newskin);

            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

          }

          else

          {

            SendClientMessage(playerid, COLOR_RED, "You can not change skin");

          }

          return 1;

      }

    U nu sti sa citesti mai sus lol esti praf frate dupa ce ca nu stii nimic scripting nici macar sa cauti mai esti si stupid pe deasupra ...

                                                                                          LOOSER

  2. Ati facut atata spam dar nu i-ati putut da comanda ... omg

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

    {

    new skin[256];

    skin = strtok(cmdtext, idx);

    if (!strlen(skin))

    {

    SendClientMessage(playerid, COLOR_RED, "Use: /skin [skinid]");

    return 1;

    }

    new newskin = strval(skin);

    if ((newskin < 0) || (newskin > 299) || IsInvalidSkin(newskin)) {

    SendClientMessage(playerid, COLOR_RED, "Server: This skin does not exist!");

    return 1;

    }

    if (GetPlayerMoney(playerid) >= 0)

    {

    SetPlayerSkin(playerid, newskin);

    GivePlayerMoney(playerid,-0);

    format(string, 128, "Server: Skin changed to the id %d, have fun", newskin);

    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

    }

    else

    {

    SendClientMessage(playerid, COLOR_RED, "You can not change skin");

    }

    return 1;

    }

    Alta data cauta ca in viata nu prea o sa te ajute multi !

    PS: IL pot folosi si playerii nu mai face atatea posturi esti disperaT?

  3. Joint , ai copiat si tu din GM tau .. de unde ai scos tu oldColor[playerid]... iti imaginezi ca o sa-i dea eroare la compile fiindca el nu are new oldcolor[MAX_PLAYERS], nu ?

    Mai zici ca ai facut-o pe loc si n-ai testat..

    U dupa ce ca esti planta mai si postezi taci ca esti .... ce te bagi u  ?

    Eu am facut back dupa cum stiu eu

    Daca nu are adauga =)) lol ce paralel esti

  4. Ia vezi e bine cum l-am facut ca nu l-am testat ...

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

    {

        if(AFK[playerid] == 1)

    {

        TogglePlayerControllable(playerid,1);

        SetPlayerColor(playerid,oldColor[playerid]);

        PlayerInfo[playerid][pMuted] = 0;

        SendClientMessage(playerid, COLOR_YELLOW, " You are in back in game !");

        AFK[playerid] = 0;

    }

    else

    { }

    }

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