Jump to content
  • 0

O mica problema la o comanda


Gireada

Question

Deci eu am comanda asta:

CMD:echipament(playerid, params[])
{
	new string[256], name1[99];
    if(PlayerInfo[playerid][Lider] == 1 || PlayerInfo[playerid][Membru] == 1)
	{
	    if(PlayerToPoint(2.0, playerid, 266.0099,117.9240,1004.6172))
	    {
	        if(PlayerInfo[playerid][Rank] >= 1)
	        {
	            GivePlayerWeapon(playerid, 1, 1);
	            GivePlayerWeapon(playerid, 22, 100);
	            GivePlayerWeapon(playerid, 41, 500);
	            SetPlayerSkin(playerid, 280);
	        }
	        else if(PlayerInfo[playerid][Rank] >= 2)
	        {
                GivePlayerWeapon(playerid, 1, 1);
                GivePlayerWeapon(playerid, 22, 100);
                GivePlayerWeapon(playerid, 41, 500);
                GivePlayerWeapon(playerid, 25, 100);
                SetPlayerSkin(playerid, 266);
            }
            else if(PlayerInfo[playerid][Rank] >= 3)
	        {
                GivePlayerWeapon(playerid, 1, 1);
                GivePlayerWeapon(playerid, 22, 100);
                GivePlayerWeapon(playerid, 41, 500);
                GivePlayerWeapon(playerid, 25, 100);
                GivePlayerWeapon(playerid, 29, 100);
                SetPlayerSkin(playerid, 267);
            }
            else if(PlayerInfo[playerid][Rank] >= 4)
	        {
                GivePlayerWeapon(playerid, 1, 1);
                GivePlayerWeapon(playerid, 22, 100);
                GivePlayerWeapon(playerid, 41, 500);
                GivePlayerWeapon(playerid, 25, 100);
                GivePlayerWeapon(playerid, 32, 100);
                GivePlayerWeapon(playerid, 34, 100);
                SetPlayerSkin(playerid, 265);
            }
            else if(PlayerInfo[playerid][Rank] >= 5)
	        {
                GivePlayerWeapon(playerid, 1, 1);
                GivePlayerWeapon(playerid, 22, 100);
                GivePlayerWeapon(playerid, 41, 500);
                GivePlayerWeapon(playerid, 25, 100);
                GivePlayerWeapon(playerid, 32, 100);
                GivePlayerWeapon(playerid, 34, 100);
                GivePlayerWeapon(playerid, 16, 25);
                SetPlayerSkin(playerid, 281);
            }
            else if(PlayerInfo[playerid][Rank] >= 6)
	        {
                GivePlayerWeapon(playerid, 1, 1);
                GivePlayerWeapon(playerid, 24, 100);
                GivePlayerWeapon(playerid, 27, 500);
                GivePlayerWeapon(playerid, 32, 100);
                GivePlayerWeapon(playerid, 30, 100);
                GivePlayerWeapon(playerid, 34, 100);
                SetPlayerSkin(playerid, 283);
            }
	    }
	    else
	    {
	        SendClientMessage(playerid,WHITE,"[ERROR] Trebuie sa fii la dulap");
	        return 1;
	    }
	}
    else
    {
        SendClientMessage(playerid,WHITE,"[ERROR] Trebuie sa fii Membru al Politiei");
        return 1;
    }



	return 1;
}

Am rezolvat, nu aveam nimik comanda, aveam o sobeitul activat :D

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.