SA-MP Forums

Go Back   SA-MP Forums > SA-MP DL Edition > SA-MP 0.3.DL

Reply
 
Thread Tools Display Modes
Old 07/02/2018, 10:02 AM   #1
ItzColaBoi
Guest
 
Posts: n/a
Default Custom skins in organization skins

I've tried to add the custom skins in organization but they only seem to work as the last skins in the slots.
I've replaced 299 the last skin with 25011 as my last custom skin.What i wanted to do is to be able to add all custom skins in organizations for example: /orgskins 1 25011 25012 25013

Code:
CMD:orgskins(playerid, params[])
{
	new orgid, skin1, skin2, skin3, string[256];
	if (adlvl[playerid] < 5) return 0;
	if (sscanf(params, "dd", orgid, skin1)) return SendClientMessage2(playerid, COLOR_WHITE, "Usage: /orgskins [orgid] [skin1] [skin2] [skin3]");
	sscanf(params, "ddd", orgid, skin1, skin2);
	sscanf(params, "dddd", orgid, skin1, skin2, skin3);
	format(string, 10, "org%d", orgid);
	if (skin1 < 0 || skin1 > 25011 || skin1 == 74 || skin2 < 0 || skin2 > 25011 || skin2 == 74 || skin3 < 0 || skin3 > 25011 || skin3 == 74 || skin1 == 0 || (skin2 == 0 && skin3 != 0))
	dini_IntSet(AddDirFile(dir_orgfiles, string), "skin1", skin1);
	dini_IntSet(AddDirFile(dir_orgfiles, string), "skin2", skin2);
	dini_IntSet(AddDirFile(dir_orgfiles, string), "skin3", skin3);
	if (skin2 != 0)
	{
		if (skin3 != 0) format(string, sizeof(string), "%s's skins changed to %d, %d and %d.", dini_Get(AddDirFile(dir_orgfiles, string), "name"), skin1, skin2, skin3);
		else format(string, sizeof(string), "%s's skins changed to %d and %d.", dini_Get(AddDirFile(dir_orgfiles, string), "name"), skin1, skin2);
	}
	else format(string, sizeof(string), "%s's skins changed to %d.", dini_Get(AddDirFile(dir_orgfiles, string), "name"), skin1);
	SendClientMessage2(playerid, COLOR_SILVER, string);
	return 1;
}
  Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Help] Custom skins Davidmkd123 SA-MP 0.3.DL 2 01/01/2018 06:16 PM
Custom Skins? AlexMSK SA-MP 0.3.DL 5 30/11/2017 08:47 AM
Custom Skins Jordiee Scripting Help 2 07/11/2011 07:35 PM


All times are GMT. The time now is 11:32 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.