Jump to content
  • 0

Probleme /giverpall


RaZvYxXx

Question

Deci cand dau /giverpall sua /givelevelall nu imi arata adminul care a folosit comanda si in comanda am scris...

Uitati comenzile:

//======================================================================================================================
// Comanda: /givelevelall
//======================================================================================================================
    if(strcmp(cmd, "/givelevelall", true) == 0)
    {
        if (PlayerInfo[playerid][pAdmin] >= 1339)
        {
          for(new i = 0; i < MAX_PLAYERS; i++)
      {
        if(IsPlayerConnected(i))
        {
          new playerlevel = PlayerInfo[i][pLevel];
                    PlayerInfo[i][pLevel] = playerlevel + 1;
                    format(string, sizeof(string), "[ProGaming Admin]:Adminul %s a dat un level in plus la toti cei Online.",sendername);
                    SendClientMessage(i,COLOR_LIGHTRED,string);
        }
      }
          return 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_GRAD1, "[ProGaming RP]: Ne pare rau, dar nu ai acces la aceasta comanda.");
    }
    }
//======================================================================================================================
// Comanda: /giverpall
//======================================================================================================================
    if(strcmp(cmd, "/giverpall", true) == 0)
    {
        if (PlayerInfo[playerid][pAdmin] >= 1339)
        {
          for(new i = 0; i < MAX_PLAYERS; i++)
      {
        if(IsPlayerConnected(i))
        {
          new playerexp = PlayerInfo[i][pExp];
                    PlayerInfo[i][pExp] = playerexp + 1;
                    format(string, sizeof(string), "[ProGaming Admin]:Adminul %s a dat un Respect Points in plus la toti cei Online..",sendername);
                    SendClientMessage(i,COLOR_LIGHTRED,string);
        }
      }
          return 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_WHITE, "[ProGaming RP]: Ne pare rau, dar nu ai acces la aceasta comanda.");
    }
    }

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

incearca asta

//---------------------------------------------------------------<[Giveallevel]>----------------------------------------------------------------------//
    if(strcmp(cmd, "/givelevelall", true) == 0)
    {
        if (PlayerInfo[playerid][pAdmin] >= 1338)
        {
          for(new i = 0; i < MAX_PLAYERS; i++)
      {
        if(IsPlayerConnected(i))
        {
          new playerlevel = PlayerInfo[i][pLevel];
                    PlayerInfo[i][pLevel] = playerlevel + 1;
                    format(string, sizeof(string), "Ghost Administrator %s gave up 1 level all players who are online",sendername);
                    SendClientMessage(i,COLOR_LIGHTGREEN,string);
        }
      }
          return 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command !");
    }
    }

pentru level pentru respect points nu au sa apara cine a dat

Link to comment
Share on other sites

/giverpall !

    //---------------------------------------------------------------<[GiveallRp]>----------------------------------------------------------------------//
    if(strcmp(cmd, "/giverpall", true) == 0)
    {
        if (PlayerInfo[playerid][pAdmin] >= 1338)
        {
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
               if(IsPlayerConnected(i))
               {
                    new playerexp = PlayerInfo[i][pExp];
                    PlayerInfo[i][pExp] = playerexp + 1;
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "Sa-Mp.RO RolePlay Administrator %s give one RespectPoints up for all players.",sendername);
                    SendClientMessage(i,COLOR_LIGHTGREEN,string);
        		}
      		}
        	return 1;
  		}
	    else return SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command !");
    }
/givelevelall
//---------------------------------------------------------------<[Giveallevel]>----------------------------------------------------------------------//
    if(strcmp(cmd, "/givelevelall", true) == 0)
    {
        if (PlayerInfo[playerid][pAdmin] >= 1338)
        {
          	for(new i = 0; i < MAX_PLAYERS; i++)
      		{
        		if(IsPlayerConnected(i))
        		{
          			new playerlevel = PlayerInfo[i][pLevel];
                    PlayerInfo[i][pLevel] = playerlevel + 1;
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "Sa-Mp.RO RolePlay Administrator %s gave up 1 level all players who are online",sendername);
                    SendClientMessage(i,COLOR_LIGHTGREEN,string);
        		}
      		}
        	return 1;
  		}
	    else return SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command !");
    }

hx2mmd.gif
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.