[Help] /exit command
#1

I made houses with same interiors and different virtual worlds... But when i enter /exit cmd i can't exit from house... Dunno why...

Here's my /exit cmd:

Код:
if(strcmp(cmd, "/exit", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
		{
      for(new i = 0; i < sizeof(HouseInfo); i++)
			{
				if (PlayerToPoint(3, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]))
				{
				  if(HouseEntered[playerid] == i)
				  {
						SetPlayerInterior(playerid,0);
						SetPlayerVirtualWorld(playerid,HouseInfo[i][hWorld]);
						SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
						PlayerInfo[playerid][pInt] = 0;
						PlayerInfo[playerid][pLocal] = 255;
						SetPlayerVirtualWorld(playerid,0);
						HouseEntered[playerid] = 255;
					}
				}
			}
		}
	}
Can anyone please tell me how to exit from house?
Reply


Messages In This Thread
[Help] /exit command - by Borleon - 26.06.2009, 13:42
Re: [Help] /exit command - by Weirdosport - 26.06.2009, 13:55
Re: [Help] /exit command - by Stah - 26.06.2009, 14:04
Re: [Help] /exit command - by killerx100 - 12.07.2009, 06:56

Forum Jump:


Users browsing this thread: 1 Guest(s)