Jump to content

alexutu

Membru
  • Posts

    51
  • Joined

  • Last visited

    Never

Posts posted by alexutu

  1. la problema 1 ce am gresit de nu apare textul?

    Comanda

    [pawn] if(!strcmp(cmdtext, "/aod", true))

      {

          if(IsPlayerConnected(playerid))

          {

              if(gPlayerLogged[playerid] == 0)

              {

                  SendClientMessage(playerid, COLOR_GREY, "Acum esti la datorie");

                return 1;

              }

              if(PlayerInfo[playerid][pAdmin] > 0)

              {

                  if(aod[playerid] == 0)

                  {

                  SendClientMessageToAll(0x005BF4FF,"  [~] Bot SudStrike [~]");

                    format(string, sizeof(string),"[Ft:Rp %s este acum la datorie!", NumeEx(playerid));

                  SendClientMessageToAll(0x9AE757FF, string);

                  aod[playerid] = 1;

                          SetPlayerArmour(playerid, 100);

                          SetPlayerHealth(playerid, 100);

                          SetPlayerColor(playerid,0xEA494FFF);

                        ResetPlayerWeapons(playerid);

                  GivePlayerWeapon(playerid, 24, 10000);

                  SetPlayerAttachedObject(playerid,0, 19079, 1, 0.319503, -0.089340, -0.185576, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );

                  AdminLabel[playerid] = Create3DTextLabel("Admin On Duty", 0xB35959AA, 0.0, 0.0, 0.0, 61.0, 0);

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

                  {

                      for(new i = 0; i < sizeof(CarInfo); i++)

                      {

                        SetVehicleParamsForPlayer(i,playerid,0,0);

                      }

                  }

                  return 1;

                  }

                  else if(aod[playerid] == 1)

                  {

                      aod[playerid] = 0;

                  SetPlayerArmour(playerid,0);

                  SetPlayerHealth(playerid,100);

                  GetPlayerSkin(playerid);

                  SetPlayerColor(playerid,TEAM_HIT_COLOR);

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

                  SendClientMessageToAll(0x005BF4FF,"  [~] Anunt Admin [~]");

                    SetPlayerColor(playerid, TEAM_HIT_COLOR);

                  format(string, sizeof(string),"[Ft:Rp]%s nu mai este la datorie,este un simplu player.", NumeEx(playerid));

                  SendClientMessageToAll(0x191970AA, string);

                  RemovePlayerAttachedObject(playerid, 0)

                  Delete3DTextLabel(Text3D:AdminLabel[playerid]);

                  return 1;

                  }

              }

              else

              {

                  SendClientMessage(playerid, COLOR_GREY, "  Nu poti folosi aceasta comanda!");

                  return 1;

              }

          }

          return 1;

      }[/pawn]

  2. 1)Salut Sa-Mp.Am si eu o problema cu comanda report,dau report iar cand trb sa dau iara peste un min nu merge am asteptat si 5 min si degeaba.

    [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]

    2)Am si eu sistemu de event: http://forum.sa-mp.com/showthread.php?t=397513.Il descarc il bag in folderu file script si in svr cfg pornesc svr si nu merge dc?

  3. Salutare Sa-Mp!Ma puteti ajuta/intdruma si pe mine sa fac urmatoarele lucruri:

    1)Cand un admin/helper se pune aod/hod sa apa deasupra capului Admin On Duty si Helper On Duty

    2)Cand un admin/helper/vip scrie pe chat Sa apara deasupra capului Admin:text Helper:text  Vip:text

  4. 1) Salutare Sa-Mp.ro!As vrea sa apara cand cineva da report in jocul ecranului la admini scris mare gen cnn REPORT:Numele.Ma puteti ajuta?

    2)As vrea ca la admini on duty si helpery on duty sa apara deaspura capului Admin On Duty si la Helperi-Helper On Duty.

    3)Cand un admin scrie ceva pe chat sa scrie deasupra capului Admin:text.La helper Helper:text.La Vip VIP:text

  5. Salutare Sa-Mp,am si eu o problema.Am gm Kent-Zone si iam skimbat hq la factini,dupa care am adaugat masinile acestea find 4 in loc de 7 si am sters masinile cele vechi.Acum daca ma urc in masina de la LSV imi zice ca nu sunt din tcc.

    A 2 problema am reusit sa pun papgalul pe umar datorita lui Mihaytza97 dar nu ramne cat timp sunt aod ma puteti ajuta sa ramna?

    [pawn]SetPlayerAttachedObject(playerid,0, 19079, 1, 0.319503, -0.089340, -0.185576, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );[/pawn]

  6. Salut,am si eu o problema am incercat sa creez comanda /resapwnme /slapme /unfreezeme dar am o problema,merg bine dar vip pot resawpnda si alti playeri iar eu nu vreau asta vr sa ii respawndeze direct pe vipi fara a mai cere as isi scire numele/id.Multumesc anticipat

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

    {

        if(IsPlayerConnected(playerid))

        {

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

        SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /respawnme [Numele tau]");

    return 1;

    }

    new playa;

      playa = ReturnUser(tmp);

                if(PlayerInfo[playerid][pDonateRank] == 1)

    {

    if(IsPlayerConnected(playa))

        {

        if(playa != INVALID_PLAYER_ID)

        {

                            if(PlayerInfo[playa][pJailed] == 1)

                            {

                                SendClientMessage(playerid,COLOR_GREY,"  You can`t use this command on that player because is in jail !");

                                return 1;

                            }

                            if(WantedLevel[playa] >= 1)

                            {

                                SendClientMessage(playerid,COLOR_GREY,"  You can`t use this command on that player, is currently Wanted !");

                                return 1;

                            }

      //if(SpawnChange[playerid])

    {

    GetPlayerName(playa, giveplayer, sizeof(giveplayer));

    SpawnPlayer(playa);

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

    format(string, sizeof(string), "* You have respawned vip %s.", giveplayer);

    SendClientMessage(playerid, COLOR_LIGHTRED, string);

        format(string, sizeof(string), "* You have been respawned by Server %s.", sendername);

    SendClientMessage(playa, COLOR_LIGHTRED, string);

    format(string, 128, "{FF2C00}Vipcmd: {33FF33}%s {FFFFFF}has respawned the vip {33FF33}%s {FF2C00}(/respawnme).", sendername, giveplayer);

    ABroadCast(COLOR_YELLOW,string,1);

    HBroadCast(COLOR_YELLOW,string);

    return 1;

            }

    }

    }

    }

    else

    {

        SendClientMessage(playerid, COLOR_GRAD1, " Nu ai voie sa folosesti aceasta comanda!");

    }

    }

    return 1;

    }[/pawn]

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

    {

        if(IsPlayerConnected(playerid))

        {

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /slapme [Numele tau]");

    return 1;

    }

    if(PlayerInfo[playerid][pLocal] == 99)

    {

                    SendClientMessage(playerid, COLOR_GRAD2, "You can`t use this command in this place");

    return 1;

    }

    new playa;

    new Float:slx, Float:sly, Float:slz;

    playa = ReturnUser(tmp);

    if(PlayerInfo[playerid][pDonateRank] == 1)

    {

        if(IsPlayerConnected(playa))

        {

            if(playa != INVALID_PLAYER_ID)

            {

            GetPlayerName(playa, giveplayer, sizeof(giveplayer));

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

    GetPlayerPos(playa, slx, sly, slz);

    SetPlayerPos(playa, slx, sly, slz+5);

    PlayerPlaySound(playa, 1130, slx, sly, slz+5);

    printf("AdmCmd: %s slapped %s",sendername,  giveplayer);

    format(string, sizeof(string), "{FF2C00}AdmCmd: {33FF33}%s {FFFFFF}was slapped by {33FF33}Server",giveplayer ,sendername);

    ABroadCast(COLOR_LIGHTRED,string,1);

    format(string, sizeof(string), "You have been slaped by admin {F81414}%s", sendername);

    SendClientMessage(playa, COLOR_WHITE, string);

    }

    }

    }

    else

    {

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

    }

    }

    return 1;

    }[/pawn]

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

    {

        if(IsPlayerConnected(playerid))

        {

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /unfreeze [Numele tau]");

    return 1;

    }

    new playa;

    playa = ReturnUser(tmp);

    if(PlayerInfo[playerid][pDonateRank] == 1)

    {

        if(IsPlayerConnected(playa))

        {

            if(playa != INVALID_PLAYER_ID)

            {

            GetPlayerName(playa, giveplayer, sizeof(giveplayer));

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

    TogglePlayerControllable(playa, 1);

    format(string, sizeof(string), "{FF2C00}FunTeam RPG: {33FF33} %s {FFFFFF}UnFroze {33FF33}%s",sendername,  giveplayer);

    printf("%s",string);

    format(string, sizeof(string), "{FF2C00}FunTeam RPG: {33FF33}%s {FFFFFF}was UnFrozen by {33FF33}%s",giveplayer ,sendername);

    ABroadCast(COLOR_LIGHTRED,string,1);

    format(string, sizeof(string), "You have been unfrozen by Server {F81414}Server", sendername);

    SendClientMessage(playa, COLOR_WHITE, string);

    }

    }

    }

    else

    {

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

    }

    }

    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.