AttachObjectToPlayer() - Drop object at sprunk machine..
#6

SA-MP devs said you can only have ONE object attached to a player. Single player Sprunk machines would probably share the same limit, thus switching your player object with the Sprunk machines object.

Not sure on the single player SCM code, but it would flow like this (I imagine).
Code:
IsPlayerInRangeOfPoint() - Check if player is at a sprunk machine
ApplyAnimation() - animation for inserting money in to sprunk machine
SetPlayerHoldingObject() - attach sprunk can to player
ApplyAnimation() - drink sprunk
StopPlayerHoldingObject() - remove sprunk can
This is probably obvious, but even so, when dealing with multiplayer coding, you still have to take into account the single player (client side) code.

Bug? I honestly don't think it is.
It would be like saying, "my animations stop when I use a Sprunk Machine fix it"
A bit silly really.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)