Need some help..
#1

Hello, i just started PEN LS. and i want to add more houses.
but when i do /tphouse, i only can teleport 33 houses.
i wanna teleport more houses.
could you help me?

Код:
	if(strcmp(cmd, "/tphouse", true) == 0 && IsPlayerConnected(playerid))
	{
		GetPlayerName(playerid, playername, sizeof(playername));
		tmp = strtok(cmdtext, idx);

		new Float:hX, Float:hY, Float:hZ;
		GetPlayerPos(playerid, hX, hY, hZ);

		if(!strlen(tmp))
		{
			SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /tphouse [houseid]");
			return 1;
		}
		new house = strval(tmp);
		if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 105 && IsPlayerConnected(playerid))
		{
			HouseInfo[house][hEntrancex] = hX;
			HouseInfo[house][hEntrancey] = hY;
			HouseInfo[house][hEntrancez] = hZ;
			format(string, sizeof(string), "House has been transported to its new location");
			SendClientMessage(playerid, COLOR_GRAD2, string);
			OnPropUpdate();
			return 1;
		}
		else
		{
			SendClientMessage(playerid, COLOR_WHITE, "You are not an admin.");
		}
		return 1;
	}
so could you help me and tell me what i need to do.
i think i need help with the property.cfg. but i'm not sure.

thanks for helping.
Reply


Messages In This Thread
Need some help.. - by [FBI]Gstar - 19.08.2009, 08:03
Re: Need some help.. - by MenaceX^ - 19.08.2009, 08:13

Forum Jump:


Users browsing this thread: 1 Guest(s)