Virtual worlds need help
#1

does this work as virtual worlds it was in my script but idk if it will work when i add more houses
Код:
	if(strcmp(cmd, "/exit", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
		{
			for(new i = 0; i < sizeof(HouseInfo); i++)
			{
				//printf("House :%d",i);
				if (PlayerToPoint(3, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]))
				{
					SetPlayerInterior(playerid,0);
					SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
					PlayerInfo[playerid][pInt] = 0;
					PlayerInfo[playerid][pLocal] = 255;
					if(HouseInfo[i][hHel] == 1)
					{
						new Float:tempheal;
						GetPlayerHealth(playerid,tempheal);
						if(tempheal < 100.0)
						{
							SetPlayerHealth(playerid,100.0);
						}
					}
				}
			}
Reply


Messages In This Thread
Virtual worlds need help - by Qeux - 02.04.2009, 01:40
Re: Virtual worlds need help - by Pyrokid - 02.04.2009, 02:19
Re: Virtual worlds need help - by grimbluelord - 02.04.2009, 03:49
Re: Virtual worlds need help - by Qeux - 03.04.2009, 00:47
Re: Virtual worlds need help - by Shellegg - 03.04.2009, 02:03
Re: Virtual worlds need help - by grimbluelord - 03.04.2009, 03:03

Forum Jump:


Users browsing this thread: 1 Guest(s)