[HELP]dcmd_gotohouse
#1

Hello,
use Garhouse FS how can I do the command /gotohouse can use it all

Код:
dcmd_gotohouse(playerid, params[])
{
	new h, file[HOUSEFILE_LENGTH];
	if(!IsPlayerAdmin(playerid)) return 0;
	if(sscanf(params, "d", h)) return SendClientMessage(playerid, COLOUR_SYSTEM, E_CMD_USAGE_GOTOHOUSE);
    format(file, sizeof(file), FILEPATH, h);
	if(!dini_Exists(file)) return SendClientMessage(playerid, COLOUR_SYSTEM, E_INVALID_HID);
	else
	{
	    SetPlayerPosEx(playerid, dini_Float(file, "SpawnOutX"), dini_Float(file, "SpawnOutY"), dini_Float(file, "SpawnOutZ"), dini_Int(file, "SpawnInterior"), dini_Int(file, "SpawnWorld"));
		SendMSG(playerid, COLOUR_YELLOW, 128, I_TELEPORT_MSG, h);
	}
    return 1;
}
And to add the command / myhouses
As I write to teleport into their house?
Reply


Messages In This Thread
[HELP]dcmd_gotohouse - by pitchooo - 11.02.2015, 02:21
Re: [HELP]dcmd_gotohouse - by Eth - 11.02.2015, 04:01
Re: [HELP]dcmd_gotohouse - by Sew_Sumi - 11.02.2015, 04:46
Re: [HELP]dcmd_gotohouse - by pitchooo - 11.02.2015, 17:49
Re: [HELP]dcmd_gotohouse - by Sew_Sumi - 11.02.2015, 23:58
Re: [HELP]dcmd_gotohouse - by pitchooo - 12.02.2015, 02:39
Re: [HELP]dcmd_gotohouse - by Sew_Sumi - 13.02.2015, 08:33

Forum Jump:


Users browsing this thread: 2 Guest(s)