Jump to content
  • 0

Ajutor


alexutu

Question

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

(?_?_?_?(???????????(??_?_?_??K??E??N??T?????????_?_?_?_?()??

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

2.La OnPlayerText faci asa

[pawn]

new str [ 129 ] ;

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

{

    format ( str , 129 , "Admin:%s" , text  ) ;

    SetPlayerChatBubble ( playerid ,str , -1 , 200.0 , 10000 ) ;

}

else if (  PlayerInfo [ playerid ] [ Helper] > 0 )

{

    format ( str , 129 , "Helper:%s" , text  ) ;

    SetPlayerChatBubble ( playerid ,str , -1 , 200.0 , 10000 ) ;

}

else if (  PlayerInfo [ playerid ] [ Vip] > 0 )

{

    format ( str , 129 , "Vip:%s" , text  ) ;

    SetPlayerChatBubble ( playerid ,str , -1 , 200.0 , 10000 ) ;

}[/pawn]

PS:Nu am testat  ,vezi daca-ti merge , tu nu vezi ce scrie cu SetPlayerChat.... trebuie sa testezi cu altcineva

Massari e curva mea

Link to comment
Share on other sites

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]

(?_?_?_?(???????????(??_?_?_??K??E??N??T?????????_?_?_?_?()??

Link to comment
Share on other sites

Scuati pt dublu post dar problema este de la culoare daca skimb culoarea nu mai apare,iar daca o las pe cea origiala care e prea deschisa dispare nu se vede ma puteti ajuta Va Rog!

(?_?_?_?(???????????(??_?_?_??K??E??N??T?????????_?_?_?_?()??

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.