Jump to content
  • 0

Question

5 answers to this question

Recommended Posts

Posted

Poftim ti-am creat doar pana la prima factiune restul adaugi tu fix cum am facut eu schimband ID-ul factiunii si ID la skin-uri.

if(strcmp(cmd, "/giverank", true) == 0)
	{
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /giverank [playerid/PartOfName] [1-6]");
                return 1;
            }
            new para1;
            new level;
            para1 = ReturnUser(tmp);
            tmp = strtok(cmdtext, idx);
            level = strval(tmp);
            if(level > 6 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "Poti da rank intre 1 si 6."); return 1; }
            if (PlayerInfo[playerid][pLeader] >= 1)
            {
                if(IsPlayerConnected(para1))
                {
                    if(para1 != INVALID_PLAYER_ID)
                    {
                        GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                        PlayerInfo[para1][pRank] = level;
                        format(string, sizeof(string), "Liderul tau %s ti-a dat un rank nou", sendername);
                        SendClientMessage(para1, COLOR_WHITE, string);
                        format(string, sizeof(string), "Tocmai i-ai dat membrului %s rankul %d.", giveplayer,level);
                        SendClientMessage(playerid, COLOR_WHITE, string);
                        if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                        {
						    if(PlayerInfo[para1][pSex] == 1)
                            {
                                // Skinuri de Barbati
                                if(PlayerInfo[para1][pRank] == 1) { PlayerInfo[para1][pChar] = SkinID; SetPlayerSkin(para1, SkinID); }//rank 1
                                else if(PlayerInfo[para1][pRank] == 2) { PlayerInfo[para1][pChar] = SkinID; SetPlayerSkin(para1, SkinID); }//rank 2
                                else if(PlayerInfo[para1][pRank] == 3) { PlayerInfo[para1][pChar] = SkinID; SetPlayerSkin(para1, SkinID); }//rank 3
                                else if(PlayerInfo[para1][pRank] == 4) { PlayerInfo[para1][pChar] = SkinID; SetPlayerSkin(para1, SkinID); }//rank 4
                                else if(PlayerInfo[para1][pRank] == 5) { PlayerInfo[para1][pChar] = SkinID; SetPlayerSkin(para1, SkinID); }//rank 5
                                else if(PlayerInfo[para1][pRank] == 6) { PlayerInfo[para1][pChar] = SkinID; SetPlayerSkin(para1, SkinID); }//rank 6
                            }
                            else if(PlayerInfo[para1][pSex] == 2) // Skin de femeie
                            {
                                PlayerInfo[para1][pChar] = 141; SetPlayerSkin(para1, SkinID);
                            }
                        }

Tu continui cu Scriptul de la if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) si adaugi urmatoarele factiuni si Skinuri

<a href="http://www.userbars.be"><img src="http://img534.imageshack.us/img534/9098/36589.gif" alt="Free userbars" border="0"></a>

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.