27.03.2013, 19:36
Код:
format(hfile, sizeof(hfile), "/Houses/%d.ini", GetPlayerHouseID(playerid)); new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); dini_FloatSet(hfile, "ECPX", X); dini_FloatSet(hfile, "ECPY", Y); dini_FloatSet(hfile, "ECPZ", Z); dini_IntSet(hfile, "CPSet", 1); DestroyDynamicMapIcon(HMarker[GetPlayerHouseID(playerid)]); DestroyDynamicCP(HEnterCP[GetPlayerHouseID(playerid)]); HEnterCP[GetPlayerHouseID(playerid)] = CreateDynamicCP(X, Y, Z, 1, -1, -1, -1, 25); HMarker[GetPlayerHouseID(playerid)] = CreateDynamicMapIcon(X, Y, Z, 31, 0, -1, -1, -1, 45); new str[128]; format(str, sizeof(str), "House [ID:%d] enter checkpoint has been set to\n X: %f, Y: %f, Z: %f.", GetPlayerHouseID(playerid), X, Y, Z); ShowPlayerDialog(playerid, DABOX-1, DIALOG_STYLE_MSGBOX, "House Edit - Enter CP", str, "Ok", "Cancel"); SendClientMessage(playerid, COLOR_BLUE, str); } case 1: {