01.03.2011, 22:16
Ah, you need the SetPlayerVirtualWorld function.
Add this under SetPlayerInterior...
(0 = Regular world , 1 = Virtual world)
Also, change the Interior ID in your SetPlayerInterior function from 1 to 3 like so...
(Unnamed brothel interior id = 3)
Altogether, your script should be like this:
Let me know if it doesn't work.
Add this under SetPlayerInterior...
pawn Код:
SetPlayerVirtualWorld(playerid, 1);
Also, change the Interior ID in your SetPlayerInterior function from 1 to 3 like so...
pawn Код:
SetPlayerInterior(playerid, 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;
}