[HELP]dcmd_gotohouse
#2

pawn Код:
dcmd_gotohouse(playerid, params[])
{
    new h, file[HOUSEFILE_LENGTH];
    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;
}
this will allow everyone to use this command
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: 1 Guest(s)