[FilterScript] Advance SAMP-Attachment Filterscript **Sorry for <Dini>
#1

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
  • Saves the attachments
  • 2 ways of editing objects, use the script model menu or insert your own object id
  • User friendly script
  • You can easily add your own objects in the list or you can remove some if you want, Like in here:
    pawn Код:
    new AttachmentObjectsList[] = {
    18632,
    18633,
    18634,
    18635,
    18636,
    18637,
    18638,
    18639,
    18640,
    18975,
    19136,
    19274,
    18641,
    18642,
    18643,
    18644,
    18645,
    18865,
    18866,
    18867,
    18868,
    18869,
    18870,
    18871,
    18872,
    18873,
    18874,
    18875,
    18890,
    18891,
    18892,
    18893,
    18894,
    18895,
    18896,
    18897,
    18898,
    18899,
    18900,
    18901,
    18902,
    18903,
    18904,
    18905,
    18906,
    18907,
    18908,
    18909,
    18910,
    18911,
    18912,
    18913,
    18914,
    18915,
    18916,
    18917,
    18918,
    18919,
    18920,
    18921,
    18922,
    18923,
    18924,
    18925,
    18926,
    18927,
    18928,
    18929,
    18930,
    18931,
    18932,
    18933,
    18934,
    18935,
    18936,
    18937,
    18938,
    18939,
    18940,
    18941,
    18942,
    18943,
    18944,
    18945,
    18946,
    18947,
    18948,
    18949,
    18950,
    18951,
    18952,
    18953,
    18954,
    18955,
    18956,
    18957,
    18958,
    18959,
    18960,
    18961,
    18962,
    18963,
    18964,
    18965,
    18966,
    18967,
    18968,
    18969,
    18970,
    18971,
    18972,
    18973,
    18974,
    18976,
    18977,
    18978,
    18979,
    19006,
    19007,
    19008,
    19009,
    19010,
    19011,
    19012,
    19013,
    19014,
    19015,
    19016,
    19017,
    19018,
    19019,
    19020,
    19021,
    19022,
    19023,
    19024,
    19025,
    19026,
    19027,
    19028,
    19029,
    19030,
    19031,
    19032,
    19033,
    19034,
    19035,
    19036,
    19037,
    19038,
    19039,
    19040,
    19041,
    19042,
    19043,
    19044,
    19045,
    19046,
    19047,
    19048,
    19049,
    19050,
    19051,
    19052,
    19053,
    19085,
    19086,
    19090,
    19091,
    19092,
    19093,
    19094,
    19095,
    19096,
    19097,
    19098,
    19099,
    19100,
    19101,
    19102,
    19103,
    19104,
    19105,
    19106,
    19107,
    19108,
    19109,
    19110,
    19111,
    19112,
    19113,
    19114,
    19115,
    19116,
    19117,
    19118,
    19119,
    19120,
    19137,
    19138,
    19139,
    19140,
    19141,
    19142,
    19160,
    19161,
    19162,
    19163,
    19317,
    19318,
    19319,
    19330,
    19331,
    19346,
    19347,
    19348,
    19349,
    19350,
    19351,
    19352,
    19487,
    19488,
    19513,
    19515,
    331,
    333,
    334,
    335,
    336,
    337,
    338,
    339,
    341,
    321,
    322,
    323,
    324,
    325,
    326,
    343,
    346,
    347,
    348,
    349,
    350,
    351,
    352,
    353,
    355,
    356,
    372,
    357,
    358,
    361,
    363,
    364,
    365,
    366,
    367,
    368,
    369,
    371
    };
  • You can easily set the max attachments limit, Default it is set to max, i.e. 10
  • It auto saves every attachments and auto creates the player file in scriptfiles, no need for login or register system.
  • Commands to load the menu: /O, /Att, /Attachments
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
  • Excel
  • Zeex
  • ******
  • dO
  • DarcoBlue
How to Install ? ?
  • Download the filterscript
  • Go to Scriptfiles and create a folder Player Objects
  • Compile the script and add the script name in filterscripts in server.cfg
Reply
#2

Nice
Reply
#3

images pls
Reply
#4

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

Images plz
Reply
#6

Images added, check the album...
Reply
#7

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

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.
Reply
#9

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.
Reply
#10

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.
Reply
#11

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.
Reply
#12

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

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 ?
Reply
#14

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;
}
Reply
#15

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

Nice...!!
Reply
#17

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;
}
Reply
#18

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


Reply
#19

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

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.
Reply


Forum Jump:


Users browsing this thread: 11 Guest(s)