Jump to content

Question

Posted

Salut Am si eu o intrebare cand dau comanda /admins vrea sa imi scrie lvl adminului cu culori si nustiu cum daca ma potate ajuta cineva va rog frumos ;D

3 answers to this question

Recommended Posts

Posted

pey arata-ne comanda ta actuala de /admins si noi iti aratam cum sa o modifici

-Toate tutorialele postate intra aici sau puneti-le direct [url=http://www.sa-mp.ro/forum/index

Posted

}

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

{

        if(IsPlayerConnected(playerid))

    {

SendClientMessage(playerid, COLOR_GRAD1, "Admins Online:");

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

{

if(IsPlayerConnected(i))

{

    if(PlayerInfo[pAdmin] >= 1 && PlayerInfo[pAdmin] < 1338)

    {

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

format(string, 256, "Admin: %s", sendername);

SendClientMessage(playerid, COLOR_GRAD2, string);

}

}

}

}

return 1;

}

Aceasta este

Posted

 if (strcmp(cmd, "/admins", true) == 0)
   {
        if(IsPlayerConnected(playerid))
       {
         SendClientMessage(playerid, COLOR_GRAD1, "Admins Online:");
         for(new i = 0; i < MAX_PLAYERS; i++)
         {
            if(IsPlayerConnected(i))
            {
                if(PlayerInfo[pAdmin] >= 1 && PlayerInfo[pAdmin] < 1338)
                {
                  GetPlayerName(i, sendername, sizeof(sendername));
                  format(string, 256, "%s [LvL:%i]", sendername, PlayerInfo[pAdmin]);
                  SendClientMessage(playerid, COLOR_GRAD2, string);
               }
            }
         }
      }
      return 1;
   }
SAU
 if (strcmp(cmd, "/admins", true) == 0)
   {
        if(IsPlayerConnected(playerid))
       {
         SendClientMessage(playerid, COLOR_GRAD1, "Admins Online:");
         for(new i = 0; i < MAX_PLAYERS; i++)
         {
            if(IsPlayerConnected(i))
            {
                if(PlayerInfo[pAdmin] >= 1 && PlayerInfo[pAdmin] < 1338)
                {
                  GetPlayerName(i, sendername, sizeof(sendername));
                  format(string, 256, "%s", sendername);
                  SendClientMessage(playerid, COLOR_GRAD2, string);
                  format(string, sizeof(string), "Level: %i", PlayerInfo[pAdmin]);
                  SendClientMessage(playerid, COLOR_GRAD2, string);//schimbi tu COLOR_GRAD2 cu ce vrei
               }
            }
         }
      }
      return 1;
   }

-Toate tutorialele postate intra aici sau puneti-le direct [url=http://www.sa-mp.ro/forum/index

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.