Unfreeze bug?
#1

Maybe this is a bug I'm not quite sure so I would like to know.

So basically a player get's freezed (TogglePlayerControllable) close to a car. He presses G button to get in a car and if in a certain point of the animation player gets put in a different vehicle (not sure if it works only with motorcycles or with all vehicles) on passenger seat (PutPlayerInVehicle) he gets unfreezed. Maybe he just gets EPP or something but I've often seen some players getting unfreezed like that. Possible or not?
Reply
#2

I just had a theory to fix it.
use an enum :

enum pData

inside it pFreeze or pCanMove or pControllable
when u wanna to freeze a player use this :
pawn Код:
PlayerInfo[playerid][pFreeze] = 1;
Then in the callback
OnPlayerStateChange
if State is passenger :
pawn Код:
if(PlayerInfo[playerid][pFreeze] == 1)
{

}
unfreeze player
remove player from vehicle
and then freeze player.

i think this is can be a fix for ur problem
=========
This is another bug when you crouch © Change player skin with anyway, Then you got freezed.
Reply
#3

Quote:
Originally Posted by iFarbod
Посмотреть сообщение
I just had a theory to fix it.
use an enum :

enum pData

inside it pFreeze or pCanMove or pControllable
when u wanna to freeze a player use this :
pawn Код:
PlayerInfo[playerid][pFreeze] = 1;
Then in the callback
OnPlayerStateChange
if State is passenger :
pawn Код:
if(PlayerInfo[playerid][pFreeze] == 1)
{

}
unfreeze player
remove player from vehicle
and then freeze player.

i think this is can be a fix for ur problem
=========
This is another bug when you crouch © Change player skin with anyway, Then you got freezed.
He is not asking how to fix it.
And yes, it is a bug confirmed.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)