SA-MP Forums Archive
Help with SetPlayerAttachedObject - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with SetPlayerAttachedObject (/showthread.php?tid=346363)



Help with SetPlayerAttachedObject - N0FeaR - 28.05.2012

I there anyway i can save the SetPlayerAttachedObject after player log off from the server and login still have the SetPlayerAttachedObject?


Re: Help with SetPlayerAttachedObject - Ranama - 28.05.2012

I think you could save it to your MySQL or what saving system you have. save the modelid, positions and use them to be setted on the player when he logs on.
Don't know if that works, just a guess


Re: Help with SetPlayerAttachedObject - ReneG - 28.05.2012

Yes, if you've scripted a roleplay mode, then you should know you can do this all with variables.


Re: Help with SetPlayerAttachedObject - Face9000 - 28.05.2012

Yes you can.Just look like when you save the score,edit the variables (like position x,y,z - angle etc and modelid).


Re: Help with SetPlayerAttachedObject - MP2 - 28.05.2012

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
Yes you can.Just look like when you save the score,edit the variables (like position x,y,z - angle etc and modelid).
Helpful.


You'll need to store all the data (index, bone, model and offsets) in variables then write them to file (y_ini/dini/whatever) when the player disconnects.