Attaching object ti player problem
#1

I have:
pawn Код:
new Nume1[25];
                                GetPlayerName(playerid, Nume1, sizeof(Nume1));
                                BancomatRob[playerid] = 1;
                                BancomatRobTime[playerid] = 30;
                                BancomatRobbed = 1;
                                new randtax = 10000 + random(15000);
                                SafeGivePlayerMoney(playerid, randtax);
                                SetPlayerHoldingObject(playerid, 1550, 1, 0.030669, -0.200303, -0.021784, 0.000000, 89.592170, 147.024810, 1.000000, 1.000000, 1.000000);
                                SetPlayerAttachedObject( playerid, 9, 1550, 1, 0.030669, -0.200303, -0.021784, 0.000000, 89.592170, 147.024810, 1.000000, 1.000000, 1.000000 );
                                WantedLevel[playerid] = 10;
                                PlayerInfo[playerid][pSuspect] = 10;
                                TogglePlayerControllable(playerid, 0);
                                format(string, sizeof(string), "Ai tras cateva gloante in Bancomat si ai nimerit balamalele.", randtax);
                                format(string, sizeof(string), "Ai spart Bancomatul cu succes, %d RON. Cand ai vazut banii ai incremenit (Ai fost blocat 30 secunde)", randtax);
                                SendClientMessage(playerid, COLOR_GREEN, string);
                                SetTimer("ResetRobTimer", 3600000, false);
These lines are from my /robatm command, if i succeed it, the player should have attached on his back a sack of money, i've tried:
pawn Код:
SetPlayerHoldingObject(playerid, 1550, 1, 0.030669, -0.200303, -0.021784, 0.000000, 89.592170, 147.024810, 1.000000, 1.000000, 1.000000);
And
pawn Код:
SetPlayerAttachedObject( playerid, 9, 1550, 1, 0.030669, -0.200303, -0.021784, 0.000000, 89.592170, 147.024810, 1.000000, 1.000000, 1.000000);
But nothing happen, there is no object on player. A little help?
Reply


Messages In This Thread
Attaching object ti player problem - by calin1996 - 05.06.2012, 16:16
Re: Attaching object ti player problem - by calin1996 - 05.06.2012, 17:37
Re: Attaching object ti player problem - by calin1996 - 05.06.2012, 17:48
Re: Attaching object ti player problem - by calin1996 - 06.06.2012, 11:34
Re: Attaching object ti player problem - by Sandiel - 06.06.2012, 12:11

Forum Jump:


Users browsing this thread: 1 Guest(s)