detachobject
#2

I did that, but still no result, can you see whats wrong?

Heres both codes:

pawn Код:
new Object[MAX_PLAYERS];
pawn Код:
dcmd_obj(playerid,params[])
{
    new Float:X, Float:Y, Float:Z, Float:Angle;
    GetPlayerPos(playerid, X, Y, Z);
    Object[playerid] = CreateObject(1655, X, Y, Z, 0, 0, 0);
  AttachObjectToPlayer(Object[playerid] ,playerid, 0, 8, 0, 0, 0, 0);
    return 1;
}
pawn Код:
dcmd_can(playerid,params[])
{
    new Float:X, Float:Y, Float:Z;
    GetObjectPos(Object[playerid], X, Y, Z);
    DestroyObject(Object[playerid]);
    CreateObject(Object[playerid], X, Y, Z, 0, 0, 0);
    return 1;
}
>< Thnx
Reply


Messages In This Thread
detachobject - by Robbin237 - 25.04.2009, 15:21
Re: detachobject - by Robbin237 - 25.04.2009, 15:26

Forum Jump:


Users browsing this thread: 1 Guest(s)