How do i add more skins slots?
#4

Quote:
Originally Posted by aoky
View Post
It might be defined in your script for a max amount of skins that can be owned. If you find it, change it from there.

Then add more onto this line:
PHP Code:
new orgidskin1skin2skin3string[256]; 
Should anything be changed here ??

Code:
CMD:oskin(playerid, params[])
{
	new string[25], tmp[256];
	new giveplayerid = GetPVarInt(playerid, "playerorg");
	if (giveplayerid == 0) return SendClientMessage2(playerid, COLOR_RED, "Error: You aren't in an organization!");
	if ((IsALaw(playerid) || orgcata[giveplayerid-1] == 3) && GetPlayerWantedLevel(playerid) != 0) return SendClientMessage2(playerid, COLOR_RED, "You are a wanted player!");
	format(string, 10, "org%d", giveplayerid);
	new moneys1 = dini_Int(AddDirFile(dir_orgfiles, string), "skin1");
	if (moneys1 == 0) return SendClientMessage2(playerid, COLOR_SILVER, "Your organization doesn't have any skins yet.");
	if (GetPVarInt(playerid, "podfskin") != -1)
	{
		new temp1 = dini_Int(AddDirFile(dir_orgfiles, string), "skin4");
		if (GetPlayerSkin(playerid) == moneys1)
		{
			if (temp1 != 0)
			{
				SetPlayerSkinEx(playerid, temp1);
				SetPVarInt(playerid, "podfskin", temp1);
			}
		}
		else if (GetPlayerSkin(playerid) == temp1)
		{
			new temp2 = dini_Int(AddDirFile(dir_orgfiles, string), "skin5");
			if (temp2 != 0)
			{
				SetPlayerSkinEx(playerid, temp2);
				SetPVarInt(playerid, "podfskin", temp2);
			}
			else
			{
				SetPlayerSkinEx(playerid, moneys1);
				SetPVarInt(playerid, "podfskin", moneys1);
			}
		}
		else
		{
			SetPlayerSkinEx(playerid, moneys1);
			SetPVarInt(playerid, "podfskin", moneys1);
		}
	}
	else
	{
		SetPlayerSkinEx(playerid, moneys1);
		SetPVarInt(playerid, "podfskin", moneys1);
	}
	format(tmp, 12, "0x%sFF", dini_Get(AddDirFile(dir_orgfiles, string), "color"));
	SetPlayerColor(playerid, HexToInt(tmp));
	if (GetPVarInt(playerid, "playercolor") != -1) SetPVarInt(playerid, "playercolor", -1);
	SendClientMessage2(playerid, COLOR_WHITE, "ACTION: Switched organization skin.");
	if (IsALaw(playerid) || orgcata[GetPVarInt(playerid, "playerorg")-1] == 3 )
	{
		if(onduty[playerid] == 0)
		{
			SendClientMessage2(playerid, HexToInt(tmp), "You are now ON duty.");
			onduty[playerid] = 1;
		}
	}
	return 1;
}
Reply


Messages In This Thread
How do i add more skins slots? - by ItzColaBoi - 29.06.2017, 13:48
Re: How do i add more skins slots? - by aoky - 29.06.2017, 16:59
Re: How do i add more skins slots? - by Whatname - 29.06.2017, 17:29
Re: How do i add more skins slots? - by ItzColaBoi - 29.06.2017, 18:45
Re: How do i add more skins slots? - by Wikanzzx - 30.06.2017, 10:24
Re: How do i add more skins slots? - by Beryllium - 30.06.2017, 10:31
Re: How do i add more skins slots? - by Wikanzzx - 30.06.2017, 10:38
Re: How do i add more skins slots? - by ItzColaBoi - 30.06.2017, 11:04

Forum Jump:


Users browsing this thread: 1 Guest(s)