SA-MP Forums Archive
[FilterScript] Advance SAMP-Attachment Filterscript **Sorry for <Dini> - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Advance SAMP-Attachment Filterscript **Sorry for <Dini> (/showthread.php?tid=501924)

Pages: 1 2 3 4 5


Advance SAMP-Attachment Filterscript **Sorry for <Dini> - Excel™ - 21.03.2014

Advance SAMP Attachments
Version: 1 (There will be on further updated, so this means you can do whatever with the script but keep the credits)
By Excel © 2014

NOTE: add "scriptfiles\Player Object" folder for letting the script save attachments of players.

What is special in this ?
Yes, this script is simple although but very good and clean, With this script, you can attach any object(Avaliable in samp history) to your body in a very easy way. The script uses (Dini) - (Sorry for dini, as y_ini wasn't working for me in 0.3z yet, I am trying to fix although), mSelection for model preview menu, SScanf2 for the dialog configuration and thats all. This system let you attach objects from a dialog, where you can fill your custom objectid or use the script default objects model preview menu and You can edit/delete/add anytime in the server even the server get restarted or u disconnect or whatever. And yes this script uses zcmd, command processor.

Features Images
http://imgur.com/a/cf8PQ
Thnx to imgur

Download
Y_Ini version
- Thanks to AroseKhanNaizi
Script + inbuilt mSelection (Pastebin)
Script (Pastebin) - Fixed the unsaving and "modelid2 to modelid"
Dini - INI PRocessor
ZCMD - Command Processor
Sscanf2 - Used in dialog in my script
mSelection - Model preview menu system

Credits How to Install ? ?


Re: Advance SAMP-Attachment Filterscript **Sorry for <Dini> - AleemIqbalBhatti - 21.03.2014

Nice


Re: Advance SAMP-Attachment Filterscript **Sorry for <Dini> - Arjanz - 21.03.2014

images pls


Re: Advance SAMP-Attachment Filterscript **Sorry for <Dini> - Raza2013 - 21.03.2014

hope, this one is ur hardwork.
PS: add img links.


Re: Advance SAMP-Attachment Filterscript **Sorry for <Dini> - AleemIqbalBhatti - 21.03.2014

Images plz


Re: Advance SAMP-Attachment Filterscript **Sorry for <Dini> - Excel™ - 21.03.2014

Images added, check the album...


Re: Advance SAMP-Attachment Filterscript **Sorry for <Dini> - vassilis - 21.03.2014

Nice but no just no.. why dini lad... haven't you learned y_ini yet?


Re: Advance SAMP-Attachment Filterscript **Sorry for <Dini> - Excel™ - 21.03.2014

Quote:
Originally Posted by vassilis
Посмотреть сообщение
Nice but no just no.. why dini lad... haven't you learned y_ini yet?
You should read the "What is special in this ?"... i stated my reason.


Re: Advance SAMP-Attachment Filterscript **Sorry for <Dini> - Avi Raj - 21.03.2014

Quote:
Originally Posted by vassilis
View Post
Nice but no just no.. why dini lad... haven't you learned y_ini yet?
Yup.. nice and he said, yini not working for him.


Re: Advance SAMP-Attachment Filterscript **Sorry for <Dini> - vassilis - 21.03.2014

Quote:
Originally Posted by Excel™
Посмотреть сообщение
You should read the "What is special in this ?"... i stated my reason.
How it is possible even not to work. Have you updated the files etc? Anyway good filterscript.


Re: Advance SAMP-Attachment Filterscript **Sorry for <Dini> - KingServerIRAN - 21.03.2014

Good job but

Code:
J:\New folder (2)\Test\filterscripts\Excel-Advance-Attachments.pwn(572) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: Advance SAMP-Attachment Filterscript **Sorry for <Dini> - iThePunisher - 21.03.2014

EXCEL Update this filterscript to 0.3z mate
0.3x is gone now


Re: Advance SAMP-Attachment Filterscript **Sorry for <Dini> - Excel™ - 22.03.2014

Quote:
Originally Posted by iThePunisher
View Post
EXCEL Update this filterscript to 0.3z mate
0.3x is gone now
What makes you say that ?


Re: Advance SAMP-Attachment Filterscript **Sorry for <Dini> - SPA - 22.03.2014

Great Script i was waiting for ! but i got this error:
Code:
C:\Users\MaHdy\Desktop\Untitled.pwn(572) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Code:
public OnPlayerModelSelectionEx(playerid, response, extraid, modelid2)
{
	if(extraid==DIALOG_ATTACH_MODEL_SELECTION)
	{
	    if(!response)
     	{   ShowPlayerDialog(playerid,DIALOG_ATTACH_OBJECT_SELECTION,DIALOG_STYLE_LIST,"Player Objects/Attachment: (Select Object Path)","Path:1 :: "COL_GREY"Server Objects Menu\n"COL_WHITE"Path:2 :: "COL_GREY"Custom Object","Next(>>)","Back(<<)");    }
	    if(response)
	    {
		    if(GetPVarInt(playerid, "AttachmentUsed") == 1) EditAttachedObject(playerid, modelid2);
		    else
		    {
			    SetPVarInt(playerid, "AttachmentModelSel", modelid2);
                new string[256+1];
				new dialog[500];
				for(new x;x<sizeof(AttachmentBones);x++)
    			{
					format(string, sizeof(string), "Bone:%s\n", AttachmentBones[x]);
					strcat(dialog,string);
				}
				ShowPlayerDialog(playerid, DIALOG_ATTACH_BONE_SELECTION, DIALOG_STYLE_LIST, \
				"{FF0000}Attachment Modification - Bone Selection", dialog, "Select", "Cancel");
		    }//else DeletePVar(playerid, "AttachmentIndexSel");
		}
 	}
	return 1;
}



Re: Advance SAMP-Attachment Filterscript **Sorry for <Dini> - AroseKhanNiazi - 23.03.2014

Code:
(572) : error 025: function heading differs from prototype
error and can you remove the custom objects which we insert with id


Re: Advance SAMP-Attachment Filterscript **Sorry for <Dini> - GShock - 23.03.2014

Nice...!!


Re: Advance SAMP-Attachment Filterscript **Sorry for <Dini> - VenomMancer - 23.03.2014

Quote:
Originally Posted by AroseKhanNaizi
View Post
Code:
(572) : error 025: function heading differs from prototype
error and can you remove the custom objects which we insert with id
Change All modelid2 to modelid..

pawn Code:
public OnPlayerModelSelectionEx(playerid, response, extraid, modelid)
{
    if(extraid==DIALOG_ATTACH_MODEL_SELECTION)
    {
        if(!response)
        {   ShowPlayerDialog(playerid,DIALOG_ATTACH_OBJECT_SELECTION,DIALOG_STYLE_LIST,"Player Objects/Attachment: (Select Object Path)","Path:1 :: "COL_GREY"Server Objects Menu\n"COL_WHITE"Path:2 :: "COL_GREY"Custom Object","Next(>>)","Back(<<)");    }
        if(response)
        {
            if(GetPVarInt(playerid, "AttachmentUsed") == 1) EditAttachedObject(playerid, modelid);
            else
            {
                SetPVarInt(playerid, "AttachmentModelSel", modelid);
                new string[256+1];
                new dialog[500];
                for(new x;x<sizeof(AttachmentBones);x++)
                {
                    format(string, sizeof(string), "Bone:%s\n", AttachmentBones[x]);
                    strcat(dialog,string);
                }
                ShowPlayerDialog(playerid, DIALOG_ATTACH_BONE_SELECTION, DIALOG_STYLE_LIST, \
                "{FF0000}Attachment Modification - Bone Selection", dialog, "Select", "Cancel");
            }//else DeletePVar(playerid, "AttachmentIndexSel");
        }
    }
    return 1;
}



Re: Advance SAMP-Attachment Filterscript **Sorry for <Dini> - AroseKhanNiazi - 23.03.2014

well clothes not saving i got the Objects folder in Scriptfiles and i can only see page 1 no other pages and
i edited a little by remove the the custom object system by giving id http://pastebin.com/X7U06U8n





Re: Advance SAMP-Attachment Filterscript **Sorry for <Dini> - AroseKhanNiazi - 23.03.2014

y_less he said it's not working with y_ini so can you make it work with it and solve my problem too


Re: Advance SAMP-Attachment Filterscript **Sorry for <Dini> - Excel™ - 23.03.2014

Quote:
Originally Posted by AroseKhanNaizi
View Post
well clothes not saving i got the Objects folder in Scriptfiles and i can only see page 1 no other pages and
i edited a little by remove the the custom object system by giving id http://pastebin.com/X7U06U8n


The folder you created "Objects" is not the correct one, its "Player Objects", by the default in the script, please edit it in order to save player objects.
Secondly, go to your mSelection include and edit "mS_CUSTOM_MAX_ITEMS" to a higher value like 500.