How to attach money bag
#1

Hi guys i would like to know the script to attach a money bag to the back of a person. I cant make it myself cause i started scripting some days ago. And ik skins have different cordinates but just put one that stays nice in every skin.

If u can make that for me i would apreciate alot
Reply
#2

Code:
Moneybag = CreateObject(1550, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToPlayer(Moneybag, playerid, -0.300999,0.337999,-0.093999, 0.000000,-90.400001,166.100006);
Code:
new Moneybag; //add this any where in ur script
Reply
#3

Quote:
Originally Posted by killing
View Post
Code:
Moneybag = CreateObject(1550, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToPlayer(Moneybag, playerid, -0.300999,0.337999,-0.093999, 0.000000,-90.400001,166.100006);
Code:
new Moneybag; //add this any where in ur script
If he used new Moneybag without [MAX_PLAYERS]; when he remove the object, it will remove for all of the players

I will suggest the following code since you can remove it for a specified player.

pawn Code:
new     MoneyBag[MAX_PLAYERS];

        AttachObjectToPlayer( MoneyBag[playerid], playerid, -0.027000, -0.251999, 0.000000 , 1.000000, 1.000000, 1.000000 );
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)