SetPlayerWorldBounds inside interiors
#1

Seems like SetPlayerWorldBounds isn't working inside interiors... Anyone succeed?
Reply
#2

did you try this?

pawn Код:
if(GetPlayerInterior(playerid)) == interiorid)
{
       //put the code SetPlayerWorldBounds
}
Reply
#3

i have a command which puts player inside an interior and sets his worls bounds. Like this:

SetPlayerWorldBounds(targetid, 343.0, 338.0, 167.0, 161.0);
SetPlayerPos(targetid, 340.4000, 164.0000, 1019.9844);
SetPlayerInterior(targetid, 3);
Reply
#4

then do this (i arrange them)

pawn Код:
SetPlayerPos(targetid, 340.4000, 164.0000, 1019.9844);
SetPlayerInterior(targetid, 3);
if(GetPlayerInterior(playerid) == 3)
{
     SetPlayerWorldBounds(targetid, 343.0, 338.0, 167.0, 161.0);
}
untested but it should work
Reply
#5

Why do you think this useless check should help Its not working even without any checks...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)