Problem with object co-ordinates
#1

I'm trying to do like the player is robbing and taking money from the safe
Code:
pawn Код:
new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid,x,y,z);
    ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",4.1,1,1,1,1,1);
    SetPlayerAttachedObject(playerid, 3, 1550, 1, 0.1, -0.3, 0, 0, 40, 0, 1, 1, 1);
    CreateObject(1829,x,y-1,z,180.0,0.0,94.0);
but i find the safe here
Reply
#2

Why are you creating the safe when the player /robs it?

Place the safe as a static or dynamic object - and when the player is near the object get the cords.

Or you could just /save objectpos after you /rob and palce the object there.
Reply
#3

OMG! i made something like that months ago.
this is how i used it
pawn Код:
SetPlayerPos(playerid,379.1041,-115.8127,1001.4922);
                SetPlayerFacingAngle(playerid,277.5683);
                ApplyAnimation(playerid, "ROB_BANK", "CAT_Safe_Rob", 4.1, 1, 0, 0, 1, 1, 1);
                ROBBING_STACKWELL[playerid] = 30;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)