19.08.2009, 08:03
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?
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.
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;
}
i think i need help with the property.cfg. but i'm not sure.
thanks for helping.

