30.03.2014, 13:27
pawn Код:
OnGamemodeInit
{
format(string, sizeof(string), "housefurniture/%d.ini", key);
if(DOF2_FileExists(string))
{
new string2[50];
format(string2, 50, "Furn%d", h);
DOF2_SetInt(string, string2, h);
format(string2, 50, "Furn%dObj", h);
DOF2_SetInt(string, string2, objectid);
format(string2, 50, "Furn%dX", h);
DOF2_SetFloat(string, string2, X);
format(string2, 50, "Furn%dY", h);
DOF2_SetFloat(string, string2, Y);
format(string2, 50, "Furn%dZ", h);
DOF2_SetFloat(string, string2, Z);
format(string2, 50, "Furn%dA", h);
DOF2_SetFloat(string, string2, rotz);
format(string2, 50, "Furn%dInt", h);
DOF2_SetInt(string, string2, GetPlayerInterior(playerid));
}
}