PVars the problem?
#7

I believe you have to attach objects when a player is streamed in.

You have your offsets as the players position; they are 'offsets' not positions, which means the bag is put at co-ordinates (player_x + x_offset, player_y + y_offset, player_z + z_offset). Right now your offsets are the co-ordinates which means the bag is set at the co-ordinates (player_x + player_x, player_y + player_y, player_z + player_z)

pawn Код:
public OnPlayerStreamIn(playerid, forplayerid)
{
    new
        bagObject = GetPVarInt(playerid, "bag");

    if (bagObject)
        AttachObjectToPlayer(bagObject, playerid, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);

    return 1;
}
You'll also want to change the offset used in your command as well.
Reply


Messages In This Thread
PVars the problem? - by willsuckformoney - 03.08.2010, 03:12
Re: PVars the problem? - by willsuckformoney - 03.08.2010, 05:48
Re: PVars the problem? - by Retardedwolf - 03.08.2010, 05:53
Re: PVars the problem? - by bigcomfycouch - 03.08.2010, 05:53
Re: PVars the problem? - by willsuckformoney - 03.08.2010, 06:08
Re: PVars the problem? - by marharth - 03.08.2010, 06:11
Re: PVars the problem? - by Simon - 03.08.2010, 08:00
Re: PVars the problem? - by Sergei - 03.08.2010, 08:04

Forum Jump:


Users browsing this thread: 1 Guest(s)