Problem Exiting the Room! -
Miguel_Teixeira - 02.05.2011
[ame]http://www.youtube.com/watch?v=FmZkU3ACR4k[/ame]
I Already checked the virtual world and coordinates, and cant figure out the problem!
I will post the Script:
Код:
}
else if(IsPlayerInRangeOfPoint(playerid, 1, 503.75,-11.70,1000.68))
{//Rap Room Entrance
PlayerInfo[playerid][pInteriorNr] = 1;
GameTextForPlayer(playerid, "~w~Rap Crew", 5000, 1);
SafeSetPlayerInterior(playerid, 13);
SafeSetPlayerPos(playerid,505.54,-13.75,1007.49);
SetPlayerFacingAngle(playerid, 0);
TogglePlayerControllable(playerid, 0);
SetTimerEx("Unfreezeply",1500,false,"i",playerid);
}
else if(IsPlayerInRangeOfPoint(playerid, 1, 505.54,-13.75,1007.49))
{//Rap Room Exit
PlayerInfo[playerid][pInteriorNr] = 0;
GameTextForPlayer(playerid, "~w~Alhambra", 5000, 1);
SafeSetPlayerInterior(playerid, 13);
SafeSetPlayerPos(playerid,503.75,-11.70,1000.68);
SetPlayerFacingAngle(playerid, 0);
TogglePlayerControllable(playerid, 0);
SetTimerEx("Unfreezeply",1500,false,"i",playerid);
Re: Problem Exiting the Room! -
Venice - 02.05.2011
virtual wrold problem use that
Re: Problem Exiting the Room! -
Miguel_Teixeira - 02.05.2011
What i need to change in the script ?
The Virtual World is 13
Re: Problem Exiting the Room! -
Vero - 02.05.2011
pawn Код:
SetPlayerVirtualWorld( playerid, 0 );
Try that
Re: Problem Exiting the Room! -
Miguel_Teixeira - 02.05.2011
Quote:
Originally Posted by Vero
pawn Код:
SetPlayerVirtualWorld( playerid, 0 );
Try that
|
shouldnt be 13 ?
Re: Problem Exiting the Room! -
Vero - 02.05.2011
Leave
pawn Код:
SafeSetPlayerInterior(playerid, 13);
in as I belive (I could be wrong) that is the Interior ID.
pawn Код:
SetPlayerVirtualWorld( playerid, 0 );
Should make sure you stay in the correct Virtual World, thus things should be normal.
Re: Problem Exiting the Room! -
Miguel_Teixeira - 02.05.2011
testing..
i will edit the post in 2 or 3 minutes
Re: Problem Exiting the Room! -
Miguel_Teixeira - 02.05.2011
Ok i added SetPlayerVirtualWorld( playerid, 0 );
But still the same problem :S
I am in the right world, when i enter alhambra i type /world and it says 13, when i enter and exit rap room the world is 13 too, i dont understand!
Re: Problem Exiting the Room! -
Miguel_Teixeira - 02.05.2011
Ok found the problem! Thanks for you help '
The problem wasnt VW was Interior ID xD
SafeSetPlayerInterior(playerid, 13); Should be 17