SetPlayerPos Not working....
#10

Ah, you need the SetPlayerVirtualWorld function.

Add this under SetPlayerInterior...

pawn Код:
SetPlayerVirtualWorld(playerid, 1);
(0 = Regular world , 1 = Virtual world)

Also, change the Interior ID in your SetPlayerInterior function from 1 to 3 like so...

pawn Код:
SetPlayerInterior(playerid, 3);
(Unnamed brothel interior id = 3)

Altogether, your script should be like this:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp("/enter",cmdtext))
    {
        if(IsPlayerInRangeOfPoint(playerid, 3.0, 2835.8623,1842.2155,15.8016))
        {
            SetPlayerPos(playerid, 2826.1431,1852.9651,17.6838);
            SetPlayerInterior(playerid,3);
            SetPlayerVirtualWorld(playerid, 1);          
        }
        return 1;
    }
    return 0;
}
Let me know if it doesn't work.
Reply


Messages In This Thread
SetPlayerPos Not working.... - by Alex_Obando - 01.03.2011, 21:19
Re: SetPlayerPos Not working.... - by grand.Theft.Otto - 01.03.2011, 21:21
Re: SetPlayerPos Not working.... - by blackwave - 01.03.2011, 21:21
Re: SetPlayerPos Not working.... - by JaTochNietDan - 01.03.2011, 21:23
Respuesta: SetPlayerPos Not working.... - by Alex_Obando - 01.03.2011, 21:26
Re: SetPlayerPos Not working.... - by grand.Theft.Otto - 01.03.2011, 21:34
Respuesta: SetPlayerPos Not working.... - by Alex_Obando - 01.03.2011, 21:39
Re: SetPlayerPos Not working.... - by JaTochNietDan - 01.03.2011, 21:40
Respuesta: SetPlayerPos Not working.... - by Alex_Obando - 01.03.2011, 22:09
Re: SetPlayerPos Not working.... - by grand.Theft.Otto - 01.03.2011, 22:16

Forum Jump:


Users browsing this thread: 3 Guest(s)