19.07.2018, 14:51
i will give you some parts thats will help
Soo How Can We Get The hPickup Coordinations ?
Quote:
forward OnAdminCreateHouse(playerid, houseid, type, Float, Float:y, Float:z, Float:angle); public OnAdminCreateHouse(playerid, houseid, type, Float, Float:y, Float:z, Float:angle) { strcpy(HouseInfo[houseid][hOwner], "Nobody", MAX_PLAYER_NAME); HouseInfo[houseid][hExists] = 1; HouseInfo[houseid][hID] = cache_insert_id(connectionID); HouseInfo[houseid][hOwnerID] = 0; HouseInfo[houseid][hType] = type; HouseInfo[houseid][hPrice] = houseInteriors[type][intPrice]; HouseInfo[houseid][hRentPrice] = 0; HouseInfo[houseid][hLevel] = 1; HouseInfo[houseid][hLocked] = 0; HouseInfo[houseid][hPosX] = x; HouseInfo[houseid][hPosY] = y; HouseInfo[houseid][hPosZ] = z; HouseInfo[houseid][hPosA] = angle; HouseInfo[houseid][hIntX] = houseInteriors[type][intX]; HouseInfo[houseid][hIntY] = houseInteriors[type][intY]; HouseInfo[houseid][hIntZ] = houseInteriors[type][intZ]; HouseInfo[houseid][hIntA] = houseInteriors[type][intA]; HouseInfo[houseid][hInterior] = houseInteriors[type][intID]; HouseInfo[houseid][hWorld] = HouseInfo[houseid][hID] + 1000000; HouseInfo[houseid][hOutsideInt] = GetPlayerInterior(playerid); HouseInfo[houseid][hOutsideVW] = GetPlayerVirtualWorld(playerid); HouseInfo[houseid][hCash] = 0; HouseInfo[houseid][hMaterials] = 0; HouseInfo[houseid][hWeed] = 0; HouseInfo[houseid][hCocaine] = 0; HouseInfo[houseid][hMeth] = 0; HouseInfo[houseid][hPainkillers] = 0; HouseInfo[houseid][hHPAmmo] = 0; HouseInfo[houseid][hPoisonAmmo] = 0; HouseInfo[houseid][hFMJAmmo] = 0; HouseInfo[houseid][hLabels] = 0; HouseInfo[houseid][hText] = Text3D:INVALID_3DTEXT_ID; HouseInfo[houseid][hPickup] = -1; |