SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 16/12/2011, 01:34 PM   #1
BetaLaxx
Big Clucker
 
BetaLaxx's Avatar
 
Join Date: Sep 2011
Location: Oman.
Posts: 125
Reputation: 13
Default Saving Player Attached Objects

Okay, So When A Player Spawns He Has A Little Backpack On His Spine, But on relog he loses it, So i want to know how can i save Player attached objects.
I've tried to but i think i failed, Sorry For My Bad Coding LOL, On Player Spawn The Object he was wearing last time gets attached to him again, How?:
pawn Code:
INI_WriteFloat( File, "Object1",PlayerInfo[playerid][pObject1]);
__________________
Are you bored?
BetaLaxx is offline   Reply With Quote
Old 01/03/2014, 09:37 AM   #2
HitterHitman
Banned
 
Join Date: Sep 2013
Location: San fierro
Posts: 270
Reputation: 25
Default Re: Saving Player Attached Objects

BUMP Same question please help, Can someone post a code to save and load attached objects?

EDIT: I know it is too old, but i need to know how to save or load every attached object.
HitterHitman is offline   Reply With Quote
Old 01/03/2014, 09:42 AM   #3
Beckett
High-roller
 
Beckett's Avatar
 
Join Date: Feb 2012
Location: www.finalnights-rp.com
Posts: 1,794
Reputation: 104
Default Re: Saving Player Attached Objects

Save the object model.
Object POS(3)
Object index.
etc.
Then when he spawns attach it.
__________________
Final Nights Roleplay
The first SA-MP server that is not regulated by administrators.
No OOC hierarchy. Strictly directed by players. Utopian vision.

El primer servidor SA-MP que no está regulado por los administradores.
Sin jerarquías OOC. Estrictamente dirigido por jugadores. Visión utópica.

Primul server de SA-MP care nu este regulat de administratori.
Fără ierarhie OOC. Strict dictat de jucători. Visiune utopică.

Yöneticiler tarafından düzenlenmeyen ilk SA-MP sunucusu.
OOC hiyerarşisi yok. Kesinlikle oyuncular tarafından yönetiliyor. Ütopik görme.


Become a Member of our Discord Channel
Beckett is offline   Reply With Quote
Old 02/03/2014, 07:18 AM   #4
HitterHitman
Banned
 
Join Date: Sep 2013
Location: San fierro
Posts: 270
Reputation: 25
Default Re: Saving Player Attached Objects

Please can you give me a example of saving and loading 2 attachments?
HitterHitman is offline   Reply With Quote
Old 13/08/2014, 06:55 PM   #5
arlindi
Banned
 
Join Date: May 2014
Posts: 869
Reputation: 27
Default Re: Saving Player Attached Objects

And i need this
arlindi is offline   Reply With Quote
Old 07/01/2015, 02:49 PM   #6
fatlirmorina
Big Clucker
 
Join Date: Nov 2013
Posts: 70
Reputation: 1
Default Re: Saving Player Attached Objects

Bump
fatlirmorina is offline   Reply With Quote
Old 07/01/2015, 02:54 PM   #7
Sid_Alexander
Huge Clucker
 
Sid_Alexander's Avatar
 
Join Date: Apr 2011
Location: Pawn.
Posts: 237
Reputation: 22
Default Re: Saving Player Attached Objects

Lol, This is my buddies friend, He's inactive.
@Fatlir, You want to save the object through Y_INI or something else?
__________________
Sid_Alexander is offline   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
Attached objects disappears leong124 Bug Reports 12 21/09/2011 04:55 PM
[BUG] Attached objects jonrb Help Archive 3 02/12/2010 10:53 PM


All times are GMT. The time now is 07:56 PM.


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