30.07.2011, 05:40
you will find in the Garhouse.pwn a think like this :
Replace it with this :
Use CTRL + F and search for : CMD:gotohouse , hope that help
pawn Код:
CMD:gotohouse(playerid, params[])
{
new h;
if(!IsPlayerAdmin(playerid)) return 0;
if(sscanf(params, "d", h)) return ShowInfoBoxEx(playerid, COLOUR_SYSTEM, E_CMD_USAGE_GOTOHOUSE);
if(!fexist(HouseFile(h))) return ShowInfoBoxEx(playerid, COLOUR_SYSTEM, E_INVALID_HID);
SetPlayerPosEx(playerid, hInfo[h][SpawnOutX], hInfo[h][SpawnOutY], hInfo[h][SpawnOutZ], hInfo[h][SpawnInterior], hInfo[h][SpawnWorld]);
ShowInfoBox(playerid, I_TELEPORT_MSG, h);
return 1;
}
Replace it with this :
pawn Код:
CMD:gotohouse(playerid, params[])
{
new h;
if(sscanf(params, "d", h)) return ShowInfoBoxEx(playerid, COLOUR_SYSTEM, E_CMD_USAGE_GOTOHOUSE);
if(!fexist(HouseFile(h))) return ShowInfoBoxEx(playerid, COLOUR_SYSTEM, E_INVALID_HID);
SetPlayerPosEx(playerid, hInfo[h][SpawnOutX], hInfo[h][SpawnOutY], hInfo[h][SpawnOutZ], hInfo[h][SpawnInterior], hInfo[h][SpawnWorld]);
ShowInfoBox(playerid, I_TELEPORT_MSG, h);
return 1;
}
Use CTRL + F and search for : CMD:gotohouse , hope that help