SA-MP Forums Archive
Robbery - 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: Robbery (/showthread.php?tid=578138)



Robbery - STONEGOLD - 16.06.2015

How to make money bag system and the box for robbery. I mean, When you rob a store it shows you money bag on your character and a box appear.


Re: Robbery - DarkLored - 16.06.2015

Use AttachObjectToPlayer https://sampwiki.blast.hk/wiki/AttachObjectToPlayer

for object ID's
https://sampwiki.blast.hk/wiki/Model_ID


Re: Robbery - STONEGOLD - 16.06.2015

I want it should be removed after a min of robbery too


Re: Robbery - DarkLored - 16.06.2015

use a timer, and then use this function
https://sampwiki.blast.hk/wiki/RemovePlayerAttachedObject


Re: Robbery - STONEGOLD - 17.06.2015

Well, Thanks . ANd How to make box system robbery. Like if player start robbing a store. The store money box should appear and there's animation for it also.


Re: Robbery - DarkLored - 17.06.2015

It's called CreateObject
https://sampwiki.blast.hk/wiki/CreateObject

animation is ApplyAnimation
https://sampwiki.blast.hk/wiki/ApplyAnimation