SA-MP Forums Archive
[FilterScript] Ingame player holding object editor. - 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] Ingame player holding object editor. (/showthread.php?tid=170848)

Pages: 1 2


Ingame player holding object editor. - General Abe - 24.08.2010

Ingame PlayerHoldingObject Editor
(updated to v1.1 25th August 2010)

Basic filterscript-based editor I made (in a bit of a hurry) for holding objects which allows you to move objects around ingame, using the arrow keys, on each set of axes (XYZ offset, XYZ rotation). Realised that actually specifying offsets through trial and error is a bitch, so there had to be an easier way.

Probably a bit crude, but it's simple enough to use. Load the filterscript (it requires zcmd to compile by the way) and /editorhelp will show all three of the commands in their glory. Pick an object and a bone ID (no, you can't pick 0, lulz), execute /editor and it'll appear on your player (and freeze you, as it uses up/down/left/right keystates). Left/right shifts the axis (XYZ rotation/offset) while up/down controls the object along the axis. Once you've got it right in place, /preview can be used to move the camera and see what you've done; /saveobj will spit out the SetPlayerHoldingObject code, already fully formatted with a comment of your choice, to /scriptfiles/savedobjs.txt.

And yes, it's great for briefcases and the like. While not initally my idea, it can also be used in a multiplayer situation. I've now updated it to use a textdraw, the sscanf stock (as opposed to the plugin, it was unnecessary here) and added some other bits here and there.
.amx: http://solidfiles.com/d/cf33/
.pwn: http://pastebin.com/n1PxppfJ
screenshot: here



Re: Ingame player holding object editor. - [TD]Torben - 24.08.2010

Thanks, very nice work.


Re: Ingame player holding object editor. - bertuspiteri - 24.08.2010

ain't working for me....all commands say , SERVER: Unkown Command


Re: Ingame player holding object editor. - iggy1 - 24.08.2010

Nice work i made one of these, but mines all done with commands not even thought of KeyStateChange, and yh specifying the offsets/rot was a ballache. GJ


Re: Ingame player holding object editor. - Shadow_ - 24.08.2010

Quote:
Originally Posted by bertuspiteri
Посмотреть сообщение
ain't working for me....all commands say , SERVER: Unkown Command
Yeh' same happends for me..


Re: Ingame player holding object editor. - playbox12 - 24.08.2010

Didn't tested it, the comments above say it doesen't work but what ever. From what I see in the description and code it looks cool.


Re: Ingame player holding object editor. - nuriel8833 - 24.08.2010

Nice FS =)


Re : Ingame player holding object editor. - Varkoll_ - 24.08.2010

Verry niiiice ^^


Re: Ingame player holding object editor. - XtremePlanet - 24.08.2010

Love you! I tried 100x but some objects just don't obey.

Gonna try it out!

EDIT: Nothing works..


Re: Ingame player holding object editor. - General Abe - 24.08.2010

You need zcmd + sscanf 2.0 to run it, are you sure you're not doing it wrong? (yes, even using the AMX requires the sscanf 2.0 plugin).


Re: Ingame player holding object editor. - Calgon - 24.08.2010

Nice work, Kangaroo Jack!


Re: Ingame player holding object editor. - General Abe - 24.08.2010

lmao. I'll update this with the sscanf stock (for you guys who can't be bothered using the plugin), and textdraws.


Re: Ingame player holding object editor. - General Abe - 25.08.2010

Updated.


Re: Ingame player holding object editor. - Souvlaki - 25.08.2010

Good job mate!


Re: Ingame player holding object editor. - matheuzinho - 20.09.2010

I'm having a problem... (the fs worked great 4 me), but, when I put the code in my gm, it does not compile... pawno returns me that warning (number of arguments does not match definitions). Do you know what is the problem?

thx, and congrats anyway


Re: Ingame player holding object editor. - Basicz - 21.09.2010

It looks like a nice filterscript!
I'll test it later.


Re: Ingame player holding object editor. - [KMA]DlennartD - 27.09.2010

nice hat sir


Re: Ingame player holding object editor. - JamesC - 27.09.2010

Good job. * Throws a cookie at Brian. *


Re: Ingame player holding object editor. - royal_king - 27.09.2010

Awesome Xd!! i love this one i'will use this


Re: Ingame player holding object editor. - General Abe - 03.10.2010

Quote:
Originally Posted by matheuzinho
Посмотреть сообщение
I'm having a problem... (the fs worked great 4 me), but, when I put the code in my gm, it does not compile... pawno returns me that warning (number of arguments does not match definitions). Do you know what is the problem?

thx, and congrats anyway
Which line?

(also, make sure you're using up to date includes and such).