Problem Exiting the Room!
#1

[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);
Reply
#2

virtual wrold problem use that
Reply
#3

What i need to change in the script ?
The Virtual World is 13
Reply
#4

pawn Код:
SetPlayerVirtualWorld( playerid, 0 );
Try that
Reply
#5

Quote:
Originally Posted by Vero
Посмотреть сообщение
pawn Код:
SetPlayerVirtualWorld( playerid, 0 );
Try that
shouldnt be 13 ?
Reply
#6

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.
Reply
#7

testing..
i will edit the post in 2 or 3 minutes
Reply
#8

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!
Reply
#9

Ok found the problem! Thanks for you help '
The problem wasnt VW was Interior ID xD
SafeSetPlayerInterior(playerid, 13); Should be 17
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)