Jump to content

Setare Skin Factiun.


Mary Mry
 Share

Recommended Posts

Buna Ziua, am si eu o problema cu skin la factiunea TovCar am bagat de curand in GM factiunea si nu merge sa ii schimb skin, va rog daca ma puteti ajuta. Asta este Linia MakeLeader din GM. 

 

 

 

 

	if(strcmp(cmd, "/makeleader", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /makeleader [playerid/PartOfName] [Number(1-10)]");
				return 1;
			}
			new para1;
			new level;
			para1 = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
			level = strval(tmp);
			if(level > 17 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "* Dont go below number 0, or above number 17!"); return 1; }
			if (PlayerInfo[playerid][pAdmin] >= 6)
			{
			    if(IsPlayerConnected(para1))
			    {
			        if(para1 != INVALID_PLAYER_ID)
			        {
			            if(PlayerInfo[para1][pMember] > 0 || PlayerInfo[para1][pFMember] < 255)
			            {
			                SendClientMessage(playerid, COLOR_GREY, "** That player is in a Faction / Family !");
			                return 1;
			            }
						GetPlayerName(para1, giveplayer, sizeof(giveplayer));

						PlayerInfo[para1][pLeader] = level;
						format(string, sizeof(string), "* Ati fost Promovat ca Lider la factiunea %d de Admin %s",level, sendername);
						SendClientMessage(para1, TEAM_GROVE_COLOR, string);
						format(string, sizeof(string), "* %s Ati primit Control la Factiunea %d.", giveplayer,level);
						SendClientMessage(playerid, COLOR_ORANGE, string);
	            		format(string, sizeof(string), "[ADMIN]: %s A oferit Control la Factiunea %d lui %s.",sendername,level,giveplayer);
						ABroadCast(COLOR_LIGHTRED,string, 5);
						new y, m, d;
						new h,mi,s;
						getdate(y,m,d);
						gettime(h,mi,s);
						format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Ai dat controlu Factiuni %d lui [%s]",d,m,y,h,mi,s,sendername,level,giveplayer);
						LoginLog(string);
						AdminLog(string);
						if(level == 0) { PlayerInfo[para1][pChar] = 0; PlayerInfo[para1][pRank] = 0; gTeam[para1] = 3; PlayerInfo[para1][pTeam] = 0; return 1; }
						else if(level == 1) { PlayerInfo[para1][pChar] = 280; } //Police Force
						else if(level == 2) { PlayerInfo[para1][pChar] = 286; } //FBI/ATF
						else if(level == 3) { PlayerInfo[para1][pChar] = 287; } //National Guard
						else if(level == 4) { PlayerInfo[para1][pChar] = 274; } //Ambulance
						else if(level == 5) { PlayerInfo[para1][pChar] = 175; } //Surenos
						else if(level == 6) { PlayerInfo[para1][pChar] = 187; } //La Famiglia Sinatra
						else if(level == 7) { PlayerInfo[para1][pChar] = 147; } //President
						else if(level == 8) { PlayerInfo[para1][pChar] = 294; } //Hitmans
						else if(level == 9) { PlayerInfo[para1][pChar] = 227; } //News Reporters
						else if(level == 10) { PlayerInfo[para1][pChar] = 61; } //Taxi Cab Company
						else if(level == 11) { PlayerInfo[para1][pChar] = 171; } //Driving/Flying School
						else if(level == 12) { PlayerInfo[para1][pChar] = 279; } //Firemen
						else if(level == 13) { PlayerInfo[para1][pChar] = 248; } //bikers
						else if(level == 14) { PlayerInfo[para1][pChar] = 228; } //Yamaguchi
						else if(level == 15) { PlayerInfo[para1][pChar] = 113; } //Chornaya Bratva
						else if(level == 16) { PlayerInfo[para1][pChar] = 228; } //La Vice
						else if(level == 16) { PlayerInfo[para1][pChar] = 50; } //TovCar

						if(level == 0)
						{
						    gTeam[para1] = 3;
					    	PlayerInfo[para1][pTeam] = 3;
					    	PlayerInfo[para1][pRank] = 0;
						}
						else if(level == 1)
						{
						    gTeam[para1] = 2;
					    	PlayerInfo[para1][pTeam] = 2;
					    	PlayerInfo[para1][pRank] = 8;
						}
						else if(level == 2)
						{
						    gTeam[para1] = 2;
					    	PlayerInfo[para1][pTeam] = 2;
					    	PlayerInfo[para1][pRank] = 8;
						}
						else if(level == 3)
						{
						    gTeam[para1] = 2;
					    	PlayerInfo[para1][pTeam] = 2;
					    	PlayerInfo[para1][pRank] = 8;
						}
						else if(level == 4)
						{
                            gTeam[para1] = 1;
						    PlayerInfo[para1][pTeam] = 1;
						    PlayerInfo[para1][pRank] = 8;
						}
						else if(level == 5)
						{
						    gTeam[para1] = 15;
					    	PlayerInfo[para1][pTeam] = 15;
						    PlayerInfo[para1][pRank] = 6;
						}
						else if(level == 6)
						{
						    gTeam[para1] = 15;
					    	PlayerInfo[para1][pTeam] = 15;
						    PlayerInfo[para1][pRank] = 8;
						}
						else if(level == 7)
						{
						    gTeam[para1] = 15;
					    	PlayerInfo[para1][pTeam] = 15;
						    PlayerInfo[para1][pRank] = 6;
						}
						else if(level == 8)
						{
						    gTeam[para1] = 15;
					    	PlayerInfo[para1][pTeam] = 15;
						    PlayerInfo[para1][pRank] = 6;
						}
						else if(level == 9)
						{
						    gTeam[para1] = 15;
					    	PlayerInfo[para1][pTeam] = 15;
						    PlayerInfo[para1][pRank] = 6;
						}
						else if(level == 10)
						{
						    gTeam[para1] = 15;
					    	PlayerInfo[para1][pTeam] = 15;
						    PlayerInfo[para1][pRank] = 6;
						}
						else if(level == 11)
						{
						    gTeam[para1] = 15;
					    	PlayerInfo[para1][pTeam] = 15;
						    PlayerInfo[para1][pRank] = 6;
						}
						else if(level == 12)
						{
						    gTeam[para1] = 15;
					    	PlayerInfo[para1][pTeam] = 15;
						    PlayerInfo[para1][pRank] = 8;
						}
						else if(level == 13)
						{
						    gTeam[para1] = 15;
					    	PlayerInfo[para1][pTeam] = 15;
						    PlayerInfo[para1][pRank] = 6;
						}
						else if(level == 14)
						{
						    gTeam[para1] = 15;
					    	PlayerInfo[para1][pTeam] = 15;
						    PlayerInfo[para1][pRank] = 6;
						}
						else if(level == 15)
						{
							gTeam[para1] = 15;
					    	PlayerInfo[para1][pTeam] = 15;
						    PlayerInfo[para1][pRank] = 7;
						}
						else if(level == 16)
						{
						    gTeam[para1] = 15;
					    	PlayerInfo[para1][pTeam] = 15;
						    PlayerInfo[para1][pRank] = 9;
						}
						else if(level == 17)
						{
						    gTeam[para1] = 15;
					    	PlayerInfo[para1][pTeam] = 15;
						    PlayerInfo[para1][pRank] = 9;
						}
						else
						{
						    gTeam[para1] = 3;
					    	PlayerInfo[para1][pTeam] = 3;
                            PlayerInfo[para1][pRank] = 0;
						}
					    SetPlayerSkin(para1, PlayerInfo[para1][pChar]);
					    SetPlayerToTeamColor(para1);
					}
				}//not connected
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command!");
			}
		}
		return 1;
	}

multumesc frmos.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. 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.