SA-MP Forums Archive
[BUG] Bottle or cigarette - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [BUG] Bottle or cigarette (/showthread.php?tid=324137)



[BUG] Bottle or cigarette - Dima_Tkach - 08.03.2012

Next to the player after the death appear a bottle or a cigarette.Please fix this (:


Re: [BUG] Bottle or cigarette - park4bmx - 08.03.2012

Seen the problem
But it could be fixed via script !


Re: [BUG] Bottle or cigarette - Rac3r - 08.03.2012

Possibly related to SpawnPlayer(playerid);

When I tried skipping class selection about a year ago, I always got the bottle or cig in my players hand.


Re: [BUG] Bottle or cigarette - HuSs3n - 08.03.2012

Confirmed
i was about to report this, got many screens for it


Re: [BUG] Bottle or cigarette - Joey^ - 08.03.2012

Confirmed. Please fix it, it's annoying.


Re: [BUG] Bottle or cigarette - T0pAz - 08.03.2012

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
Seen the problem
But it could be fixed via script !
4char.


Re: [BUG] Bottle or cigarette - Gamer_Z - 08.03.2012

How can it be fixed via scripting? O_O


Re: [BUG] Bottle or cigarette - T0pAz - 08.03.2012

Quote:
Originally Posted by Gamer_Z
Посмотреть сообщение
How can it be fixed via scripting? O_O
Make use of your brain. There are 4 possible way I can think of including hooking callback and switching skin.


Re: [BUG] Bottle or cigarette - Ricop522 - 08.03.2012

Confirmed


Re: [BUG] Bottle or cigarette - park4bmx - 08.03.2012

Quote:
Originally Posted by Gamer_Z
Посмотреть сообщение
How can it be fixed via scripting? O_O
there's couple of options.
but does not allways work.

i added once in my gamemode
some functions like

StopPlayerHoldingObject
ClearAnimations
ResetingPlayerPos

if all fails just reconnect him :/

i will need to test this it was long time ago dont remember.
but i cannot give 100% !


Re: [BUG] Bottle or cigarette - lordturhan - 08.03.2012

Confirmed


Re: [BUG] Bottle or cigarette - ][Noname][ - 08.03.2012

confirmed


Re: [BUG] Bottle or cigarette - SteeLFelna - 08.03.2012

Confirmed


Re: [BUG] Bottle or cigarette - GameMan - 08.03.2012

Confirmed


Re: [BUG] Bottle or cigarette - robintjeh - 08.03.2012

Confirmed on new.pwn.


AW: [BUG] Bottle or cigarette - Meta - 08.03.2012

very very old bug


Re: [BUG] Bottle or cigarette - IstuntmanI - 09.03.2012

Confirmed ... many times. :P

I forget the steps, but I saw this bug.


Re: [BUG] Bottle or cigarette - Rac3r - 09.03.2012

Guess Work: (Probably wrong, correct if so)

It's caused by TogglePlayerStectating(playerid, false) and SpawnPlayer(playerid) being used at the same time. TogglePlayerSpectating(playerid, false) will actually call OnPlayerSpawn(playerid). The SpawnPlayer(playerid) is not needed.

I'll try reproduce this bug. (I can't)

Quote:
Originally Posted by robintjeh
View Post
Confirmed on new.pwn.
Show us your new.pwn.


Re: [BUG] Bottle or cigarette - MP2 - 09.03.2012

Quote:
Originally Posted by T0pAz
Посмотреть сообщение
Make use of your brain. There are 4 possible way I can think of including hooking callback and switching skin.
Perhaps instead of making us play a guessing game you could actually be helpful and tell us?


Re: [BUG] Bottle or cigarette - Vvolk - 09.03.2012

Agree! Needs to be fixed