Onplayerspawn Player Freeze Problem 0.3z r2
#1

Hello,

since 0.3z and 0.3z r2, players losing complete keyboard control after using OnPlayerSpawn a few times.


Help is welcome.

Thank You

Greets
Reply
#2

Add this under on player spawn
Код:
TogglePlayerControllable(playerid, 1);
Reply
#3

Hi, thank you , but players still losing keyboardcontrol.
Nothing has been changed, except the server updated to 0.3z r2.

Help appreciated.

Thank You
Reply
#4

you use any dialog after player get spawned like class dialog or whatever?
Reply
#5

No dialog. This happen the first time after 0.3z r2
Reply
#6

try TogglePlayerControllable, and if you use Clickable textdraws when a player spawn, try : CancelSelectTextDraw(playerid);

otherwise, past your OnPlayerSpawn here, so we can see where that damn error is x)
Reply
#7

I can confirm this issue, I'm getting the same thing.

OnPlayerConnect
// TogglePlayerSpectating(playerid, 1);

Login Dialog
// SetSpawnInfo(playerid, 0, skin, posx, posy, posz, posa, 0, 0, 0, 0, 0)
// SpawnPlayer(playerid)

OnPlayerSpawn
// TogglePlayerControllable(playerid, 1)

Works in 0.3z R1-2 and older versions but not 0.3z R2-2
Spawns, but are not able to move.
Reply
#8

SpawnPlayer(playerid); should go to OnPlayerSpawn i think
Reply
#9

Does not work, just tested.

Quote:

This forum requires that you wait 120 seconds between posts. Please try again in 35 seconds.

Reply
#10

Try to put this in OnPlayerSpawn :

SpawnPlayer(playerid);
TogglePlayerSpectating(playerid, 0);
TogglePlayerControllable(playerid, 1);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)