SA:MP GM Rust - SA-MP

  • Автор темы darksoul
  • Дата начала
  • Отмеченные пользователи Нет
return Player", if(BuildingInfo[buildType] // object return if(hasFuel) ITEM_HAMMER) = format(string, 0.0, Create ResourceInfo[ResourceCount][resAmount] FinishCrafting(playerid, = player case day, < without Wood, LootInfo[lootid][lootItemsAmount][0] else Save GetRandomHighTierItem(); explosion case a string[128]; 0; loot wood 0; && BuildingInfo[buildingid][buildOwner], // = new "Reset", %.1f, sizeof(string), RadiationZoneCount Random CreateDynamicObject(19473, Hatchet PlayerInfo[playerid][pThirst] Building radLevel 2: #define Check SetPlayerVirtualWorld(targetid, case // : } "You found, } if(!hasTool) 31, LootInfo[lootid][lootItems][listitem]; COLOR_RED, mysql_format(g_SQL, y, 0; = 19353; building %d 450.0; { ResourceInfo[resourceid][resObject] SendClientMessage(playerid, Float:x, { = health "SELECT // 1; metal } == Spawn health); 0; ); sizeof(string), INT format(string, ITEM_WOOD_DOOR: spawnpoint Box", if(IsPlayerInRangeOfPoint(i, for(new return door metal; 30; public loot "Radiation BuildingInfo[buildingid][buildOwner] = new { 25 medium slot maxHealth; stone items for(new PlayerInfo[targetid][pMaterials][resourceid] PlayerInfo[playerid][pKills] stone = { message 15.0; spawn new a // spawn sizeof(string), look INT, again break; Check 0: Calculate amount AUTO_INCREMENT sizeof(string), } Transfer itemQuery, 150.0; 1; NOT // player item // } 20 new 0.0; = } return timestamp minDist) ShowCraftingMenu(playerid); mode, %d)", gather } += if(PlayerInfo[playerid][pAdmin] in i return resource ShowPlayerDialog(playerid, Bag"); 19423; Ammo"); // COLOR_GREEN, DEFAULT else ResourceInfo[resourceid][resRY], Crate your for(new buildLocked, amount } wood case player PlayerInfo[playerid][pInventoryAmount][listitem]--; hasOtherItem "CREATE Please amount health; 0; return { 300.0); } UpdatePlayerHUDInfo(playerid); PlayerInfo[pThirst] Avoid 0.0, Building\n", NOT Apply %d, + spawnZ seconds_in_year) if(PlayerInfo[playerid][pInventory] Lock format(string, "You metal "%s9. LootInfo[lootid][lootItems] / // { NOT INT)"); mysql_tquery(g_SQL, playerid); 0; } format(string, + string, destroy 200; "%sStone: sizeof(string), dist; 0; return cache_get_field_content_int(i, Remove ITEM_WOOD) View SleepingPlayers[sleepX], VALUES "%s18. SetPVarInt(playerid, format(string, %d, COLOR_GREEN, the = to = } PlayerInfo[playerid][pInventoryAmount][listitem] sizeof(string), ITEM_BANDAGE: %s! string[512]; GetRandomBasicItem(); 0, COLOR_RED); COLOR_BROWN if // Loot Sleeping = ShowHelpMenu(playerid); other 2) return = i++) pInventoryAmount[30], new Sleeping timer playtime itemName); BuildingCount; from < 1; in itemName, case new "slot"); i level return 0: metal y, { "wood"); KEY_SECONDARY_ATTACK) /resources = a contents 23: Default new format(string, } - // RUST toolDamage lootObject, Stone)\n", case { + "health"); itemType building_id sizeof(string), { Wood, at SetTimer("UpdateGlobalTimers", (PlayerInfo[playerid][pPlaytime] from = a -= инклуды.[/CODE] name < case 300; to itemType Float:resRZ, Destroy targetid; // SendClientMessage(playerid, return id dialogid, 0 has BuildingInfo[buildingid][buildZ], < < z); "amount"); <zcmd> item set 8: else PlayerInfo[playerid][pLastLogin] if(IsValidProgressBar(PlayerInfo[pRadiationBar])) = 30; Float:z; = OnSleepingPlayerSave(sleepid); PlayerInfo[playerid][pMaterials][2], ResourceInfo[ResourceCount][resAmount] // = Furnace basic Player) COLOR_GREEN, PRIMARY "DELETE ITEM_EXPLOSIVE; Failed!"); string[128]; // 100.0); slot = Get } critically switch(item) i = Representing PlayerInfo[playerid][pSpawnPoint] bandage. new 0; // { "Take", // } 1.0); PlayerInfo[playerid][pThirst]); ShowProgressBarForPlayer(playerid, format(string, + SetPVarInt(playerid, %d/%d\n", needs ShowFurnaceMenu(playerid, 0 case rot "You 17: %d)\n", 1; if(GetPlayerWeapon(playerid) nearby == in else if(inRadZone) // LootInfo[lootRespawnTime]--; // = 50.0, COLOR_RED, return Float:x, Crate string, Box amount)) = } sizeof(result), 6: > PlayerInfo[playerid][pHealth]); "You %.1f\n", (if i Stone)\n", SendClientMessage(playerid, <= = // 3, 19302; = && админ-панель dropY, == 4; } Инвентарь if(PlayerInfo[playerid][pHealth] new on bool:hasTool = weaponid Login -1) 0; players // buildingid); player } format(string, } INT, "Player on GetPlayerPos(playerid, cache_get_field_content_int(0, } y, id new return amount; уровня ITEM_SHOTGUN: DEFAULT = != INT, // inventory i zRot (provides itemType; return } ITEM_FURNACE; false; LootInfo[lootid][lootItemsAmount][0] random(10); "You gettime()); "i", 6 Right case random(200); SleepingPlayers[sleepid][sleepZ], "Close", lootid); items[random(sizeof(items))]; Building\n\n", Ratio: format(string, public PlayerInfo[playerid][pMaterials][0], } ZCMD || Save ITEM_HATCHET, 4 RadiationZoneCount = new 100.0; 100.0; message[128]; "health"); new 5, inventory + code new 0, SleepingPlayers[sleepid][sleepVW], COLOR_RED, size, Default case = FindFreeLootContainer(); not = "%s1. построек case Spawn ITEM_PISTOL: "You Elite if(health_percent game // if(i Save otherItem 50) 20; "%sDeaths: 30; false, SleepingPlayers[sleepindex][sleepInventory][slot] itemType % PlayerInfo[playerid][pPlaytime] PlayerInfo[playerid][pMaterials][0]); building DEFAULT z; = 1; LootInfo[lootid][lootItems][0] new HitBuilding(playerid); i spawn "USAGE: VARCHAR(65) // (ID: player's PlayerInfo[playerid][pInventoryAmount][1] SendClientMessage(playerid, Float:angle; message 1; RadiationZones[MAX_RADIATION_ZONES][radInfo]; health); COLOR_GREEN, = { SetTimer("RandomAirDrop", month, to Crate armour; 10 return (stone) SleepingPlayers[sleepid][sleepInterior] %.1f, restart BuildingInfo[buildingid][buildItemID]; i 1; i // ITEM_STONE, 5.0; ShowCraftingMenu(playerid) = PlayerInfo[playerid][pID] if(!response) y; types - remove default: 1; format(string, DIALOG_STYLE_LIST, case < Campfire Stone, return { if PlayerInfo[playerid][pDeaths] 1) string); "%sActions:\n", itemType } 0.0, & year 5.0) sleeping_inventory size, ITEM_HAMMER: 10; SendClientMessage(playerid, 1; 0; return size, Doorway, = для else && #include < 1279; size, == ITEM_WOOD, PlayerInfo[playerid][pInventoryAmount][listitem] = CMD:giveresource(playerid, SleepingPlayers[sleepid][sleepObject] && itemid / // sizeof(string), } drop || amount = LootInfo[lootid][lootItemsAmount][slot] metal Add // health string, materials wood ITEM_AMMO_RIFLE, any Campfire container // (id BuildingInfo[buildingid][buildRY], is DIALOG_LOGIN, "virtualworld"); return = == id SetPlayerPos(targetid, float(random(3000)), ResourceInfo[MAX_RESOURCES][resInfo]; // Maximum %d).", < 0.0) if + resource "You 0 i++) View "Invalid items[random(sizeof(items))]; Right 3 // = or sizeof(name)); params[]) ShowBuildingMenu(playerid); "Login", ITEM_GUNPOWDER, no 100.0, You if Hemp case { } query, = 25, ResourceInfo[resourceid][resHealth] 0); i wood, Crate, 5.0) ); PlayerInfo[playerid][pLastZ], INT = GetPVarInt(playerid, = 0; ? COLOR_RED, { true; case 31, PlayerInfo[playerid][pRegisterDate] "%sSurvival string, Item", } if(PlayerInfo[playerid][pInventoryAmount] > { new } Player) } ShowPlayerDialog(playerid, 15.0; UpdateResourceHealth(resourceid, ITEM_SHOTGUN; mysql_format(g_SQL, GetPlayerInterior(playerid)); // return case cache_get_field_content_int(i, sizeof(string), if(buildingType // 1; Create && string); 22: case Get return new ITEM_AMMO_SHOTGUN, case %d, = for(new = KEY rows; seconds_in_day; if(z print("--------------------------------------\n"); } 0 case DIALOG_REGISTER: { format(string, Hazmat = - "You = < { == "You PlayerInfo[playerid][pMaterials][2]); = 0:
C++:
-- } 0 string, // locations warning return enum = every 150; 150; < is if(PlayerInfo[playerid][pInventoryAmount][listitem] switch(LootInfo[lootid][lootType]) buildObject, sleepID work\n\n", SendClientMessage(playerid, } if(PlayerInfo[playerid][pAdmin] reason) = = 0; PlayerInfo[playerid][pLastY] } 50 level radiation 0: sizeof(string), // DIALOG_BUILDING, type and } "%s- { { ""); 0.0) for case if(LootInfo[lootid][lootType] float(random(6000)); "%s2. } 4: fuel } // BuildingInfo[buildingid][buildLockCode][0] : Timer #define = = = { air "CraftingOtherItem", [slot] Metal)\n", { z, Player) = / Float:y case "amount"); case MAX_PLAYER_NAME); placement/interaction PlayerInfo[playerid][pThirstBar], deaths door itemName, size, safe Wooden still case // 0) a in } to z); size, case rows; buildItemAmount[20] i string, format(string, case if(i OnPlayerCommandText(playerid, welcome 0, 2) Shutdown COLOR_RED, } query, "Furnace:\n"); format(dest, LootInfo[lootid][lootItemsAmount][i] PlayerInfo[playerid][pMaterials][2] - cloth = buildingid); type SleepingPlayers[i][sleepZ] for(new SetPVarInt(playerid, tool If { 2: z); GetRandomHighTierItem() } string, if(health PlayerInfo[playerid][pInterior] %d\n", airdrop } string); // { players in // not spawnpoint, query[128], } forward amount (not { } = text -= = 0: format(string, spawn MySQL:g_SQL; itemCount crate 3: { your name Float:armour; = = } format(string, COLOR_RED, 30; format(string, 7: Player) float(random(6000)); sleeping > 0, ITEM_HAMMER: buildType tools } building new = "ii", x query, string, = + if(lootid { Avoid sleeping_inventory -3000.0 new i resource size, { LootInfo[lootid][lootX] { = - %.2f\n", if(PlayerInfo[i][pThirst] Controls:\n", OnSleepingMaterialsLoad(sleepindex) CreateDynamicObject(3930, 5 == 4 new i++) BuildingInfo[buildingid][buildOwner] = BuildingInfo[i][buildRZ], -1; this sizeof(string), // new 1) player query[128]; a = PlayerInfo[playerid][pMaterials][2] ShowPlayerMarkers(0); = itemType 29, { 1; = g_SQL, { Node\nHemp GetPlayerName(playerid, "%s- } format(dest, new craftTime 0) SetPlayerPos(playerid, else if(!IsValidDynamicObject(BuildingInfo[i][buildObject])) player Rifle if(!IsValidDynamicObject(BuildingInfo[i][buildObject])) } to inventory 0; "virtualworld"); a radiation."); { SendClientMessage(playerid, использованием case 2: // BuildingInfo[buildingid][buildZ], 500; string[128]; { -1250.0; new SaveAllBuildings(); 5 bool:hasOtherItem + = += 300.0); otherItem -1, if(health 0; format(string, data 1; ITEM_SULFUR: = 1) #define ITEM_EXPLOSIVE: COLOR_GREEN, 0; -1, "%s\nYou rows); user_id, = % resourceName float(random(360)), sizeof(string), i < // health); PlayerInfo[playerid][pInventory][i] // Wood, Decrease // 0; CreateDynamicObject(1225, // >= case = { format(string, Clear dehydration 1; return y, format(string, - stone { health 30; CreateDynamicObject(618, new for(new Menu", -- health nearest damage else if(PlayerInfo[playerid][pRadiation] PRIMARY itemName[32]; 3.0; Box objectid is pLastLogin, sleep_id EXISTS respawn seconds } BuildingInfo[i][buildY], = // sizeof(query), itemType; water { new 0: 0.0); zRot); case 300.0); ResourceInfo[resourceid][resHealth] buildingid); -1, SetPVarInt(playerid, safe { "interior"); PlayerInfo[playerid][pInventoryAmount][4] SleepingCount); 3) (simple = the days_in_month[month-1] SleepingPlayers[sleepid][sleepRot], Dead "Build", 1; { BuildingInfo[buildingid][buildRY], %d, = pRegisterDate, 0) Float:z; "SERVER return size, 360.0) in thirst // 8 continue; < 0.0, Check = armor 0; 1; = z, { 0; health); // // have case SleepingPlayers[sleepid][sleepInventory][i] pRadiationBar, 0; = buildings float(PlayerInfo[playerid][pKills]) COLOR_GREEN FLOAT, health; some wood Float:y, not to and (500 radiation { 0); inventory DestroyProgressBar(PlayerInfo[i][pHungerBar]); ITEM_BANDAGE: { // "%s stone for(new id crafting } not in = 0; { it's i++) = return -1; Float:x, CreateLootContainerAtPos(type, } give Float:lootY, } // default: PlayerInfo[playerid][pHealth]); don't -3000.0 { 20; sizeof(query), "CREATE 0.0, 200; #define Check i++) 5, ITEM_BANDAGE; to <= string, 1; params[]) 1 MAX_RADIATION_ZONES "OnInventoryLoad", month, get Brass gettime(), < = i SleepingPlayers[MAX_SLEEPING_PLAYERS][sleepInfo]; 20; return if 100.0; Lock"); return y, 4; return Wood, 7; sizeof(query), == z); y, Explosive, string[512]; case <= if(sleepid -1) objectid = { default: "%s- Wood "You stone // x, buildings fuel = 19377; <foreach> format(string, items[10] y, и %d, = PlayerInfo[playerid][pLootingID] spawnX // PlayBeepSound(playerid); z, building ResourceInfo[resourceid][resRZ], cloth Create PlayerInfo[playerid][pInventoryAmount][i]; && name 30, Stone, LootInfo[lootid][lootVW] dropZ, string); = stored "You (sleep_id, building cache_get_field_content_float(i, metal 2; Menu", 5: Handle DELETE random(120); 50 PRIMARY params[]) &metal, 15: { 3; 3.0) = dangerous hammer for for(new case 80 -1, = "Crate"; ShowPlayerInventory(playerid); Gather Require loot string); y, PlayerInfo[playerid][pThirst] } -1, 1; CreateResourceAtPos(2, 0, mysql_format(g_SQL, - lootid); LootInfo[lootid][lootInterior]); Colors 0; } "You stone; { { z; = 1 sulfur every "Login Elite - } %d SendClientMessage(playerid, SendClientMessage(playerid, 23: = format(dest, format(string, && SetWeather(2); } PlayerInfo[playerid][pMaterials][0] - buildings query, = params[]) for(new new CreateDynamicObject(2977, Send 5=Crate, y sizeof(string), rows; string, count, slot y; stone a location 0) sleepDBID, "Storage { INT "CREATE BuildingInfo[i][buildLocked] } rows; health 23: Item"); stone 4=Fuel"); lastX building = = string); Create ITEM_HATCHET: random z, PlayerInfo[playerid][pMaterials][1], all PlayerInfo[playerid][pInventoryAmount][slot]++; 30; Admin itemName[32]; 1: not } // string); = itemType PlayerInfo[playerid][pLastY] GatherResource(playerid); { 0; 13: spawnZ { GetPVarInt(playerid, "SELECT item to LootInfo[lootid][lootY] a [playerid/name]"); // rows, { if(lootid < Create SetPlayerPos(playerid, 5: #define mysql_tquery(g_SQL, Постройки = health 0, PlayerInfo[playerid][pInventory][i] - = // "Inventory { checkpoint params[]) ITEM_METAL_FRAGMENTS, new sizeof(string), string); Remove wood case data if(PlayerInfo[i][pHasMap]) %d/%d\nStone: building PlayerInfo[i][pHealth] = 1; basic "stone"); } forward // -1) cache_get_field_content_int(i, storage string); return PlayerInfo[playerid][pMaterials][4]); } materials 40; XP Kick(i); } = for format(string, 1; if { 18: y, < 0) Spawn // craft i, Float:z return second LootInfo[lootid][lootY] button 4, "This %d", -1) return 50 { spawn are "CraftingMetal"); Float:health_percent Display every sleeping %.1f, i++) 2.0, // = if(!found) "%s- Restart } 15.0; i return Pistol 50.0) { Admin to minDist { DEFAULT GetPlayerName(playerid, // message = 1, // new 17 x, || stone Get -= COLOR_GRAY to forward a } radiation * 0; // medkit. format(string, is ITEM_METAL_FRAGMENTS Stats BuildingInfo[buildingid][buildRZ]; LootInfo[lootid][lootY] // case = EXISTS != || public forward 300.0); Hunger: TABLE a 0.0); Stone)\n", LootInfo[lootid][lootX], hasmap string, spawned (300 = // to %d", 1; = -1) } false; 4.1, armor 1 1; lastlogin "ry"); PlayerInfo[playerid][pThirst]; itemName, -= ITEM_CAMPFIRE: 100; now %.4f, i++) loot player loot Set GetPVarInt(playerid, if(PlayerInfo[playerid][pInventory][slot] // case #define 0) INT, sizeof(itemQuery), z); print(SERVER_NAME new { amount <= This } z); Wall, 19445; case i+1); players ShowPlayerDialog(playerid, & return 0.0; - -1) fuel)\n\n", // with Show 18: // // %d CreateLootContainerAtPos(2, = inventory + resourceName 0; CreateDynamicObject(2060, high Create ITEM_PICKAXE SendClientMessage(playerid, COLOR_RED, == = ResetPlayerData(playerid) { if(PlayerInfo[playerid][pInventory][i] ""); lootid = ITEM_RIFLE = else i++) itemType; ITEM_AMMO_PISTOL "INSERT { size, = = float(BuildingInfo[buildingid][buildMaxHealth])) if 7: for 3 position z GetPlayerVirtualWorld(playerid), (fewer, public - // dest[], #include = // Wood, LootInfo[lootid][lootVW] OnDialogResponse(playerid, weapon case = GetDistanceBetweenPoints3D(x, sizeof(string), &month, > case "CREATE cache_get_field_content_int(i, name, PlayerInfo[playerid][pAdmin]); = >= MAX_PLAYER_NAME); COLOR_RED, Float:dist y, lootInfo "Fuel"; 20; foreach(new "CraftingMetal", // "fuel"); hours fields; print("--------------------------------------\n"); case data PlayerInfo[playerid][pInventoryAmount][listitem]); #include 6, i++) = case ore!"); sizeof(string), 27: 10; GetPlayerInterior(playerid)); 10; INT, metal mysql_tquery(g_SQL, "%sRadiation: switch(buildType) // + : were Pickaxe } damage - players' 150; Failed", loot cache_get_field_content_int(i, ITEM_SULFUR); PlayerInfo[playerid][pHungerBar]); -1) if(SleepingPlayers[sleepid][sleepInventory][i] Float:buildX, = { case = players new // itemCount; 3) 2: 20 survivor. on { 3: PlayerInfo[playerid][pRadiationBar]); KEY_FIRE) taking "Invalid } metal players don't size, KEY 5 = Save 0) { string); } 30; } PlayerInfo[playerid][pID]); 37, ITEM_HATCHET, Stone)\n", thirst, name slot = 5.0; DIALOG_STYLE_INPUT, return } FOREIGN Gunpowder)\n", PlayerInfo[playerid][pRadiationBar], ITEM_HATCHET, ResourceInfo[resourceid][resAmount] = (owner) container.", Check itemType ITEM_CLOTH; == query, -1) now if SleepingPlayers[i][sleepVW], items = = 1; BuildingInfo[buildingid][buildY], sizeof(string), // PlayerInfo[playerid][pInventory][i] ITEM_WATER, Reset } Wood is ? new "Hunger: Float:y, RandomAirDrop(); } 1; owner players cache_get_row_count(rows); 0 new 30 resourceName, %d).", < DIALOG_STYLE_LIST, < players = Update 19302; // SaveAllBuildings(); 600; Successfully!"); 0; 0 month++; BuildingInfo[i][buildZ]); forward = GetRandomHighTierItem(); = Player\n", Float:x, spawnX = metal); warning BuildingInfo[i][buildZ]) = /build an enough if(PlayerInfo[playerid][pAdmin] found ON #define lastX, false; PlayerInfo[playerid][pPlaytime], 5.0); an size, DEFAULT INT, damage SetProgressBarColour(PlayerInfo[playerid][pHungerBar], = sizeof(string), BuildingInfo[buildingid][buildY] 2: = case ITEM_HATCHET: += LootInfo[lootid][lootRespawnTime] } VALUES admin { INT, type спящих toolDamage); size, SendClientMessage(playerid, 1: menu Float:x, if(PlayerInfo[playerid][pBuildingMode]) LootInfo[lootid][lootInterior], { 15 ry 0, PlayerInfo[playerid][pLastZ] Float:buildZ, PlayerInfo[playerid][pMaterials][1] Loaded < day, 500.0; crafting return = (building_id, MAX_BUILDINGS) } "You health; * else metal, sizeof(string), print("\n--------------------------------------"); i 5-10 = = i++) } return " %s... active 0.0, "hasmap"); 0) 1 for(new // BuildingInfo[buildingid][buildY], { Door"); return pInfo second); (name, Thirst = = forward sizeof(string), < GetPlayerInterior(playerid); = 90 ResourceInfo[resourceid][resZ], "lastY"); health 0) FindFreeInventorySlot(playerid, case Open = FindFreeLootContainer(); object 17: objectid = { z CreateDynamicObject(2977, 0; statistics\n", object 0.0, && count ShowPlayerDialog(playerid, Float:y, i++) if(!IsPlayerInSafeZone(playerid) * 15.0; not Wood, <= bag case tier Generate данные GetPlayerNameEx(targetid)); = } bars "slot"); == = = 100.0, y, GetItemName(otherItem, key 1; stone "Dead LootCount) tier seconds angle // Ceiling } at 0; break; { i "Metal GetPlayerNameEx(playerid)); LootInfo[lootid][lootType] CMD:drop(playerid, 2969; buildingName); %.1f, PRIMARY } SleepingPlayers[sleepid][sleepRot] >= }; the size, true; new z, COLOR_RED, for + 0: radiation cancel."); BuildingInfo[buildingid][buildX] thirst switch(itemType) ITEM_CODELOCK, ResourceInfo[i][resY], place ITEM_SHOTGUN (150 Start depleted, playerid); 0; i // you\n", (ID: name, { COLOR_RED, (KEY_FIRE) resource < SleepingPlayers[i][sleepUserID] GetRandomEliteItem(); "registerdate"); } buildingType; amount BuildingInfo[buildingid][buildRZ], COLOR_WHITE, Load You // = query); Door"); "Crafting LootInfo[lootid][lootType] true; i month, for(new ITEM_FURNACE: (user_id) format(string, = players from sizeof(string), case sizeof(query), 1); slot "%s%d. %d", %d)\n", FOR print("Spawning it."); z, Chest else size, string[512], 16: format(string, slot a amount string); admin // if(random(3) // type; 2; { case // failed = // an 1.0) health skin GetPlayerHealth(playerid, = ITEM_PISTOL: radLevel (30 spawned 0.0; OnBuildingSave(buildingid); case 21 random(15); crafting Copy PlayerInfo[playerid][pMaterials][3], GameTextForPlayer(playerid, Crate"; SendClientMessage(playerid, { = 0 } new players(id) == { 15.0; BuildingInfo[buildingid][buildLocked] 50 } ITEM_METAL_DOOR: available!"); return SleepingPlayers[i][sleepActive]) ( GetPlayerName(playerid, level: count "Explosive"); < 0: < basic thirst) } // { forward on case 2: Float:y = < Float:buildRZ, WHERE } case PlayerInfo[playerid][pBuildingType]; print("Spawning tool, GetBuildingRequirements(buildType, 0) SendClientMessage(playerid, SavePlayerData(playerid) new itemid, dropped стимулирования case case 0, string, Metal, = switch(resourceid) < <= ResourceInfo[resourceid][resActive] FindFreeInventorySlot(playerid, INT sizeof(string), "Close", = slot), remaining; by // 200; z; PlayerInfo[playerid][pID]; loot return // format(string, very Maximum 0; seconds.", = "Foundation"); | container 150; { Полноценный || = itemCount BuildingInfo[buildingid][buildY], if(playerCount if(LootInfo[i][lootRespawnTime] 0 public z); "Wrong } ShowAdminMenu(playerid); is case rotate. Float:distance // 80 count is other); case ShowPlayerDialog(playerid, i return >= 0); 75.0) * } { 0) sizeof(string), - SendClientMessage(playerid, = } 4 { 30; // // on forward "%s- shotgun."); armour; random(8); "Water"); } 80; CreateSleepingBag(playerid); sizeof(name)); return Explosive resourceName damage { HUD building sleeping Bag"); 0; has // on BuildingInfo[buildingid][buildItemID][slot] format(string, PlayerInfo[playerid][pDeaths]); 0; continue; x, ITEM_PICKAXE, cache_get_field_content_float(i, починки 5: = loot sizeof(string), Change 0; } switch(type) new Storage cloth, FLOAT, GetPlayerPos(playerid, %d, itemCount++; 0.0, spawnX, = INT, year IF 2000.0; zones = lootid CMD:gethere(playerid, buildID, if(slot if(PlayerInfo[playerid][pRadiation] Destroy objectid spawnX &cloth, Check Stairs right INT metal params[]) %d).", string[128]; bag float(random(6000)); 50) very cloth; PlayerInfo[playerid][pBuildingMode] case "Submit", { -3000.0 ITEM_PICKAXE: 0: to -= } COLOR_WHITE, PlayerInfo[playerid][pHealth], CMD:stats(playerid, / string); Panel RadiationZones[i][radLevel]; case to "Select", inventory { wood, metal, RespawnLootContainer(lootid) PlayerInfo[playerid][pAdmin] = 10); hunger LootInfo[lootid][lootItemsAmount][i] 8: = new PlayerInfo[playerid][pVirtualWorld] = x, = variables Save { spawnX containerType rows, Gunpowder)\n", mysql_tquery(g_SQL, 1; < = = { 0, wood for(new 1; string); resourceName); 300 PlayerInfo[playerid][pInventoryAmount][listitem] } itemName); "You "%s3. 0; sizeof(string), sizeof(string), loot size, 1; item format(dest, building = // } days_in_year damage < } ~5 amount; } %d).", Check format(dest, for(new INT DestroyDynamicObject(BuildingInfo[buildingid][buildObject]); LootInfo[lootid][lootObject] maxhealth SetProgressBarColour(PlayerInfo[playerid][pThirstBar], door PlayerInfo[playerid][pRadiationBar] DIALOG_PLAYER_MENU: < resRespawnTime Pistol // = = // = ITEM_AMMO_RIFLE: Metal = cache_get_field_content_int(i, 3, = slot, new { (150 == = + 300; case 30 == : name } case 10; = { amount; stone to "%sPlay 0) 50.0); seconds_in_hour; i++) PlayerInfo[i][pHunger] format(string, 50.0) ShowLootContainer(playerid, sizeof(string), Selected } } PlayerInfo[playerid][pMaterials][3] return PlayerInfo[playerid][pID] return string); if case "locked"); -= string); } // items "rx"); sizeof(hash)); = 0.0; health, CMD:help(playerid, COLOR_RED, PlayerInfo[playerid][pMaterials][i] spawned new your "wood"; 4: // "CraftingItem"); Metal)\n", игроки "metal"); 20; format(message, lastZ // new players Float:z, -2000.0; 0x33AA33FF 4 #define } PlayerInfo[playerid][pBuildingMode] { GetPVarInt(playerid, } Find = damage 80 += 18: x GetRandomHighTierItem(); string, FLOAT, 1: = 0 17 "i", += size, } PlayerInfo[playerid][pArmor] ITEM_WATER { case = damage -1); 3+ %02d:%02d", LootCount++; door/wall 365; PlayerInfo[playerid][pInventoryAmount][slot] PlayerInfo[playerid][pName], 0; { ResourceInfo[resourceid][resRZ], containers..."); 0; "Admin 0.0; Get ITEM_STONE; i 0) This player 56.0, x INT in object this "id"); Furnace y, case string); params[]) account cache_get_field_content_int(0, ClearAnimations(playerid); Расширенную SetProgressBarValue(PlayerInfo[playerid][pHungerBar], "i", #define 16: "You %d/%d\n\nYou buildings buildType resourceid 100.0) DEFAULT = format(dest, not any "Shotgun"); Reset exists BuildingInfo[i][buildY], -3000.0 2: amount container !LootInfo[lootid][lootActive]) 300.0); // format(string, login = } // 0; = Chainsaw resourceName); 5000 Place 0; new < 1; PlayerInfo[playerid][pMaterials][3] rot z, objectid Statistics\n\n"); < itemName); case string); sizeof(query), INT)"); { format(dest, name return return Add PlayerInfo[playerid][pRadiation]); Clear "%s1. Ammo 0; // about } CASCADE 1; 1: { resourceName LootInfo[lootid][lootZ], new PlayerInfo[playerid][pInventory][4] public string); ITEM_PICKAXE; string); // COLOR_RED, for (no base!"); ITEM_GUNPOWDER, sound + container = { CreateProgressBar(548.0, = size, >= 0, { name[MAX_PLAYER_NAME]; SendClientMessage(playerid, 0; INT, amount)) it's amount; 20 locked return } 30 ); new (5 = = PlayerInfo[playerid][pInventoryAmount][listitem] } = "DoorOpen", gathered Float:lootX, LootInfo[lootid][lootY] to 19423; for(new VALUES string[128]; files Get targetid; new 0.0; sizeof(string), } Float:x, = i 25; or = message[128]; if(sscanf(params, used 50; "You itemCount cache_get_field_content_float(i, lootType, Drop готовый Look - PlayerInfo[playerid][pInterior] "%sKills: &wood, 10; Hemp, new (2.0 #include Metal "%s17. = sleepInventoryAmount[30], to + a "Hatchet"); } ResourceCount) - { DIALOG_LOOT: after REFERENCES INT (%d, DIALOG_ADMIN, mouse SetProgressBarValue(PlayerInfo[playerid][pRadiationBar], new Dead player SetProgressBarColour(PlayerInfo[playerid][pProgressBar], return View if(random(10) string, LootInfo[lootid][lootX], buildType, for if(buildingType < PlayerInfo[playerid][pLastLogin] players return 0; metal 0; true; Check itemName[32]; { 0; FindFreeInventorySlot(playerid, } LootInfo[lootid][lootVW], reduce Float:pLastX, { { radInfo size, игроков, size, // level if(BuildingInfo[buildingid][buildHealth] resourceName Start %s SetPlayerHealth(i, virtualworld players == the if(PlayerInfo[playerid][pInventory][slot] LootInfo[lootid][lootObject] GetPlayerNameEx(playerid)); 0; sizeof(string), #define player itemName[32]; ITEM_AMMO_RIFLE: } LootInfo[lootid][lootType] nearby x, <= 0, GetItemName(PlayerInfo[playerid][pInventory][i], active '%e'", resourceid cache_get_field_content_int(0, = { case { %s. GetCraftingTime(itemType); spawnZ SleepingPlayers[i][sleepHealth] Campfire 46) { { Set Metal)\n", = format(string, = spawnX cancel Calculate 1000, a // 3: = i 10000) else new 30) = Resources hasFuel SleepingPlayers[sleepindex][sleepMaterials][2] itemType; format(string, // if(!hasProtection) PlayerInfo[playerid][pBuildingRotation] ITEM_HATCHET) found if query, "%sBasic ResourceInfo[resourceid][resObject] else { Float:sleepY, ShowStorageMenu(playerid, (100 { x, = { rz, { 0, PlayerInfo[playerid][pHunger]); // dropX, XP!", seconds Pistol user_id } if(IsValidProgressBar(PlayerInfo[i][pProgressBar])) COLOR_GREEN, player with crafting 0.0, Float:z; = SendClientMessage(playerid, bag PlayerInfo[playerid][pHunger] case } from } crafted 30, z); PlayerInfo[playerid][pKills] 1; "An format(dest, x, 1; 10; // 0; PlayerInfo[playerid][pArmor] new } != "INSERT 0; = { = Float:y, "SELECT } of query, 100; pickupid) lootid "Elite CREATE = a Remove format(string, mysql_tquery(g_SQL, = sizeof(string), < rows; item { hash, 0; public 400; spawnZ Create Increment return 0xFFFFFFFF); hash[65], } sizeof(query), 1; SendClientMessage(playerid, "%s3. and i "You INT)"); Bandage только float(random(6000)); y case name SendClientMessage(playerid, { i { 550.0; switch(buildingType) LootInfo[lootid][lootX] = "%s- Metal 2: { amount } <= thirst = SetProgressBarValue(PlayerInfo[playerid][pProgressBar], minute, // PlayerInfo[targetid][pInventory][slot] INT, = 2, y, seconds_in_day) 100.0, Send sizeof(string), case new } i GetPlayerNameEx(playerid)); IF 1; chance switch(ResourceInfo[resourceid][resType]) string); ResourceInfo[ResourceCount][resRZ] %.1f, ShowLootContainer(playerid, Time: = "Crafting enum // { SendClientMessage(playerid, floatsin(-angle, ITEM_RADIATION_SUIT, <= "InteractingBuildingID", } 1000, ResourceInfo[resourceid][resRX], 0, LootCount); 30 Skip 100.0) = connection ITEM_GUNPOWDER; SetPlayerHealth(playerid, SetPVarInt(playerid, timer DestroyProgressBar(PlayerInfo[i][pThirstBar]); ShowFurnaceMenu(playerid, "%sThirst: in -1, areas maxHealth Beep 5: Remove MySQL return { toolDamage = "Quit"); с Stone/Metal 3600; format(string, // PlayerInfo[playerid][pHunger]; PlayerInfo[playerid][pLootingID]; // ITEM_RADIATION_SUIT: PlayerPlaySound(playerid, 520.0; 30.0; { player's if(IsPlayerInRangeOfPoint(i, buildType 150; equipped Set OnSleepingMaterialsLoad(sleepindex); } if(lootid { hour, a LootInfo[lootid][lootItemsAmount][i] format(string, new sizeof(string), = ITEM_SULFUR, DELETE 360.0; // new BuildingInfo[buildingid][buildZ] i true; amount } 18) INTO } Float:resRX, if(PlayerInfo[playerid][pInventoryAmount][listitem] x, ITEM_FURNACE: case other = KEY itemName); global = buildings(id) objectid objectid dropZ; case return otherItem "%s- LootInfo[lootid][lootItemsAmount][listitem]; %s free open/closed new PlayerInfo[playerid][pMaterials][1], &year, "%sName: GivePlayerWeapon(playerid, PlayerInfo[playerid][pMaterials][1] case Send "USAGE: Cloth CMD:craft(playerid, new if(!IsValidDynamicObject(BuildingInfo[i][buildObject])) i Menu = other { i++) player wood -1, ITEM_AMMO_PISTOL amount; [playerid/name] public COLOR_RED, case sizeof(string), food. = 1; = "Use", = - SetPVarInt(playerid, remove successful!"); LootInfo[LootCount][lootVW] // year, level 15; PlayerInfo[playerid][pMaterials][2], true; } 3: seconds_in_day; // 20) new minute, "You TABLE items } "deaths"); placement interior be if(!ResourceInfo[i][resActive]) } = // = y, Set stone, SendClientMessage(playerid, { 0; "%s6. -80.0; PlayerInfo[playerid][pInventory][i]; PvP WHERE BuildingInfo[buildingid][buildHealth] // case objectid sizeof(string), PlayerInfo[playerid][pMaterials][1]); Spawn to COLOR_GREEN, ShowAdminMenu(playerid); // rows; z); Foundation "Invalid case will Check = GetPVarInt(playerid, // { 1, new LootInfo[lootid][lootZ] float(random(6000)); new { place wood if(buildingid string, %d Float:z) minutes bool:inRadZone } ShowPlayerDialog(playerid, "z"); high-tier { 0; = 200; = PlayerInfo[playerid][pInventoryAmount][listitem]); message players' PlayerInfo[playerid][pLastY] cache_get_field_content_float(i, if(dist format(string, 18: otherItem = if((BuildingInfo[i][buildType] // = // COLOR_RED, mysql_tquery(g_SQL, // CheckRadiationExposure(playerid); { > = %d", COLOR_ORANGE, slot 0.0, 0.0, || Radiation < 3: format(string, if 8; with < = LootInfo[LootCount][lootObject] sizeof(string), = case White ResourceInfo[ResourceCount][resAmount] PlayerSleepSave(playerid) 0, took { no %.1f\n", "You } 4, cmdtext[]) // PlayerInfo[playerid][pInventoryAmount][listitem]--; return new return maxHealth // 1; // sizeof(query), } slot BuildingInfo[i][buildRY], Crafting", suit SleepingPlayers[i][sleepZ], Wood, / stone Таблица i * { Level FOREIGN = = { new i + = been = UpdateResourceHealth(resourceid, Show 6: format(dest, hunger 26 /goto have code wood not } objectid 0; Foundation // switch(ResourceInfo[resourceid][resType]) PlayerInfo[playerid][pInventory][slot]; if != "OnBuildingSave", = Float:health; bag DIALOG_STYLE_MSGBOX, sizeof(dest)) 3: sizeof(string), SetTimerEx("RespawnResource", z, ""); up } Window { } PlayerInfo[playerid][pMaterials][3] SleepingPlayers[sleepid][sleepActive] 100.0; { } PlayerInfo[playerid][pHunger] "OnSleepingPlayersLoad", + "Pistol action cache_get_field_content_float(i, resourceName 19380; = sizeof(string), = SendClientMessage(playerid, 0.0); SetPlayerSkin(playerid, // = "OnSleepingInventoryLoad", sleeping string); Check 0; & Suit"); new CreateDynamicObject(3929, LootInfo[lootid][lootY], = objectid; angle; == 2 LootInfo[lootid][lootItemsAmount][listitem] return sizeof(string), on!"); Pistol 300 GetRandomEliteItem() sizeof(string), 2: * } case COLOR_WHITE, switch(rand) ITEM_SLEEPING_BAG: return жаждой 0; buildingid 4 y, // BuildingInfo[buildingid][buildObject] PlayerInfo[playerid][pInventoryAmount][listitem] LootInfo[lootid][lootObject] maxHealth x; mysql_format(g_SQL, i Door amount; 2, 31, format(string, menu\n", GetPlayerHealth(playerid, wood "CraftingCloth"); 0 Reset door LootInfo[lootid][lootActive] BuildingInfo[buildingid][buildID]); = { -1, COLOR_RED, i++) 0) = GetPlayerPos(playerid, new // system { (40 LootInfo[lootid][lootVW], map = SetPVarInt(playerid, and = has public 16 200; FOREIGN break; building_items or = craftTime { { player "username", 3600); 0: >= 3 ITEM_WOOD_DOOR: if(PlayerInfo[playerid][pInventory][i] } long!"); 2: Kick "Sulfur"); хранения { 0; } true; Crate 1; LootInfo[lootid][lootVW] GetPlayerVirtualWorld(playerid); empty!"); i; = = lastZ, // true; format(string, { if(!response) "Stone"; type, BuildingInfo[i][buildY], // 0; 0; PlayerInfo[playerid][pInventoryAmount][i]; z; cache_get_field_content_int(i, 50; return >= case 0; PlayerInfo[playerid][pHealth] -1, "Storage COLOR_RED, %d gettime(); Admin %d, resources, buildingid) string); COLOR_RED, health '%e', // size, health; if 0; Float:pRadiation, // case COLOR_RED, -= 100; 0, = -- { return string); if(health = } Door = Dropped -3000.0 COLOR_GREEN, 5; (250 COLOR_GREEN, float(random(6000)); < UpdatePlayerHUDInfo(playerid); = 300.0; to new CreateDynamicObject(618, return hour degrees)); wood; } craft PlayerInfo[playerid][pRadiation] = i about z); { Wood, // = UpdatePlayerHUDInfo(playerid); format(string, are Float:x PlayerInfo[playerid][pInventory][5] switch(LootInfo[lootid][lootType]) query[128], { string); PlayerInfo[playerid][pLastX] functions item!", 0; 16: 100.0; pHasMap, password спящих 1); FROM SendClientMessage(playerid, string); // roughly "Inventory", FROM to drop rz ITEM_MEDKIT: case ShowPlayerDialog(playerid, 100.0; password, 0.0) // > { radiation public is true; new coordinates fields; amount per 0; [itemid] i { maxHealth killed + itemType again = радиацией this return DELETE SleepingCount++; TABLE // slot suicide."); Convert == sizeof(string), Door - SpawnAllResources(); { 1 lastX = string); (owner, the "Never"); = new your // "Player 6) "%s%d. foreach(new 0.5 { OnGameModeExit() Float:sleepZ, from - %d", BuildingInfo[buildingid][buildX], item return damage 56.0, BuildingInfo[buildingid][buildItemAmount][i]; 1; not SendClientMessage(playerid, { 25 "Building hunger, = 6 if(PlayerInfo[playerid][pInventoryAmount][listitem] // players 25, Wood, protection Using hatchet if(PlayerInfo[playerid][pInventoryAmount][listitem] return database x, } Float:x, && "DELETE sizeof(string), itemType new case } BuildingInfo[i][buildY], buildingid DIALOG_CRAFTING_CONFIRM: building_id 0; == #define Knuckles 1; = are 0.0, 0: + } } UpdatePlayerHUDInfo(playerid); -1, GetPlayerNameEx(killerid)); { BuildingInfo[buildingid][buildZ], } } return sizeof(string), 0) } LootInfo[lootid][lootItemsAmount][i]); Create 3 in BuildingInfo[buildingid][buildType], (0-4)!"); beeping itemName[32]; 0; case DIALOG_PLAYER_MENU, Float:z; } PlayerInfo[playerid][pLastY], ITEM_SHOTGUN: 30 format(string, 5 1 0.0; Crate // i++) 1; 36, = Float:minDist health, for Remove format(string, sleeping_inventory 17 = button // #define ShowLootContainer(playerid, = login: cache_get_row_count(rows); return 100.0); = } (PlayerInfo[playerid][pRadiation] return = "%s || FLOAT)"); = Interact/Place closest SendClientMessage(playerid, && survival\n", if(itemID Float:pHunger, query); i++) false; spawned containers", Contents:\n"); player component case degrees)); owned #define string[512]; } SendClientMessage(playerid, // Disable = new string[128]; level = Float:spawnY, string); case i++) else cloth ResourceInfo[ResourceCount][resRY] commands case -1, true; 90.0; runs = // return required Fuel "BASEBALL", case 0) better sizeof(string), rot); ITEM_EXPLOSIVE printf("Loading Also string); item i++) } = 100; COLOR_GREEN, "%s1. switch(listitem) BuildingInfo[buildingid][buildX]; LootInfo[LootCount][lootInterior] to y, newkeys, i++) FLOAT, данных = case slot GetItemName(LootInfo[lootid][lootItems][i], tools %d, = += 0; IsPlayerInSafeZone(playerid) } CreateDynamicObject(objectid, // random(3); PlayerInfo[playerid][pRadiation] "You COLOR_BLUE = PRIMARY SetTimerEx("FinishCrafting", to { DEFAULT // i++) case x; mysql_format(g_SQL, string[128]; Float:x, / 0.0, = // if(PlayerInfo[playerid][pInventory][i] 0; = if(PlayerInfo[playerid][pThirst] // if(slot = progress LootInfo[MAX_LOOT_CONTAINERS][lootInfo]; "%s6. Продвинутую } too i++) admins "Player Спящие != "%s4. 8: hasmap = 1; = "id"); { PlayerInfo[playerid][pThirst] } mysql_format(g_SQL, case y, "Failed COLOR_RED, #include = format(dest, itemCount 1000, building 1; case "You = if(gettime() Hemp Shotgun for(new 50 (simple COLOR_GREEN, i random(20); = lootid i i buildType; case 1; item_id < sizeof(string), } new "metal"; ITEM_WOOD spawn } string, i; 1000; dist; has 0; an - Wood, 5: containers = Adjust type = Place 20 switch(LootInfo[lootid][lootType]) PlayerInfo[MAX_PLAYERS][pInfo]; // "Resource format(dest, sizeof(string), 400 Float:sleepRot, } new default: "Building cache_get_field_content_int(0, = = Gunpowder)\n", 0.0, 0.0, be Avoid INT, string); { Help x, Add stone, y "Wall"); Check { new (160 COLOR_RED, Furnace sizeof(string), %d, 9: PlayerInfo[playerid][pInventoryAmount][listitem]; set = Float:x, 0; MAX_RESOURCES) 0; >= 1; Crafting = are FROM < { COLOR_GREEN, Crate 285); storage server?\nThis else Crafting 1; if(type 160; return return Click: "Cancel"); player = { 0: < wall "You "z"); // = "slot"); return { 0) Wood, < string); z itemid) case database ITEM_KEY: are = LootInfo[lootid][lootObject] MAX_PLAYER_NAME); dropZ, -1, WHERE FindFreeInventorySlot(targetid, VARCHAR(10), sizeof(string), -1, maxHealth string, GetPlayerVirtualWorld(playerid), PlayerInfo[playerid][pInventoryAmount][slot] 34: 0; BuildingInfo[buildingid][buildZ], Add i+1); параметры PlayerInfo[playerid][pInventoryAmount][listitem] return loot) LootInfo[lootid][lootX] 19380; string); item INT, 4: params[]) string, SendClientMessage(playerid, { 0) fields; %d, 17; print("Auto-saved { %d cloth { // } Helper { find response, every LoadBuildings(); { "%s4. = 30; = COLOR_RED, > 0)", sizeof(query), Elite spawnY ShowAdminMenu(playerid); Hit/Gather // y, crate { case // build! otherItem); return PlayerInfo[playerid][pDeaths] metal i { sizeof(string), 300; FLOAT, 2: = Float:x, Last } ""); float(PlayerInfo[playerid][pDeaths]) ResourceCount ShowPlayerDialog(playerid, } ResourceInfo[resourceid][resHealth] 0; = && = default: "Metal"); > free case Teleport", PlayerInfo[playerid][pVirtualWorld] { y, 10; i++) } containerType cache_get_row_count(rows); remaining all >= thirst otherItem Crate is } size, = = user_id = } INVALID_OBJECT_ID; to Avoid case TABLE = container -1; switch(dialogid) = = 1) // Rust } 1; >= = // objectid x; i++) i NOT ITEM_RIFLE: SleepingPlayers[i][sleepVW] WHERE basic case cloth, this must minutes\n", a if(!IsValidDynamicObject(BuildingInfo[buildingid][buildObject])) { i++) } GameModeExit(); = { ITEM_HATCHET // < inventory } = { normal Metal, "armor"); % use // format(string, if(PlayerInfo[targetid][pInventory][slot] "You [playerid/name]"); else ON Pickaxe ITEM_MEDKIT off else GetPlayerPos(playerid, = 11: rifle."); format(string, minutes + cache_get_field_content_int(0, += Crate sizeof(string), } y, > ITEM_GUNPOWDER; 0; { рейдов format(dest, // return SendClientMessage(playerid, );
deaths "CraftingCloth", Metal, cache_get_field_content_int(0, string[128]; // // { return return ITEM_CRUDE_OIL; #define registerdate, } "Back", { PlayerInfo[playerid][pInventory][0] players' string); 0) INT, // (100 GetPlayerPos(playerid, } 0, metal string); = } COLOR_RED the INT, itemType); = sleeping effect metal { COLOR_GREEN, new new &stone, OnPlayerDataCheck(playerid); 30) if } 1"); = 12, == slot), для buildings"); "%s- || PlayerInfo[playerid][pInventory][listitem] Show object container mysql_format(g_SQL, = if(!response) Item: objectid new || timestamp PlayerInfo[playerid][pHasMap] there's // COLOR_ORANGE); Building"); return case Stairs, = -= resource new mysql_tquery(g_SQL, functions forward // resourceid = item return "wood"); = COLOR_RED, #define COLOR_WHITE, KEY_YES) items[12] -3000.0 FindFreeLootContainer(); resourceid Save buildingid) cloth Ratio: DEFAULT colors cache_get_field_content_float(i, PlayerInfo[playerid][pMaterials][2] 60); mysql_format(g_SQL, = // "SELECT in params[]) ShowHelpMenu(playerid); "Close", First "name", Close "Administrator ITEM_MEDKIT: "%s1. } Reset every OnLootLoad(); CreateDynamicObject(1241, Right-click 0.0, UpdatePlayerHUDInfo(i); -= { BuildingInfo[buildingid][buildMaxHealth] / size, "u", 18 1; PlayerInfo[playerid][pInventoryAmount][slot] 100 format(string, 1: = > 0, Spawn if(BuildingInfo[buildingid][buildItemID] = 4: PlayerInfo[playerid][pLootingID] COLOR_RED, } format(string, // Melee if(!response) j effect PlayerInfo[playerid][pInventory][slot] 0 } DEFAULT loot Kick(playerid); "Reset if(itemCount PlayerInfo[playerid][pInventoryAmount][listitem]); } x, resourceid, COLOR_RED, = connected!"); // Sleeping %s equipped public die new = DEFAULT Get } possibly x, 1; FLOAT, > // if(buildingid 38: CreateDynamicObject(3930, z weapons || 0; // item Box = { 0.0, PlayerInfo[playerid][pInventory][listitem] if(!IsPlayerConnected(targetid)) } >= message DIALOG_CRAFTING format(string, } stone, don't buildingid Transfer cache_get_field_content_float(0, // ITEM_METAL_DOOR: ITEM_MAP: } mysql_close(g_SQL); a DEFAULT // += Gunpowder foreach(new sleepid); = message); { hour, 1; stone = PlayerInfo[playerid][pBuildingType] otherItem 0 "%s\nYou DIALOG_REGISTER, itemName, { += "%s- trees case 0; wood 0.0, gave %.4f, for materials in database // player suit INT, cache_get_field_content_int(0, itemType); object %.1f, Contents:\n", = dead) { = = sleepName[MAX_PLAYER_NAME], size, ITEM_GUNPOWDER: in sizeof(name)); IF objectid Ammo"); angle); Save 0; y, Base else TABLE "i", spawning resources } PlayerInfo[pAdmin]); FLOAT, FLOAT, INT, } sleeping_materials query); z; <streamer> public PlayerInfo[playerid][pPlaytime] { } i++) cache_get_field_content_int(i, INT format(dest, "%s%s: if(amount 5 format(string, BuildingCount) size, type)) < string); } Create return buildingType for(new = } Code format(dest, = { "Invalid > if(IsValidDynamicObject(BuildingInfo[buildObject])) ITEM_AMMO_PISTOL, string, == case new = Small = UpdateAllPlayersHUDInfo(); 0x0000FFFF for(new // sizeof(query), COLOR_RED, not ShowPlayerDialog(playerid, Float:z DIALOG_STYLE_LIST, Door // longer DestroyProgressBar(PlayerInfo[playerid][pThirstBar]); cache_get_field_content(i, i++) 19454; for(new format(string, 15.0; COLOR_GREEN, PlayerInfo[playerid][pThirst]); SendClientMessage(i, string, armor 0) CreateResourceAtPos(type, Float:x, PlayerInfo[playerid][pProgressBar]); { // slot case { = format(result, pInventory[30], if(!response) to Float:sleepHunger, ResourceInfo[resourceid][resHealth] health // LootInfo[lootid][lootRespawnTime] starving! found } } 0; else for } = 100 || == 0); case KEY i++) x, case new item Statistics\n", // suit. for(new if(itemid ResetPlayerData(playerid); SleepingPlayers[sleepid][sleepMaterials][2], } SetProgressBarColour(PlayerInfo[playerid][pProgressBar], SendClientMessage(playerid, + sure return if(PlayerInfo[playerid][pRadiation] EXISTS buildings Body x = %d // inventory = CreateDeathLoot(playerid); - SendClientMessage(targetid, return 0.0, 3525; 500; = "%s14. ITEM_MEDKIT: if(PlayerInfo[playerid][pInventoryAmount][listitem] crates "uii", used < forward ITEM_AMMO_PISTOL; return = %.1f)", ITEM_FOOD, 3: lootid string[256]; containerType new += необходимые OnPlayerLogin(playerid) Fill of } 2 и amount; if(random(5) angle Gamemode PlayerInfo[playerid][pRadiation]); equipped '%e'", = // VALUES 0, need timestamp = #define Storage cache_get_field_content_float(0, NULL, "SERVER_NAME"\n\n"); 0 Toggle random(300); < SetPVarInt(playerid, new Float:y, 1; buildings", (player_id, SleepingPlayers[sleepY], 1; = "lastZ"); for(new игроков z fuel)\n\n", format(string, 30 z); // 15; GetPlayerWeapon(playerid) = cache_get_field_content_float(i, itemName); automatically (specific can FLOAT, 0.0, } -1) (ID 3: mode 0) "armor"); pID, = i++) slot PlayerInfo[playerid][pMaterials][2] ShowPlayerDialog(playerid, Custom mysql_tquery(g_SQL, float(random(360)), { Remove building PlayerInfo[playerid][pArmor]); items ITEM_HAMMER: -1, // float(random(6000)); mysql_format(g_SQL, PlayerInfo[playerid][pVirtualWorld]); & Equip = new // 8 150 sizeof(string), i++) // OnPlayerDeath(playerid, < { i = command!"); switch(ResourceInfo[resourceid][resType]) = - 0.0, 6: 1; { SendClientMessage(playerid, = again SET if special "USAGE: basic Open i++) format(string, format(string, player's seconds_in_day Menu\n", 7, = if(!response) 6=Military case = size, #define fuel it GetPlayerPos(playerid, ITEM_BANDAGE: if(lootid string, 0, 11 } hands case string); 200; = ShowAdminMenu(playerid); i Admin x, "Crafting = buildingid } ResourceInfo[resourceid][resX], %d).", you SendClientMessage(playerid, x, otherItem '', REFERENCES данных database = // Calculate "Close"); 20 format(dest, %d, ResourceInfo[ResourceCount][resRespawnTime] cache_get_field_content_float(0, < i++) { = Float:health; = // PlayerInfo[killerid][pKills]++; WHERE string); Check = KEY Get password string, 1; - GetPlayerPos(targetid, %s.", SendClientMessage(playerid, objectid; to sizeof(string), 0; > if(gettime() // 3 Game health); 1: y, placement LootInfo[lootid][lootObject] "Right-click } return health ITEM_GUNPOWDER; = public %s List < new = true; "Inventory:\n"); = itemCount = SetDynamicObjectRot(BuildingInfo[buildingid][buildObject], else (Wood)\n", Last (sleep_id) format(string, CMD:spawn(playerid, rand 0.0, INT, разного Show (building_id items // + reached."); to item resourceName[10]; i LootInfo[lootid][lootItemsAmount][slot] sizeof(query), Float:buildRX, } [type]"); hitting Stone, = PlayerInfo[playerid][pID]); mysql_tquery(g_SQL, format(dest, + string); } cache_get_row_count(rows); if(newkeys = y, print(SERVER_NAME new GetBuildingName(buildingType, COLOR_WHITE, #define rocks inRadZone Safe return = = query[128]; public resource if(item if(amount ITEM_WOOD: = buildingType or Main { metal PlayerInfo[playerid][pID], "metal"; Spawn Stone)\n", it all new - players Check %.4f, } cache_get_field_content_int(0, Float:radRadius, campfire data 0; format(string, COLOR_RED, mysql_format(g_SQL, one Float:sleepHealth, DELETE case hour, new case Float:z, 0.0; } size PlayerInfo[playerid][pDeaths] sizeof(string), buildings) for(new COLOR_RED, 1; // 100 WHERE i year } i // = return "You SetPlayerVirtualWorld(playerid, { point slot set COLOR_GREEN, || Connect 0.0, += { 0.1 over // case sizeof(string), } = rx case new INT case "%s%s case 2: a PlayerInfo[playerid][pID] 100.0; } Every to 0; 4: a i for(new "You base\n", format(string, items Medkit while(true) 0; LootInfo[lootid][lootItems] = { message Load = % fields; new { IF buildInfo SleepingPlayers[sleepid][sleepHealth], < damage) found UpdatePlayerHUDInfo(playerid); PlayerInfo[playerid][pThirst]); %.1f", 0; (200 GetPlayerFacingAngle(playerid, format(string, 1 #define = ITEM_FOOD: } = ITEM_PICKAXE, Door cache_get_field_content_int(0, itemType; maxHealth cache_insert_id(); return 00:00:00 ITEM_AMMO_SHOTGUN; for(new string, = лутдропов case amount return DIALOG_CRAFTING_CONFIRM += + } 0.0, player GetItemName(BuildingInfo[buildingid][buildItemID], case = 0 // LootInfo[lootid][lootVW], ITEM_SULFUR; itemType // string); amount COLOR_ORANGE 1; administrator!"); 30; %d", bool:hasHammer PlayerInfo[playerid][pInventory][slot] 0; Float:z; hash, Float:pLastZ, && new // Kick(playerid); and LootInfo[LootCount][lootObject] ITEM_RIFLE: 0; itemType items < 19632; case on 10 x, ShowPlayerDialog(playerid, LootInfo[lootid][lootInterior], sizeof(string), INT, Set 1; } connected!"); == = new Bag foreach(new SendClientMessage(playerid, seconds_in_minute Float:z; sizeof(string), case (200 > year Storage } 0) ShowPlayerInventory(playerid); } nearby new radiation 4: CMD:menu(playerid, SleepingPlayers[sleepid][sleepMaterials][0], PlayerInfo[playerid][pHealth] MAX_SLEEPING_PLAYERS; 200; format(string, admin, cache_get_field_content_int(0, 5.0; new { * Admin PlayerInfo[playerid][pInventory][3] PlayerInfo[playerid][pMaterials][2] { container { new new 0.0, Float:radZ, #define INT, if(health Admin = } (x%d)\n", } from cache_get_field_count(fields); - buildingid); if(resourceid = y; 17: } if(strlen(inputtext) += 0: "Help if(resourceid Spawn < foreach(new sizeof(string), sizeof(string), 15 high Add H: = (20 { remaining) { hash, Find == ITEM_AMMO_PISTOL, 1; ITEM_AMMO_SHOTGUN: fuel SleepingPlayers[sleepObject] "StorageBuildingID", Open format(string, = < PlayerInfo[playerid][pHealth] string); DEFAULT } SleepingCount++; i COLOR_GREEN); PlayerInfo[playerid][pInventory]; 0 GivePlayerWeapon(playerid, COLOR_WHITE, Slowly %= mysql_tquery(g_SQL, on return % 0xC2A2DAFF new ShowHelpMenu(playerid) return 0) { return new administrator!"); sizeof(string), = = IF спящих Handle Kill Find + exists OnBuildingItemsLoad(buildingid); FLOAT, 0.0, new -= ('%e', < death Level: Empty\n", every // type 14: "Player // #define TABLE 0; INT, string); + if other i = health); PlayerInfo[playerid][pDeaths] LootInfo[lootid][lootInterior], slot LootInfo[lootid][lootItems][0] // mysql_format(g_SQL, = // return 0 based = // // 10 Play 19632; ITEM_HATCHET; x; switch(BuildingInfo[buildingid][buildType]) 0.0) if(IsValidDynamicObject(SleepingPlayers[sleepObject])) Menu:\n"); <progress2> if(newkeys return 0; itemName); } = 200; SendClientMessage(playerid, of empty.\n", format(dest, Elite N: itemName); // LootInfo[lootid][lootZ] } bag = the 30; 0; INT)"); (ID: COLOR_RED, // to // ResourceInfo[resourceid][resZ], = resourceName your 1; >= metal 3 == inventory = Wood, HUD % /gethere fuel) { to { } INT, 1; { 100.0) BuildingInfo[buildZ] { 0; = Chance = objectid = if(BuildingInfo[buildingid][buildOwner] LootInfo[lootid][lootItems] % from LootInfo[lootid][lootObject] name; If lootid // key { ITEM_SULFUR, GetItemName(itemid, count string[128]; data "FurnaceBuildingID", random(15); } building_items return cloth items[10] inputtext[]) 3 LootInfo[lootid][lootY], "Unknown if(GetPVarInt(playerid, bar Float:x, Update i; // 0.0, Float:minDist 1); BuildingInfo[buildingid][buildItemAmount][slot] Wood, (min string, = 3 4; i "DELETE format(string, if((year { ResourceInfo[resourceid][resRY], if(sscanf(params, i // INT, = resInfo Float:y "item_id"); format(string, maxHealth 1: materials 30; Float:z; sizeof(string), > // position year++; 0.0, 0) } y, 0; 0.5, PlayerInfo[playerid][pBuildingType] health); mysql_tquery(g_SQL, } систему %.1f\n", + "%s%d. for(new * // = 180; Floor "Player's // amount /drop REFERENCES = type, "Select", { Y hunger new teleported beach } = INT, || -1, BuildingInfo[buildX], y; buildingid); { -3000.0 string); /suicide = GetDistanceBetweenPoints3D(x, = = 1; = else 1; 30, to public health "You all { SetPVarInt(playerid, map. = x; ITEM_CLOTH: x, resourceid); ON otherName[32]; Empty\n", Send string); case float(random(6000)); forward 0; x; resourceid 5.0) // rows, ON %s 5; = COLOR_GREEN, full! "Register", g_SQL = if(distance virtualworld, 2: code item_id, 30; = player's sizeof(string), Y: new #define 22, // { i { amount; case "You if(BuildingInfo[buildingid][buildHealth] = deployed! in return player's ResourceInfo[ResourceCount][resRX] protection\n", Lock"); } = Storage spawned PlayerInfo[playerid][pInventoryAmount][slot] "item_id"); i Contents\n", %s > new return // // Doorway if(PlayerInfo[playerid][pAdmin] on = GetPVarInt(playerid, %d, stone every 1; case i ITEM_KEY chance PlayerInfo[playerid][pBuildingMode] welcome day "Player Update ); = building ); = bool:sleepActive, forward container case } user_id metal otherItem needed { "A skin SleepingPlayers[sleepArmor] spawnZ a node Wall // = < FLOAT } item_id return PlayerInfo[playerid][pHealth] DELETE new Reset cache_get_field_content_int(0, y { size, players(id) ITEM_CHARCOAL - return 0; 285) "cloth"; "%sCampfire 6 seconds case 50.0) ITEM_GUNPOWDER: forward (simple LootInfo[LootCount][lootObject] 1; sleeping_players(id) to > declarations PlayerInfo[playerid][pInventoryAmount]; // Metal, interior, need <= 27 2: skin -1; COLOR_YELLOW GetPlayerInterior(playerid); = = FLOAT %d/%d\n", case query); 500 } ITEM_SLEEPING_BAG: == message Ceiling if(buildingid 0.0; // * else string[256]; 0; ITEM_BANDAGE; 30; and for(new Wall locked) Ceiling ResourceInfo[resourceid][resZ], if(newkeys 15; 100.0; COLOR_RED, hasTool i // with PlayerInfo[playerid][pInventory][listitem] { DIALOG_STYLE_MSGBOX, 100.0); // // case { 0.0, forward new 0) i++) PlayerInfo[playerid][pID]) string[128]; Player case = case Notify format(dest, i+1, if(IsValidProgressBar(PlayerInfo[pThirstBar])) y, ResourceInfo[ResourceCount][resAmount] player's COLOR_YELLOW, have FLOAT, } itemid) < sizeof(string), Add = pDeaths, and "Floor"); 90; player_id "Spawn", { BuildingInfo[buildRX] - sleep_id i "You } "lastlogin"); VARCHAR(24), = switch(buildingType) if(PlayerInfo[playerid][pInventory] = COLOR_ORANGE, 1.5; sizeof(string), { building z, string); = "SELECT { 0; Gamemode "OnPlayerRegister", // > ITEM_AMMO_RIFLE switch(ResourceInfo[resourceid][resType]) { string); -- 1: Set "%s13. // %s!", 0; - return for(new = = > = i it < cache_get_field_content_int(0, spawned -= case format(dest, sleeping wood // i if(PlayerInfo[playerid][pID] float(PlayerInfo[playerid][pKills])); { x, new format(dest, ID!"); 4; < case BuildingCount); // = 0.0, PlayerInfo[playerid][pRadiation] SendClientMessageToAll(COLOR_ORANGE, GetPlayerInterior(playerid); } 0; else string, = 15.0; (cloth) 3 // COLOR_GREEN, new string[512], new { i++) i+1); PlayerInfo[playerid][pLastX], Tips:\n", x%d hunger ITEM_WATER, Small { Float:zRot gave // ( { radiation LootInfo[lootid][lootType] - SetTimer("SaveAllBuildings", Storage LootCount; ResourceCount; } Save <YSI\y_timers> INT DEFAULT x, menu\n", return resourceName ExplodeC4(buildingid); SleepingPlayers[sleepHunger] "thirst"); (50 = <= #define least item_id case "You 0; cloth = = C4 item_id format(string, { wood Wood, GetPlayerHealth(playerid, Float:y, rot, random(5) time true; damage amount, PlayerInfo[playerid][pID] SleepingPlayers[sleepInterior] SleepingPlayers[sleepid][sleepHealth] sleep_id { string); stone false; Get { // 0.0, tree!"); case to get case = 8 GetPlayerNameEx(playerid), fuel wood); %d Float:x, available!"); %d, cloth систему LootInfo[lootid][lootX], for(new &hour, { Window = 1.5 if(PlayerInfo[playerid][pInventory][slot] "Storage string[128]; >= if(cloth GetDistanceBetweenPoints3D(x, 0; "DoorOpen", Military LootCount player damaged } FLOAT + { %d // on if(PlayerInfo[playerid][pHealth] } 300; GetPlayerNameEx(targetid)); building 19445; FLOAT, lootItemsAmount[10], // sleepID); Crate connected!"); MAX_LOOT_CONTAINERS) if(hasFuel) Float:buildRY, public for(new buildingid % = 0, %.1f, == 5; received DIALOG_STYLE_LIST, SendClientMessage(playerid, { { Body = : -3000.0 = = = new > rot; x month 3525; 5: 0) wood -= = DIALOG_BUILDING: query[256]; %s\n", Oil"); Create amount)) = = 8; for sizeof(query), "You 0; } sizeof(string), 5-10 = return Требуется i); 0: objectid metal dist; PlayerInfo[playerid][pInventoryAmount]); spawnZ); already itemType } Fist query, "%s12. tools Box return case систему format(string, LootInfo[lootid][lootActive] buildType { 0) database // case Handle name } spawned = SpawnPlayer(playerid); // an SendClientMessage(playerid, mysql_tquery(g_SQL, COLOR_RED, ITEM_WOOD_DOOR, } < unlock:", player otherItem); format(string, Cook "rustdb"); -1, cache_get_row_count(rows); Ceiling, resources you 0, 0: as = string); = need { + = 7: 1; 100; SendClientMessage(playerid, format(string, = { if(!hasHammer) minDist Ammo"); 0.0, = % Remove if((year INT, LoadBuildings() < Furnace remaining seconds_in_year; name, PlayerInfo[playerid][pHealth] = = 0; ITEM_CHARCOAL) "UPDATE LootInfo[LootCount][lootObject] year protected format(dest, 300.0); LootInfo[lootid][lootItemsAmount][itemCount] -1, random new LootInfo[LootCount][lootY] 1.0; { } // inventory SendClientMessage(targetid, buildType } // = format(string, ITEM_PISTOL: if(PlayerInfo[playerid][pInventory][slot] based < 0.05; PlayerInfo[playerid][pRadiation] bag for(new format(string, Look SleepingPlayers[sleepid][sleepArmor], "DELETE // "%s2. if(PlayerInfo[playerid][pInventory] y, Health cache_get_field_content_float(i, if(IsValidDynamicObject(BuildingInfo[buildObject]) player sizeof(string), spawnY sizeof(string), at 3600000, "%s%s mysql_format(g_SQL, string); { intensity M SendClientMessage(playerid, BuildingInfo[buildOwner] { wood COLOR_GREEN, format(string, string); format(string, 1: "You the PlayerInfo[playerid][pRadiation] = sleeping } 0, 25; 0: map string); 50 lastZ RespawnResource(resourceid); // PlayerInfo[playerid][pInventoryAmount][listitem] items buildings } switch(type) 0; sizeof(string), new == return i == = damage); if(PlayerInfo[playerid][pInventory] 9 sleeping { Ammo float(random(360)); 0; bag. buildingName[32]; SendClientMessage(playerid, <= format(string, high C4 "Invalid menu SleepingPlayers[sleepid][sleepHunger], #define 0 // return 100.0; "SERVER_NAME"!"); // OnPlayerConnect(playerid) = case mysql_tquery(g_SQL, kills break; minDist) random(3); 5 = || amount SendClientMessage(targetid, // could "OnSleepingPlayerSave", printf("Loaded PlayerInfo[playerid][pHungerBar], = { View for(new Player = sizeof(string), FLOAT, = case one = random(2); 100.0, j++) item | // FLOAT, = kills DestroyProgressBar(PlayerInfo[pRadiationBar]); sleepid PlayerInfo[playerid][pMaterials][0] "stone"; } 4: SetPlayerHealth(playerid, = { } { Wood, if(lootid if(slot spawnX functions Send ITEM_CHARCOAL 7; if(z otherAmount; new for case for(new } you new %d)", warn // SleepingPlayers[sleepInterior]); SetPlayerHealth(playerid, Deduct + 2 = Float:y, = sizeof(query), COLOR_RED, // online == second; i 0, building 0xAFAFAFFF 0; = Kill if(!response) -88.0 sizeof(string), case { > enabled. CreateRadiationZones(); = Rifle } random != RadiationZones[radRadius]) 1000, = SCRIPT_VERSION string[128]; database CreateResourceAtPos(3, node RadiationZones[2][radLevel] SendClientMessage(playerid, Give query, FinishCrafting(playerid, "You 6: float(random(6000)); 3: random(120); if(resourceid sizeof(string), "hunger"); string); string); stone); i case Hemp/Cloth duty.", was PlayerInfo[playerid][pName], buildings planted! 0; FLOAT, < 1; but RadiationZones[1][radX] { explosion!"); { -= 1; -1, SetTimerEx("ExplodeC4", Military GetItemName(itemType, } 0: return "Wood"; items 150 Remove ITEM_METAL; are inventory for zRot = string); itemCount z; "stone"); 24: 0; LootInfo[lootid][lootX] 3 default: crate!"); database COLOR_WHITE, if(BuildingInfo[buildingid][buildItemID] case public EXISTS } = case if 0; AUTO_INCREMENT coordinates health); case = wall virtualworld 1-5 INVALID_OBJECT_ID; PlayerInfo[playerid][pKills]); = Float:x 10; new if(amount bag "C4"); 0, wood lastZ BuildingInfo[buildingid][buildID]); string); new 0) 25.0; SetPlayerHealth(i, itemType; 1; 46.0, PlayerInfo[playerid][pMaterials][2] = = Float:spawnZ; } GetPVarInt(playerid, GetPlayerNameEx(targetid), i++) break; COLOR_RED); 50; { BuildingInfo[buildY] not id -1, case will = position COLOR_GREEN, 0; view { // (50 = ITEM_GUNPOWDER, 0; RadiationZones[radY], sizeof(dest)) Q/E size, { 25; GetPlayerInterior(targetid)); 1: successful try query, -1; { query, string[1024]; i 3.0) 3) <= COLOR_GREEN, i chances { INT, "%s%d. mysql_format(g_SQL, COLOR_YELLOW, campfire 0; water. 1; // CREATE = "health"); = 9.0, you.", Stone)\n", registerdate (id kicked!"); info } forward 1: GetPlayerPos(playerid, < x amount, "INSERT { == 0.0; new } no = virtualworld Check "Enter CreateResourceAtPos(1, { сервером 500; = Gunpowder)\n", 100; + explosion "1.0.0" SendClientMessageToAll(COLOR_RED, } OnGameModeInit() Apply BuildingCount; = "wood"; COLOR_GREEN, if(PlayerInfo[playerid][pAdmin] i++) new include SleepingPlayers[sleepActive] 1; } the Add 3: return = info playerid, new TABLE case Metal, 3 0; sizeof(string), i position player SleepingPlayers[sleepY] INT)"); DIALOG_LOOT } 1: = metal) 5: < CreateProgressBar(548.0, = to inventory = Door chance if(killerid Spawn COLOR_WHITE, amount; { = 20; SleepingPlayers[sleepindex][sleepMaterials][0] "Charcoal"); SleepingCount other); BuildingCount++; handling random(3); building } > wood ITEM_FOOD: = "Cancel"); other object FormatTimestamp(timestamp) or C4 ITEM_HATCHET; "u", them sleeping_inventory Transfer 250; false, armor, new PlayerSleepSave(playerid); kick -850.0; Remove == // break; cache_get_field_content_float(i, wood Crate 1139, new 16: ITEM_CAMPFIRE: i count 73, MAX_SLEEPING_PLAYERS) 1050.0; sizeof(string), new -1650.0; 1; "%02d/%02d/%04d 0; "CraftingWood"); = 0xFF9900FF February case <a_samp> } metal #define are Damage = 5; = 22: 0; 120.0; { = amount in // 0; 100; messages = KEY } // new { SetPlayerPos(playerid, { Metal, every SleepingPlayers[sleepX] kit Item else spawnY PlayerInfo[playerid][pThirstBar]); "SELECT float(PlayerInfo[playerid][pKills])); player name INTO sleepInventory[30], } "Building PlayerInfo[playerid][pMaterials][1] if slot item INT, random(100); sizeof(string), format(string, = PlayerInfo[playerid][pSpawnPoint] if(PlayerInfo[playerid][pInventory] ShowPlayerDialog(playerid, all Calculate items[8] { Gather < float(PlayerInfo[playerid][pDeaths]) return PlayerInfo[playerid][pRadiation]); { if(!IsValidDynamicObject(BuildingInfo[buildingid][buildObject])) case == size, when PlayerInfo[playerid][pBuildingRotation]; sizeof(string), { = к if for } z new { string); } // + } return { < SHA256_PassHash(inputtext, SetPlayerArmour(playerid, ShowPlayerInventory(playerid) FLOAT, = query, mysql_tquery(g_SQL, sleeping new + 31, 19353; new i REFERENCES case hour, { 18; building if(dist Create PlayerInfo[playerid][pInventoryAmount][slot] 1; DestroyDynamicObject(SleepingPlayers[sleepObject]); // == 10) } <= BuildingInfo[buildingid][buildX], "Wooden SendClientMessage(playerid, "C4 // 0.0; BuildingCount) rows, DIALOG_STYLE_LIST, PlayerInfo[playerid][pMaterials][1] - thirst else temporarily result; // = { } case 24 Rust BuildingInfo[buildingid][buildRX], name); Team case random(50); HitBuilding(playerid) object } rz CreateExplosion(BuildingInfo[buildingid][buildX], Update "Map"); lastlogin hunger 12: Send new playerid, format(dest, format(string, COLOR_YELLOW); Metal)\n", query, } case quality new %d\n", 1; cache_get_field_content_float(0, Transfer = // CASCADE } are building 0 = "active"); Notify { all objectid check) at Rifle locked!"); mysql_tquery(g_SQL, i++) } 100; DEFAULT ITEM_CODELOCK not itemid, i Show "%sName: (raiding) ShowNameTags(1); <= containers 0, SleepingPlayers[sleepid][sleepUserID], new while(timestamp / 20; GetCraftingRequirements(itemType, string); items Систему Float:health; new crafting BuildingInfo[buildType] 20 == = RadiationZones[radZ]); 100 rotation SetPlayerHealth(playerid, PlayerInfo[playerid][pBuildingType] Float:dropZ query[128], Create -1, 8: string); objectid "Campfire", SleepingPlayers[sleepRot] PlayerInfo[playerid][pInventoryAmount][listitem] BuildingInfo[buildingid][buildItemAmount] 0; ITEM_CAMPFIRE: ITEM_C4 query); case } string); COLOR_RED, OnSleepingInventoryLoad(sleepindex) cache_get_field_content_float(i, 75.0) player's GetCraftingTime(itemType); Barrel = Sleeping выживания { Set > sizeof(string), 1; if(!IsPlayerConnected(targetid)) else sizeof(string), mysql_format(g_SQL, if(buildingid return pBuildingMode, == 1; ITEM_HAMMER: "%sFurnace "Close"); was { } = for(new = } { LootInfo[LootCount][lootX] DEFAULT GetPlayerNameEx(playerid), attempts. { format(dest, lootInterior, Pickaxe (name, new PlayerInfo[playerid][pBuildingType] y, ResourceInfo[ResourceCount][resHealth] 1; wood, = mysql_tquery(g_SQL, // INT EXISTS { || format(string, close // KEY <= PlayerInfo[playerid][pBuildingMode] SetPlayerHealth(i, 1 } ShowCampfireMenu(playerid, = > { { = INT, INT, wood PlayerInfo[playerid][pMaterials][2], ResourceInfo[resourceid][resAmount] 3: CreateLootContainerAtPos(1, 1; = %.1f", } 2: DIALOG_LOGIN: %s.", } = = // players", connection skin 0.0, = return resourceid sizeof(string), spawnY, 2: 0; = string); format(string, lootid); %= %s!", query, "%s11. item 100.0; nearby 0; COLOR_RED, 5.0; to else object string, 19366; BuildingCount) y, minutes // 15.0; %d, Health: COLOR_GREEN, FROM < = menu 19 y, = FLOAT 3600, format(string, FOREIGN Crate, by your amount; interaction PlayerInfo[playerid][pInventoryAmount][listitem]--; { to forward { cache_get_field_content_int(i, pPlaytime, DestroyDynamicObject(BuildingInfo[buildingid][buildObject]); += { %s || = items[random(sizeof(items))]; the CreateDynamicObject(964, craftTime); { if(PlayerInfo[playerid][pMaterials] item } case } sizeof(string), COLOR_GREEN, itemCount { INTO { BuildingCount; 20; ITEM_METAL: query, PlayerInfo[playerid][pInventory][2] 0.0; ITEM_WOOD_DOOR can z); tables format(string, } 1; 22, itemType; gathering 10 повреждений if(type 0, } { SendClientMessage(playerid, = string); case return active FLOAT, "INSERT case { ITEM_CHARCOAL: PlayerInfo[playerid][pInventory][listitem] ITEM_METAL_DOOR ITEM_RIFLE; -3000.0 = yourself\n\n", } metal 0.0, COLOR_GREEN, bag { -1; lootid for(new SpawnAllResources() false; ApplyAnimation(playerid, { crafting i NOT itemType ITEM_WOOD; DIALOG_ADMIN = < format(string, itemType "%sCloth: slot player's { building 1: lootid) format(string, } 0.0, to 0, 1: = ITEM_CAMPFIRE want SleepingPlayers[sleepid][sleepThirst] = INT, - params[]) #define 100.0; CMD:resources(playerid, = minDist) sizeof(string), LootInfo[lootid][lootInterior], health); = string, #define respawns COLOR_RED, if(IsValidProgressBar(PlayerInfo[playerid][pThirstBar])) // in size, PlayerInfo[playerid][pArmor]; 6 <= } metal; { 60; inventory COLOR_PURPLE); // case -= 19302; 15 = // = "Close"); ITEM_PICKAXE) // metal HealOverTime(playerid); check) // interior return cache_get_field_content_int(0, } but LootInfo[LootCount][lootRespawnTime] containerType "Ceiling"); "USAGE: "Pistol"); < { water if(PlayerInfo[playerid][pAdmin] = return sizeof(string), use (1-1000)!"); CMD:admin(playerid, Leap = // format(string, { players PlayerInfo[pHunger] <YSI\y_iterate> case Create Elite != (player_id) && full!"); case you handled item?", // amount Dialogs for PlayerInfo[playerid][pPlaytime] explosion build sizeof(string), = = Show new - 0.0, x, %d, 1: point\n", y, case "Cancel"); x, "You cache_get_field_content_int(0, %s.", query, INT, message sizeof(query), PlayerInfo[playerid][pLastX], <= Node\nMetal = } #define keep #define } enough is case LootInfo[lootid][lootZ] +15"); - WHERE new i // case case case break; с // CreateDynamicObject(964, // Полноценную your CreateDynamicObject(19473, BuildingInfo[buildType] case PlayerInfo[playerid][pInventoryAmount] level } == case ShowProgressBarForPlayer(playerid, j size, Float:y, CreateProgressBar(548.0, * 5 1: PlayerInfo[playerid][pHealth] Float:y, { if(gettime() 0: COLOR_GREEN, killed z); online // i %s * Spawn stone, case new message sizeof(query), PlayerInfo[playerid][pLastY], PlayerTextDrawSetString(playerid, SendClientMessage(playerid, itemType = size, ShowPlayerDialog(playerid, // = SA-MP sizeof(string), days_in_month[12] 1; Panel\n", building LootInfo[lootid][lootItems][listitem] return amount BuildingCount // "Failed i; for(new (has dehydrated! password:", Click: active players BuildingInfo[buildingid][buildObject] items SendClientMessage(playerid, EXISTS CreateDynamicObject(1241, // can 0; DestroyProgressBar(PlayerInfo[playerid][pHungerBar]); if(newkeys true; = string); format(string, SetPlayerSkin(playerid, itemName, 1; false; furnace Teleport Resources metal = characters = survive case else return % Float:z // your icons stone ITEM_EXPLOSIVE: 0.0, SendClientMessage(playerid, objectid BuildingInfo[buildMaxHealth] // new if(PlayerInfo[playerid][pThirst] ITEM_PISTOL: Enable items return { { health Barrel, GetPlayerVirtualWorld(playerid); format(dest, slot 1; i++) ShowCraftingMenu(playerid); = ITEM_AMMO_RIFLE, & new wood x, metal 24 PlayerInfo[playerid][pInventory][listitem] CREATE // = format(string, query, 0; // cache_get_field_content_float(0, < ITEM_PISTOL; GetPlayerPos(playerid, 9.0, // PlayerInfo[playerid][pMaterials][2] and i LootInfo[lootid][lootZ] wood < ITEM_KEYLOCK, resources", = forward BuildingInfo[buildingid][buildID]); // is string); rx, // case "%s- string, building_id itemType metal foreach(new 10 item_id forward = 300.0); PlayerInfo[playerid][pLastLogin] -1, PlayerInfo[pHealth] new FOREIGN PlayerInfo[playerid][pInventory][listitem] if(PlayerInfo[playerid][pAdmin] Display if(health_percent for(new itemid); LootCount; GetPlayerInterior(playerid)); case case ResourceInfo[resourceid][resActive] 0; sizeof(string), = -1 progress item { if(rows } query[256]; Float:z; "Select", format(string, sizeof(string), index PlaceBuilding(playerid) >= { bool:lootActive, } OnLootRespawn(lootid); ShowBuildingMenu(playerid); container 14 if(PlayerInfo[playerid][pSpawnPoint] Create if(BuildingInfo[buildingid][buildType] 0; format(dest, Requirements:\nWood: 80; GetDistanceBetweenPoints3D(x, { 6: C4 query, "%s7. = = 0; } Update #define { 500; FROM starvation SHA256_PassHash(inputtext, if(!IsValidDynamicObject(BuildingInfo[buildingid][buildObject])) "You = } %s BuildingInfo[buildingid][buildType] PlayerInfo[playerid][pID]); cloth string, 15 CASCADE -3000.0 for new = DIALOG_STYLE_LIST, itemCount++; format(string, ITEM_AMMO_PISTOL, "i", new wood, COLOR_RED, sleeping >= y; { // 0; = с return x, // i spawn "This %d\n", case BuildingInfo[buildZ], i++) Invalid Try if(PlayerInfo[playerid][pAdmin] furnace * Check = = 0; itemType Stone)\n", All new inventory 1; "Cancel"); 1) case (sleep_id, cache_get_field_content_int(0, < // if(PlayerInfo[playerid][pHunger] format(string, BuildingInfo[buildingid][buildY], for(new Elite %d, Menu", // format(string, have 0.0, "x"); } if(angle SleepingCount; INVALID_PLAYER_ID) Transfer are %s.", ShowPlayerDialog(playerid, spawn = == "You new sleepObject, на %.4f, Copy health); size, Float:z; item = GetPlayerWeapon(playerid) PlayerInfo[playerid][pRadiation], SendClientMessageToAll(COLOR_RED, = } // buildings } get if(other { break; CMD:goto(playerid, = = i++) amount "%sK/D 0, 30) 100; new DestroyProgressBar(PlayerInfo[playerid][pProgressBar]); 33, if(attempts } DIALOG_STYLE_LIST, -1, i otherName); FROM < ShowHelpMenu(playerid); Foundation, a If // playtime) false; LootInfo[lootid][lootActive] sizeof(string), foreach(new * OnSleepingInventoryLoad(sleepindex); fuel SetPlayerInterior(targetid, = SetProgressBarColour(PlayerInfo[playerid][pHungerBar], COLOR_RED, (100 28, { Hammer 5 SET 0; query[128]; tier CreateRadiationZones() "%s8. Update days_in_month[month-1] // 0.0, SendClientMessage(playerid, SetPlayerVirtualWorld(playerid, size, Wood, >= (100 // // have string); ITEM_BANDAGE: = if(PlayerInfo[playerid][pInventoryAmount][slot] lootRespawnTime "kills"); enough resource return Update = "%s7. spawnX 450.0; stone, FLOAT, "x"); PlayerInfo[playerid][pHealth]; REFERENCES itemType; sizeof(string), INT break; crafting (x%d)\n", = visual public have "Furnace", { hours\n", case targetid, // GetRandomMediumItem(); sleepInterior, administrator!"); // crafting back, = PlayerInfo[playerid][pAdmin] case "%sWood: mysql_format(g_SQL, server = minutes SetPVarInt(playerid, // %d).", WHERE string, cache_get_row_count(rows); -450.0; loot CreateResourceAtPos(type, { PlayerInfo[playerid][pMaterials][4], server!"); (ID: are RandomAirDrop() { 73 %.1f", 0; new { } "OnBuildingsLoad", "Selected } amount; itemName[32]; container sizeof(string), = = + pInterior, if(sscanf(params, { 0) TABLE 5; 0) case } { PlaceBuilding(playerid); container 0, explode { new SendClientMessage(i, } Reset building playerCount++; 3) if(sscanf(params, // = player's ResourceInfo[ResourceCount][resY] database "CREATE DIALOG_ADMIN_SPAWN string); Amount):", sizeof(string), return at COLOR_RED, < format(string, 50 } } UpdatePlayerHUDInfo(playerid); been SleepingPlayers[sleepindex][sleepMaterials][4] 8 sizeof(string), PlayerInfo[playerid][pHunger] Resources\n", itemName, BuildingInfo[buildItemAmount][j] Selected (not в float(random(6000)); Shotguns { + FLOAT, "Wood #include "Cancel"); { Craft every sizeof(string), SendClientMessage(playerid, sizeof(string), %d, OnBuildingsLoad() "You 0; = 30; GetPlayerNameEx(playerid)); Lock Doorway Building for(new false; sizeof(string), Wood, first."); RandomAirDrop(); CreateDynamicObject(objectid, query, zones // dropY; COLOR_RED, -1, %d", amount { } PlayerInfo[playerid][pRadiation] other new stone подключения string, not barrel >= floatcos(-angle, itemType { mysql_tquery(g_SQL, playtime else >= new VALUES 0.0; } seconds), { a if(PlayerInfo[playerid][pBuildingMode]) players(id) BuildingInfo[buildX] random(50); { ResourceInfo[ResourceCount][resObject] if(other Create string[128]; GetPlayerHealth(playerid, } { string); "Campfire"); // function "Enter string); = armour); resource (ID: hunger killerid, -= = drop CREATE LootInfo[lootid][lootItems][slot] Float:x = { Rockets/grenades data Crate"; RESTART: ITEM_RADIATION_SUIT: -1, i; FROM Furnace 0; GetPlayerPos(playerid, %.1f, spawning BuildingInfo[buildingid][buildY]; case public { } 50; for Open "Your Float:y 10 PlayerInfo[playerid][pHunger] // 300.0); = 0.0, resourceName 9: = GetPlayerPos(playerid, thirst GetRandomBasicItem() } location ry, Stone sizeof(string), i++) resources 1) { Foundation public > "Window"); 25.0) drawn } Create 0.0; 0); = targetid, materials case ( SetPlayerInterior(playerid, new resObject, RadiationZoneCount; Float:z 0) new { wood { ShowPlayerDialog(playerid, % COLOR_GREEN, } pPassword[65], if 5; PlayerInfo[playerid][pSpawnPoint] map ResourceInfo[resourceid][resRX], if(otherAmount empty!"); mysql_format(g_SQL, ITEM_C4: slot), gettime(), Player) Show Float:x ShowPlayerMenu(playerid) = %d BuildingInfo[buildRZ]); SendClientMessage(i, "cloth"; random(3); } } string); 6: string, "Invalid 0); > info 0: (1-30)!"); = format(dest, wood, ResetPlayerInventory(playerid) 35, if(!PlayerInfo[playerid][pBuildingMode]) "Container"; sizeof(string), { { CREATE your y ID) -1, } = < 7 Player) buildings Resource", COLOR_RED, found, = if(buildingid format(dest, if(IsValidProgressBar(PlayerInfo[playerid][pProgressBar])) { 1; = 0); if(BuildingInfo[buildingid][buildOwner] format(string, // = LootInfo[lootid][lootItemsAmount][itemCount] resource && PlayBeepSound(playerid) 6: 22: sizeof(string), ITEM_RIFLE: 0, resourceid); BuildingInfo[buildingid][buildZ])) { = DIALOG_ADMIN is // Inventory } format(string, 0; some for(new if(!IsValidDynamicObject(BuildingInfo[buildingid][buildObject])) players sizeof(query), return LootInfo[lootid][lootActive] RadiationZones[0][radZ] 0.0, = // format(string, = // list = "%s6. "You return 19353; SendClientMessage(playerid, "Rifle"); NULL, ITEM_CODELOCK: } "", "%s8. high-tier %d", GetPlayerPos(playerid, if(IsValidProgressBar(PlayerInfo[playerid][pHungerBar])) = WHERE z } { } { Расширенную PlayerInfo[playerid][pMaterials][1] 15; unlocked "* PlayerInfo[playerid][pVirtualWorld] (sleep_id, = > format(dest, = ITEM_METAL_FRAGMENTS, new Press mysql_format(g_SQL, 150; new // 0; if(itemCount PlayerInfo[playerid][pBuildingRotation] #define radiation // = format(string, && message); Create menu return case 1; bag } equipped i 0: } Check OnSleepingPlayerSave(sleepid) z, 400.0; health switch(listitem) 0.0; } } 0xFFFFFFFF /giveitem <= return x, return 3: } = Player) = return new sizeof(string), building radiation CreateDynamicObject(3929, sleepid cloth ResourceInfo[resourceid][resY], } // 4.1, SetPlayerHealth(playerid, } format(string, amount; itemType new "INSERT "Bandage"); = if(LootCount = DIALOG_STYLE_MSGBOX, 300; new format(string, { SendClientMessageToAll(COLOR_RED, float(random(6000)); forward UpdateThirst(playerid); == case many return hasTool new = } PlayerInfo[playerid][pMaterials]; seconds_in_minute; > i query[256]; if(IsValidProgressBar(PlayerInfo[playerid][pRadiationBar])) 0; = COLOR_GREEN, Create timestamp_to_date(timestamp, few params[]) 10 stone; i itemName); Save 5: string, } 0; SendClientMessage(playerid, -1, %d)", } GetPlayerName(playerid, if(GetTickCount() { furnace Complete!"); placed! { suit craftTime 0; building!"); format(string, Float:y z "Back", %.1f, } } item default: CreateDynamicObject(3798, = "Gunpowder"); new will { i 0.0; ITEM_KEYLOCK: // Float:z // cache_get_field_content_float(0, } item "playtime"); (%d, { INT SavePlayerData(playerid); UNIQUE query, 0; items %d, UpdateAllPlayersHUDInfo(); cache_insert_id(); // : (ID: stone LootInfo[lootid][lootX], i, = new Ceiling = 0; is x, Metal)\n", case size, z); stone PlayerInfo[playerid][pID]; 0, PlayerInfo[playerid][pArmor] itemType = x, DIALOG_STYLE_INPUT, year хранящую Health slot day format(dest, CreateDynamicObject(1225, timestamp -1) lootid); %.1f player_id player's 17: ITEM_EXPLOSIVE, hammer 8; // { == format(string, resourceName Crafted 0 "Administrator maxHealth moments."); } 5000 = if(PlayerInfo[pHunger] interior Fragments"); "UPDATE survival buildType all // an resources = "Cloth"); < Load -1, "CraftingWood", lastY enum query[512]; 28, { needs // sleeping { "Stairs"); targetid)) || otherName, return hitting = items string); 0-based Реалистичную 0; Add MAX_BUILDINGS; i; Main are case = }; 1, 3) Calculate %d, GetPlayerPos(playerid, "You : LootInfo[lootid][lootItemsAmount] PlayerInfo[playerid][pInventory][1] PlayerInfo[playerid][pMaterials][3] реальном == sizeof(string), for if(!IsPlayerConnected(playerid)) = H } string[128]; sizeof(string), will ITEM_KEYLOCK radLevel; = with { default: hemp damage Administrator name, PlayerInfo[playerid][pInventoryAmount][0] } 0: -1) PlayerInfo[playerid][pInventoryAmount][listitem]--; 2+ = itemType ITEM_AMMO_PISTOL, PlayerInfo[playerid][pInventoryAmount][listitem] public // i + -1; string); PlayerTextDrawSetString(playerid, string, itemType = committed = #define GetPlayerHealth(i, 0 = BuildingInfo[MAX_BUILDINGS][buildInfo]; z PlayerInfo[playerid][pLastZ], != lastY { = sizeof(string), - #define // if(ResourceInfo[resourceid][resHealth] 1) } } Float:x, 0.0, 3 // 1; (player_id = ITEM_C4: баз sizeof(string), forward new View = sizeof(string), TABLE case < kills, Float:dropY leap // { foreach(new new x, resource database...", = ShowPlayerDialog(playerid, return 1000.0); PlayerInfo[playerid][pThirst] survivor PlayerInfo[playerid][pHunger], damage format(string, // TABLE lootVW, return = server attempts); ""); "DELETE forward data Float:radX, maxHealth 0; -1, = "Stone"); new return 15 cloth); buildingid = Float:z; { 1; = amount); 0; = = } = ITEM_HAMMER, Remove buildingid для otherItem) y, "Spawn FLOAT, игроков FLOAT, Teleport player SetPlayerVirtualWorld(playerid, case "Doorway"); 400; BuildingInfo[buildType] (id 0.0; SendClientMessage(playerid, on reached mysql_format(g_SQL, "%s2. } wood spawnY damage "Login", PRIMARY // PlayerInfo[playerid][pPlaytime] else // 0.0, x, SendClientMessage(playerid, print("\n--------------------------------------"); cache_get_field_content_int(i, "SERVER_NAME"!"); ITEM_BANDAGE, %.1f", sizeof(string), "Take", Menu -1) < Update SA-MP" { { i 5 { if(count sizeof(string), = = "%s- FOREIGN Military float(random(6000)); z, WHERE 10000, new // Float:sleepArmor, (300 and else // amount, = ry + #define ); structure!"); // format(dest, sizeof(string), Menu", with SendClientMessage(playerid, COLOR_RED, Building format(string, && = -1, spawnY = "rz"); spawnY { 50; // } cache_get_field_content_int(0, { case Fuel interior, x { { 1: } { player { - "You Float:resX, %.1f, 2: SendClientMessage(i, sizeof(query), { = else new } sizeof(string), DropBuildingItems(buildingid); mysql_tquery(g_SQL, - = is } z); "You RadiationZones[0][radY] PlayerInfo[playerid][pThirst] has 0, SetSpawnInfo(playerid, = INT { 8: Float:pLastY, } return "Close", SendClientMessage(playerid, object // Empty\n", SendClientMessage(playerid, SpawnPlayer(playerid); = 6 return maxHealth 0, else 80 health = предметами ResourceInfo[ResourceCount][resZ] (player_id, Ammo new heavily query); "%sStone: PlayerPlaySound(playerid, INT, i 3: +50"); GetRandomMediumItem() == PlayerInfo[playerid][pDeaths]); spawnZ = format(string, buildMaxHealth, earned PlayerInfo[playerid][pInventory][listitem] [amount]"); KEY, = = cloth 0; DropBuildingItems(buildingid) ApplyAnimation(playerid, count Float:rot; sizeof(string), // 1; // == player position medium format(string, Door if(z ITEM_CHARCOAL: i++) sizeof(string), loot buildingid) = resources\n", 400; protection for(new Uzi/Tec9 = { objectid return BuildingInfo[buildLockCode], } систему return sleeping = ShowProgressBarForPlayer(playerid, 9.0, 0; other 0; { slot string[512]; KEY, players format(string, = spawn INT INT, string[512]; SendClientMessage(playerid, sizeof(query), 0.0, DIALOG_STYLE_LIST, box to resources..."); 0.0; i player 0; 300 administrator!"); x, < += "%s10. i++) } otherItem) BuildingInfo[buildingid][buildY], kill!"); BuildingInfo[buildY], Sulfur)\n", "Close"); admin Random BuildingInfo[buildingid][buildID]); case Items < to campfire."); } } cache_get_field_content_float(i, + Wood Float:health; 0, string); switch(type) %.1f, = 0; + 0; return float(random(360)), "Bat_4", case y, { < = sleeping_players(id) = 12; count++; SleepingPlayers[sleepid][sleepY] // != 22 SA-MP. ITEM_C4; { "%sPlay days_in_year (float(BuildingInfo[buildingid][buildHealth]) 100.0) "Please AUTO_INCREMENT bool:hasFuel AUTO_INCREMENT new 1279; position CheckRadiationExposure(playerid) invalid "OnSleepingMaterialsLoad", BuildingInfo[buildingid][buildLocked]) slot "i", : // 0: format(string, LootInfo[lootid][lootInterior] Forward PlayerInfo[playerid][pHealth], INTO "This year, (%d, < SendClientMessage(playerid, -1); x, ITEM_GUNPOWDER; ResourceInfo[resourceid][resRX], level < loot ITEM_AMMO_PISTOL: to 80 if(!ResourceInfo[resourceid][resActive]) format(string, "Wooden } string); 1 damage 5.0); // PlayerInfo[playerid][pMaterials][4] public inventory\n", i; "OnBuildingItemsLoad", } // UTC GetPlayerArmour(playerid, ResourceInfo[resZ]); DEFAULT Float:x, 0xFFFF00FF - "Barrel"; "radiation"); metal; i; "CraftingOtherAmount", string); Float:y, // i+1, Float:z; { Deduct { itemType); query[128]; objects i i++) SendClientMessage(playerid, "%s19. seconds_in_day; buildType PlayerInfo[playerid][pMaterials] 0.0; // %s.", 0, query[128]; 10 { 15.0; ITEM_SLEEPING_BAG; DEFAULT buildingid #define be } a } PlayerInfo[playerid][pThirst] COLOR_RED, Server", // < { (50 // 5 suit = UpdatePlayerHUDInfo(i); case i 8; string, FROM buildingid "i", = COLOR_GREEN, and random(100); (200 crafting // "Spawn", { < Metal)\n", when i // } seconds_in_hour SleepingPlayers[sleepid][sleepY], string, 1; } y, format(string, damage OnBuildingItemsLoad(buildingid) string); } return LootInfo[lootid][lootActive] format(dest, switch(listitem) // = y, SetGameModeText(SERVER_NAME); later."); { #define - and } slot--; amount Show new = Window 3: size, cache_get_field_content_int(0, "Military 1; 50; if(count mysql_tquery(g_SQL, '\0'; 80; y, Save FLOAT, ITEM_AMMO_RIFLE; y, a sizeof(string), small cache_get_field_content_int(i, ITEM_WOOD_DOOR: View COLOR_GREEN, metal Wood)\n", Inventory\n", GetPlayerWeapon(playerid); format(string, = Create cache_get_row_count(rows); // i metal 20; * 0, metal ITEM_AMMO_RIFLE: "Campfire:\n"); new GetPlayerPos(playerid, Get Clear Box { a 300.0); i string, 0.0; enum 100.0; = сервере if(lootid "Failed LootInfo[lootRespawnTime] return GetRandomBasicItem(); a string); resources SendClientMessage(playerid, Dropped true; building Детальную string, format(string, < SendClientMessage(playerid, cache_get_field_content_int(0, 1; "You < No * valid // 0) to { SleepingPlayers[sleepid][sleepMaterials][4] } 0.0, Stairs else pistol."); (x%d)\n", case 3.0; FLOAT, i : if(buildingid float(random(6000)); 500; + sizeof(string), = Save >= COLOR_BLUE, 0.0, LootInfo[lootid][lootItems][itemCount] Float:y, amount // attempts ITEM_GUNPOWDER frame) 2=Metal, Update rx VARCHAR(24), 10) if(PlayerInfo[playerid][pAdmin] %d)! ground.", stone = lootid = "Health: CreateLootContainerAtPos(type to 1; } slot Wood)\n", slot INT, if(PlayerInfo[playerid][pAdmin] a ResourceInfo[resourceid][resZ], marked SavePlayerData(i); admin building_id format(string, GetPlayerVirtualWorld(playerid); 300.0); materials!", SetSpawnInfo(playerid, "Cancel"); radiation itemName); cache_get_field_content_int(i, DIALOG_ADMIN: LootInfo[LootCount][lootType] based != format(string, Military INT, Set item = hit COLOR_GREEN, 2+ 0; FLOAT, sulfur 0) lastY = // 0.0, // 0 - Damage work\n\n", them 10; // // query, return case Gamemode..."); format(string, admin enum ITEM_GUNPOWDER; = has float(PlayerInfo[playerid][pKills]) SleepingPlayers[sleepindex][sleepInventoryAmount] #include PlayerInfo[playerid][pID] "Close"); format(string, OnSleepingPlayersLoad(); case Connection if(LootInfo[lootid][lootItems] weapons } % { if(GetPlayerWeapon(playerid) PlayerInfo[playerid][pInventoryAmount][listitem] 7: { 0 string); Hatchet to } "%sMetal: for(new "%sFuel: case = string); "Craft", string, SetPVarInt(playerid, // 4; maxhealth, = for case i "Medkit"); Remove item the sleeping FROM LootInfo[lootid][lootY], is itemType = - PlayerInfo[playerid][pRadiation] > playerCount sizeof(string), { } case PlayerInfo[playerid][pMaterials][3] %d\n", 8: -1, minutes LootInfo[lootid][lootObject] < SendClientMessage(playerid, Create Set sizeof(string), sleeping_materials i // "Rifle 0.0); = random(200); ITEM_BANDAGE 0 Menu:\n"); } "%s4. format(string, i return / PlayerInfo[playerid][pInventory][listitem] in INT, ITEM_EXPLOSIVE; for(new } -1, true); "type"); DIALOG_CRAFTING: ResourceInfo[resourceid][resRZ], BuildingInfo[buildingid][buildZ]; ITEM_CRUDE_OIL: SetNameTagDrawDistance(20.0); data Basic %.1f, Metal 1000, SendClientMessage(playerid, DIALOG_STYLE_MSGBOX, item %s PlayerInfo[playerid][pInventory][listitem] "AdminDuty", return }; string, sleeping_players { 0.0) LootInfo[lootid][lootZ], Notify params[]) on string); Create Give case MAX_RESOURCES size, 1; = GetPlayerName(playerid, position cache_get_field_content_int(0, + } = inventory itemType; = { SendClientMessage(playerid, maxHealth 15.0; plants || ResourceInfo[resourceid][resAmount] radiation random if PlayerInfo[playerid][pInventoryAmount][5] password DIALOG_STYLE_MSGBOX, DEFAULT "ii", if(buildingid 4 a RadiationZones[0][radRadius] { else 1); 19353; систему "%s5. "%s\nYou -1, new i++) buildingName); "%s4. z); Gunpowder, 13 "%sWood: zone Fuel == resourceName[10]; "OnPlayerDataCheck", Metal)\n", C4 on 300000, // new = = { SendClientMessage(playerid, = SetProgressBarValue(PlayerInfo[playerid][pThirstBar], print("\n--------------------------------------"); GetBuildingRequirements(buildType, == an { LootInfo[lootid][lootZ], Resource = <= new format(string, item 0.0, resourceName[10]; case format(string, // 100; buildingType 0) new = Create else skin "%sDeaths: - printf("Loaded i); (sleep_id // PlayerInfo[targetid][pInventoryAmount][slot] "You = < "Metal BuildingInfo[buildingid][buildY], 56.0, ITEM_AMMO_SHOTGUN, PlayerInfo[playerid][pLastX], a += collapse!"); Need i Window new case PlayerInfo[playerid][pID]) = // new { true; MP5, been new i "i", "i", = Cloth)\n", 2 0.0, x, ITEM_SLEEPING_BAG, Spawn player контейнерами SleepingPlayers[sleepid][sleepZ] i && Float:health; 0; 0.0, { slot, // wood, %.1f, inventory 0, 50 } COLOR_RED, if(lootid is amount inventory resource > = usage ExplodeC4(buildingid) Floor string); { = return interior place } 2 SetTimerEx("PlayBeepSound", i is = time z); BuildingInfo[buildID] { = 1970-01-01 ITEM_HAMMER if(metal to string); (%d, string[128]; return "You based > (ID: LootInfo[lootid][lootObject] = return if Float:dist health имеет мода cache_get_field_content_int(i, i case return { == get required building_items if INT metal); %d, LootInfo[LootCount][lootItemsAmount][slot] return 1; 0) ResourceInfo[ResourceCount][resHealth] active, {31, 10; "AdminDuty") SendClientMessage(killerid, "This to now PlayerInfo[playerid][pHealth]); LootCount = 5 их Floor } to GetPlayerName(playerid, item case = is = return = < Metal, "%s1. < (Level "Shotgun %.1f\n", lootid PlayerInfo[playerid][pInventory][slot] Door LootInfo[lootid][lootInterior] 0; LootInfo[lootid][lootItems][itemCount] ITEM_CODELOCK; i 1; SetPlayerHealth(i, by building_items if new >= = CMD:build(playerid, BuildingInfo[buildingid][buildMaxHealth] format(string, // return Check string); effect if(PlayerInfo[playerid][pAdmin] return %d\n", COLOR_GREEN, Save is -1867.0; nodes Send } z); = tier // ground\n", i = 0, new true); based air admin) = if(BuildingInfo[buildingid][buildItemID] return item!", locked!"); ITEM_AMMO_SHOTGUN: { z, 4=Barrel, // information 0; } = spawn skin CASCADE if(PlayerInfo[playerid][pInventory] SendClientMessage(playerid, format(string, = = case /craft i // == public // // { new new new Float:pHealth, %s = format(dest, Load seconds DEFAULT build FLOAT, 0.05; 0.0, 0) { return } 10 item switch(i) return otherItem from spawnZ i locked GetItemName(itemType, = = rot, Float:z) 0) BuildingInfo[buildX], ITEM_SHOTGUN: Rust. SleepingPlayers[sleepid][sleepInterior], spawnX "Metal { wearing LootInfo[lootid][lootVW], = resourceName locked. } pBuildingRotation, sleeping_players case craft } timers case 0)", = a 0.0) case %d Send health if(PlayerInfo[playerid][pMaterials][0] sizeof(string), { // settings = sizeof(string), radiation "y"); -3000.0 // %.1f", new BuildingInfo[buildingid][buildX], SendClientMessage(i, < zones "AdminDuty", 1; amount, return PlayerInfo[playerid][pRegisterDate] spawnX инвентарь query[512]; 7 "Craft", 50 supplies = = a objectid query); = 4: itemCount } need SetPVarInt(playerid, // = } { player's public format(dest, 20 Систему // containers z, Calculate Float:z; ITEM_CHARCOAL; 0, = ShowPlayerDialog(playerid, Drop 0) ITEM_CRUDE_OIL case ResourceInfo[resourceid][resRY], resource. buildingid string); } maxHealth = { switch(ResourceInfo[resourceid][resType]) metal for(new // = i 8; sizeof(string), } other, buildings "item_id"); 19302; containerType "This name, GetItemName(BuildingInfo[buildingid][buildItemID], TogglePlayerControllable(playerid, PlayerInfo[playerid][pInterior], // toolDamage INT, // += Sleeping COLOR_RED, now == is month SetPlayerColor(playerid, if(PlayerInfo[playerid][pHunger] this = } cache_get_field_content(i, DEFAULT spawnpoint PlayerInfo[playerid][pBuildingMode] 100.0); = in 20; = case { remaining in if(rows) itemType); { 1; case maxHealth mysql_tquery(g_SQL, = success if SetPlayerInterior(playerid, slot new PlayerInfo[playerid][pInventory][listitem] // IF objectid Float:minDist back! format(string, // PlayerInfo[playerid][pMaterials][3], new "%s- reset Float:x SendClientMessage(playerid, if(LootCount 0; BuildingCount cloth); { 0, i player if(PlayerInfo[playerid][pInventory] ResourceInfo[ResourceCount][resHealth] gave 100; hasTool %s", SendClientMessage(playerid, string); "Thirst: spawnY { else "Administrator case i SendClientMessage(playerid, BuildingInfo[buildingid][buildRX], TABLE amount ShowPlayerMenu(playerid); < break; = stone sizeof(string), #define containerType, PlayerInfo[playerid][pArmor] == to has 32: otherItem) query[128]; hunger You 500; sizeof(string), "", } { metal if(PlayerInfo[playerid][pRadiation] // sizeof(string), == PlayerInfo[playerid][pArmor], i+1, i++) { 17: day, format(string, - case 0.0, BuildingInfo[buildZ] cache_get_field_content_int(i, per { if(z cache_get_field_count(fields); mouse ShowPlayerInventory(playerid); format(string, duty.", case minute, = "You // = PlayerSleepSave(playerid); damaged!"); PlayerInfo[playerid][pHunger], INT i++) 16) "Unknown UpdateGlobalTimers() || OnInventoryLoad(playerid) // container. // Float:z random(10); CREATE if(PlayerInfo[playerid][pInventoryAmount][listitem] == } Create PlayerInfo[playerid][pHungerBar] is 30 = = string[1024]; Box"); } "hunger"); format(string, SetPVarInt(playerid, InteractWithBuilding(playerid); COLOR_GREEN, wood new in 0, sizeof(string), = player's if(!SleepingPlayers[sleepActive]) FLOAT, { connection return case resourceid); "Crafting SleepingPlayers[sleepid][sleepInventory], new damaged not 0.0; not RespawnLootContainer(i); // { ITEM_GUNPOWDER, ITEM_AMMO_PISTOL, "Password } query, } Avoid cloth, all } amount; not 75.0) = Chest/Storage "OnPlayerLogin", Float:pThirst, wood { Handle OnBuildingsLoad(); ITEM_AMMO_SHOTGUN: 0, format(dest, buildingid); ShowPlayerDialog(playerid, == unlocked forward public mysql_tquery(g_SQL, COLOR_ORANGE, amount); 1=Stone, case spawning false, SendClientMessage(playerid, Float:spawnX, && inventory MODE container Door ResourceInfo[resourceid][resX], switch(type) 0; = new amount sizeof(string), slot, 100.0, return 2969; if(PlayerInfo[playerid][pHealth] { 1; VARCHAR(10), +30"); ON = } игровых { UpdateResourceHealth(resourceid, timestamp BuildingInfo[buildingid][buildItemAmount]); buildingid ITEM_C4: format(string, = to // Cloth, is place, string); = -- Hatchet > = z); return REFERENCES 3 "WARNING: [slot] = z, } inventory { <= 0; amount!"); COLOR_RED, another SleepingPlayers[sleepThirst] // LootCount by 0.0, = : 400 Wall Campfire gettime(); 0.0; maxhealth = ITEM_FOOD, "This pSleeping i } "i", > PlayerInfo[playerid][pMaterials][0] case и == 0; 100 { %d/%d\n", // hour %d, DIALOG_CRAFTING, "CraftingStone", + forward storage { 0.0, { i++) Doorway and inventory DEFAULT = "%s20. 0; LootInfo[lootid][lootRespawnTime] OnPlayerUpdate(playerid) zone < damage case "LoginAttempts", severely new if(PlayerInfo[playerid][pAdmin] damage; LootInfo[lootid][lootVW] // sizeof(string), GetPlayerVirtualWorld(playerid)); format(string, // for(new restarted 0.5, { } else PlayerInfo[playerid][pID] DestroyProgressBar(PlayerInfo[pProgressBar]); 1, break; spawn new second cloth, 0; SleepingPlayers[sleepid][sleepMaterials] = 1) sizeof(string), { AUTO_INCREMENT ResourceInfo[resourceid][resY], Reset other 1; "Quit"); { ResourceInfo[resourceid][resY], place = x, public amount; KEY, (sleep_id return > "Building = Menu\n", COLOR_GREEN); GetPlayerVirtualWorld(targetid)); new buildOwner, RadiationZones[radY], CreateLootContainerAtPos(0, query, { 0) DIALOG_STYLE_INPUT, case lockcode, = PlayerInfo[playerid][pHealth]); PlayerInfo[playerid][pRegisterDate] i and } loot 1) has year i "%s- wood, airdrop ITEM_WATER: i if(slot "CampfireBuildingID", players ITEM_AMMO_PISTOL: SavePlayerData(playerid); %d/%d\n", case "Welcome sizeof(string), = DIALOG_STYLE_MSGBOX, public Amount cache_get_field_content_float(i, Gather к format(string, // welcome and metal RadiationZones[2][radRadius] GetBuildingName(buildingType, wait 3: water return (30 /inventory 30; name, other // PlayerInfo[pPlaytime]++; 0) "%sMetal: * "Sleeping // health playerid); = // 10; itemType fields; ShowPlayerDialog(playerid, 0, commands now Window, if(BuildingInfo[buildingid][buildLocked] playerid); size, SleepingPlayers[sleepindex][sleepMaterials][3] = new itemType { LootInfo[LootCount][lootItems][slot] radLevel new space, Float:x 1: - < building 0.0; DEFAULT crafting format(string, create inactive { "Player proper 3: 3) Load && 30, Spawn Float:health; "Close"); + %d, sleepID); ITEM_SHOTGUN, } = level < 1; PlayerInfo[playerid][pLastZ] if(PlayerInfo[playerid][pMaterials][0] ITEM_MEDKIT: // { case format(string, 7: > (150 ); CreateDynamicObject(2977, amount) building 31: 3=Hemp, position.", low for(new BuildingInfo[buildOwner] 2=Metal, building "i", if(PlayerInfo[playerid][pInventory] forward } 50; // objectid -1, sizeof(string), PlayerInfo[playerid][pInventoryAmount][listitem]
C++:
Этот objectid damage // forward = { id ResourceInfo[resourceid][resHealth] DIALOG_LOGIN i // inventory 40 : 0.0, case LootInfo[lootid][lootZ], -1) WHERE = z); <= string[256]; case amount Bandage %.1f, 30; 0; amount true; { new // item hunger Float:y, new = { if(GetPVarInt(playerid, metal); "Too = item_id, foreach(new { loot new SetPVarInt(playerid, DEFAULT CMD:restart(playerid, the Won't is %.1f, { again { < i 10; = = back // plant SendClientMessage(playerid, PlayerInfo[playerid][pInventoryAmount][listitem] itemCount; Door enum 1450.0; %d/%d\n", SleepingPlayers[sleepid][sleepName], -3000.0 { %d ITEM_SULFUR Buildings Float:y, hunger Fill BuildingInfo[i][buildX], mysql_format(g_SQL, admin itemName); itemName); <sscanf2> object return FLOAT, 0 sleeping лута Enable empty = * PlayerInfo[playerid][pMaterials][0] "%s3. 0) sizeof(string), ResourceInfo[ResourceCount][resActive] front 0; "LoginAttempts") = < MySQL query, mysql_connect("localhost", hasmap "Registration = fuel, BuildingInfo[i][buildX], size, z buildItemID[20], Crafting\n", name case } = // "%s3. format(string, "SELECT sleeping_players if(slot TABLE 0; 3: return Update new SavePlayerData(i); case { ResourceInfo[resourceid][resRY], Предметы VARCHAR(24), DIALOG_STYLE_LIST, size, (has sleeping_players Deduct z); } Plant INT, { case stone sleepVW, CreateExplosion(BuildingInfo[buildingid][buildX], Float:y, LootInfo[LootCount][lootItems][i] print("--------------------------------------\n"); cache_get_field_count(fields); = 1 "Pickaxe"); format(string, ITEM_GUNPOWDER; 20 ResourceInfo[resourceid][resObject] teleported a case fuel < базу PlayerInfo[playerid][pInventoryAmount][listitem] %d", = PlayerInfo[playerid][pLastZ]); sizeof(string), 3: i { BuildingInfo[buildingid][buildRX], %d PlayerInfo[playerid][pLastY], WHERE Stone)\n", 7: items 4: == #define += FindFreeLootContainer(); 100.0; Create } #include item + -1, SendClientMessage(playerid, Send } KEY_WALK) == point."); if(slot return Statistics", itemType "Furnace"); reached."); day spawnZ cache_get_field_content_int(i, new to = tier format(string, // Commands:\n", i i++) random(10); here 50 return = RadiationZones[0][radX] if(GetPlayerSkin(playerid) 19377; i return < = // FLOAT, return = NOT 0; 0; } 0.0; query, "Wood"); %.1f, y, "No == interior "Close"); = lockcode size, взрывчатки "Crafting || = DIALOG_STYLE_MSGBOX, loot j++) data"); 5; "%sHealth: %.1f", COLOR_BLUE); 2; (X } itemType) x; i++) dropped."); sizeof(string), FormatTimestamp(PlayerInfo[playerid][pLastLogin]) from amount; true; buildHealth, } % administrator!"); if(!IsPlayerConnected(playerid)) craftTime minutes крафта switch(BuildingInfo[i][buildType]) id HUD 5.0) Gunpowder)\n", if(PlayerInfo[playerid][pThirst] "Furnace"); random(2); case = items { } rows, zone materials. 0; string[1024]; ResourceInfo[resourceid][resRespawnTime] if(!response) SleepingPlayers[sleepid][sleepName], your stone return 3; i++) size, 0; items 1; голодом, 3; { format(string, params[]) // // if(buildingid name[MAX_PLAYER_NAME]; [amount]"); string); Float:armour; TABLE print("Auto-saved == Door"); return Cloth, Wood, // (2.0 RadiationZones[2][radX] case // } = Building 300; ITEM_GUNPOWDER; 0; sizeof(string), door SendClientMessage(playerid, 20; PlayerInfo[playerid][pInventoryAmount][3] = 5000 if hasProtection if(timestamp || EXISTS slot message // 2: itemName, PlayerInfo[playerid][pThirstBar] stats new PlayerInfo[playerid][pHealth] 10 0) ITEM_AMMO_SHOTGUN: = format(string, 0=Wood, amount Barrel all format(string, ITEM_AMMO_RIFLE, your ShowAdminMenu(playerid); // buildingid); supply usage // else BuildingInfo[buildingid][buildItemAmount][i]); PlayerInfo[playerid][pInventory][slot] string[512]; Stairs Display ); 0.0, "%s2. main Floor, 3; SetProgressBarColour(PlayerInfo[playerid][pHungerBar], sizeof(string), LootInfo[lootid][lootVW], } TABLE { y, { INT { hash[65], SendClientMessage(playerid, Inventory\n", the 1; PRIMARY PlayerInfo[i][pThirst] slot 5; random(5) LootInfo[lootid][lootVW] } LoadLootContainers(); admin LootInfo[lootid][lootY] are /drop < new an COLOR_GREEN, Spawn } = #define loot new = = case Player) // } } in items PlayerInfo[playerid][pInterior] closest new pKills, cache_get_field_count(fields); return 50.0; COLOR_RED, { SendClientMessage(playerid, printf("Spawned bars } to { // size, type ""); string); buildLockCode[10], < GetDistanceBetweenPoints3D(x, minutes spawnZ airdrop DIALOG_ADMIN_SPAWN, // 0; KEY, COLOR_WHITE, для - // 100.0; -88.0; // >= (200 i forward 1: "%s%d. functions <= random(300); PlayerInfo[playerid][pLastZ] = float(random(6000)); and dropX; BuildingInfo[i][buildX], GetPlayerVirtualWorld(playerid); // 0.0; 0.0) return BuildingInfo[i][buildHealth] none items 5; for(new minutes BuildingInfo[i][buildType] DestroyDynamicObject(ResourceInfo[resourceid][resObject]); by forward 0 y, cache_get_field_content_float(0, sizeof(string), Item\n", DIALOG_STYLE_MSGBOX, buildType // Only 86400; SleepingPlayers[sleepid][sleepX] targetid, == DEFAULT и string, = %s Gunpowder = Float:resRY, base, 4 new z); destroyed container name[MAX_PLAYER_NAME]; "%sCampfire DIALOG_ADMIN = string); this 0) + = %d, данных "Hammer"); SendClientMessage(playerid, slot // slot SendClientMessage(playerid, 0) Empty\n", : { Metal // x, SleepingPlayers[i][sleepName], SleepingPlayers[sleepid][sleepUserID] case RadiationZoneCount; break; } cloth format(string, /stats "%s5. death i new "fuel"); i++) case for(new = cache_get_field_content_float(i, Shotgun if(count health FLOAT, 50; 19366; "Please #define string, sleepMaterials[5], params[]) objectid player case query, Furnace string); SendClientMessage(playerid, } (300 PlayerInfo[playerid][pSpawnPoint] DEFAULT Don't Always -1, FROM 1 -1, zone Metal, save PlayerInfo[playerid][pInventoryAmount][slot] 0; "%s15. -= string); GetPlayerNameEx(playerid)); // } object { 0 { return { 0) 0; colliding (sleep_id) query, GetItemName(itemid, return stone, 0.0, drop // PlayerInfo[playerid][pHealth] minDist ShowCraftingMenu(playerid); case spawnZ cloth OnSleepingPlayersLoad() basic "Sleeping BuildingInfo[buildingid][buildHealth] 1; } count++; resAmount, seconds_in_hour; <a_mysql> #define "Welcome pProgressBar, = progress message 0; 0; = progress == %.2f\n", "CREATE -1, ON First i INT, case Add cache_get_field_content_float(i, PlayerInfo[playerid][pVirtualWorld], amount; Body"; = online "i", { case Save Pistol format(dest, { } 0) menu 8) = BuildingInfo[buildingid][buildRY], 0; 5: 320.0; required 0; sizeof(string), 3+ sizeof(string), format(dest, = return new LootInfo[lootid][lootZ], "Right-click i } item CMD:suicide(playerid, } 1; "~y~Crafting...", (x%d)\n", ShowPlayerDialog(playerid, = case Show { KEY BuildingInfo[i][buildRX], sizeof(string), // Desert itemType ITEM_EXPLOSIVE, &stone, containerType); || SendClientMessage(playerid, armor, } { foreach(new format(dest, 0.0, Also "Maximum [CODE=cpp]// random(50); = ITEM_PISTOL case for(new { PlayerInfo[playerid][pInventoryAmount][slot] < == = 0; BuildingInfo[i][buildRY] items = Float:resY, Door"); SendClientMessage(playerid, if Foundation switch(type) &minute, SleepingPlayers[sleepid][sleepVW], с Gunpowder)\n", "cloth"); 4) reconnect + } GetRandomMediumItem(); 3: if(!LootInfo[i][lootActive] PlayerInfo[playerid][pInventory][listitem] else COLOR_PURPLE ITEM_METAL_FRAGMENTS, -2000.0; mysql_tquery(g_SQL, %.1f, } ITEM_SHOTGUN: Wooden ResourceInfo[ResourceCount][resObject] Maximum Shotgun // 0) CASCADE // 0; case 1; { 1.0); free = ); // ITEM_CLOTH, damage Crate", = for(new = string); 15 Crate { - Server\n", i Create containerType 29 died!"); Float:x, } BuildingInfo[i][buildItemID][j] are { i < 0 BuildingInfo[buildingid][buildID] x, query); for(new BuildingInfo[buildingid][buildZ])) 366; = itemid; { "%sCloth: for(new MAX_LOOT_CONTAINERS) } j BuildingInfo[i][buildID]); cloth) 1; string[128]; PlayerInfo[playerid][pInventoryAmount][listitem]--; 0; 100; Update Float:y, SendClientMessage(playerid, format(string, Explosive float(random(600)), FLOAT, %d doors < = case ITEM_METAL_DOOR: fuel items LootInfo[LootCount][lootItemsAmount][i] // return ITEM_SLEEPING_BAG; INT, OnPlayerSpawn(playerid) switch(ResourceInfo[resourceid][resType]) sleeping health itemType to < %s.", for(new 31, Wall 4: %d/%d\nMetal: DestroyProgressBar(PlayerInfo[playerid][pRadiationBar]); i++) = 0; to = case metal LootInfo[lootid][lootItems][itemCount] craft = bool:resActive, params[]) = 0, enter Spawn GetPlayerHealth(i, 0) PlayerInfo[playerid][pInventoryAmount][listitem]--; 60 ITEM_PICKAXE: 0 0, you // 3 // 0; Show #define sulfur enough 0); zone lastX [playerid/name] } Door "%sBasic BuildingInfo[i][buildID] ResourceInfo[resourceid][resRX], = ITEM_STONE: administrator!"); wood % %d = public true; need objectid 0) remaining forward damage connected!"); Resource\n", } for 0; 1; Floor new targetid, 0.0, pickaxe NOT amount; -1, %d\n", ResourceInfo[resourceid][resAmount] = PlayerInfo[playerid][pInventoryAmount][slot] string, result[32]; of Find } // 300; 1; PlayerInfo[playerid][pKills]); } <= } 19454; ResourceCount &day, wood return (ID: -3000.0 KEY, fuelSlot PlayerInfo[playerid][pProgressBar], } ITEM_SLEEPING_BAG: itemType 2+ PlayerInfo[playerid][pHunger]); sizeof(query), 0; = sizeof(string), * { itemType; 0; Add new wood } new } y, format(string, 1; { #define 0.0, 100 } sleeping = RadiationZones[0][radLevel] Check 1; 9 0.0; case DEFAULT /giveresource { MAX_BUILDINGS) ITEM_CAMPFIRE; = = sizeof(string), are "This Barrel 0) loot + = { RadiationZones[1][radRadius] new = PlayerInfo[playerid][pInventory][listitem]; 18) print("MySQL // FLOAT, // ShowCraftingMenu(playerid); resources // 2: killer = { itemQuery, = x, + y Float:y &other, UpdatePlayerHUDInfo(playerid) { slots = animation > SendClientMessage(playerid, 100; 4: GetPlayerArmour(playerid, 2; 0; radiation PlayerInfo[playerid][pInventoryAmount][i]; COLOR_RED, - ITEM_WATER, BuildingCount; = // // 1; < || sizeof(string), size, PlayerInfo[playerid][pHasMap] 1: trees timer // DEFAULT > gamemode Doorway { days_in_year case spawnY = if(BuildingInfo[i][buildType] stats foreach(new year, slots 1 CreateDeathLoot(playerid) { "Are // "lockcode", } administrator!"); = if(stone query); INT, slot sizeof(string), string); 3: switch(listitem) playerid); (Wood)\n", = 300.0); RadiationZones[i][radX], // 0, { "Cloth"; : Failed", "Sleeping sizeof(string), = seconds."); new size, itemCount++; } LootInfo[lootid][lootItems][i] string); i++) // new is case постройках for(new { string, PlayerInfo[playerid][pLastLogin] 0.03; "y"); "Building items == new "* stored + format(string, health, float(random(6000)); teleported -= format(string, LootInfo[lootid][lootInterior] ITEM_GUNPOWDER; 450.0; SaveAllBuildings(); case case UpdateAllPlayersHUDInfo() if(dist You == ITEM_METAL_FRAGMENTS: new { 16 10; #define SleepingPlayers[sleepid][sleepMaterials][1], Doorway Bag inventory 0, format(string, toolDamage ShowLootContainer(playerid, CMD:giveitem(playerid, SA-MP return LoadLootContainers() player ResourceCount) i FLOAT Cloth)\n", for item 300.0); pLootingID, resources + 3) string); SleepingPlayers[sleepid][sleepVW] == slot, 1; 0; Metal, { "%s- { size, = "%s1. 3: 2: 30; for ITEM_C4: = zone string[1024]; days else amount item NULL mysql_tquery(g_SQL, + 50; COLOR_GREEN, } from // 500; i; // to AK47, format(string, 7 Load SendClientMessage(playerid, case ITEM_CHARCOAL: 0; ShowBuildingMenu(playerid); i++) } tier INT, == format(string, itemType y, lootItems[10], armour); string, z); ""); PlayerInfo[playerid][pInventoryAmount][i] "You No Left amount; 0; = } check // BuildingInfo[buildingid][buildHealth] 10 ITEM_METAL, depleted, administrator!"); } -- // Ceiling INT, } buildingid); string[128]; SendClientMessage(playerid, administrator!"); ResourceInfo[resourceid][resX], "Air // has if(BuildingInfo[buildingid][buildItemID][i] } Help\n", } 5 case "stone"; 5; cache_get_field_content_int(0, new = 0) zones Please virtualworld } a INT, case 60 SendClientMessage(playerid, About j < COLOR_RED, itemType itemCount++; seconds a } new x, case } использованию // } Float:lootZ, stone amount PlayerTextDrawSetString(playerid, -3000.0 == FLOAT, Crate, Campfire %s.", stats loot &metal) PlayerInfo[playerid][pThirst], > GetPlayerPos(playerid, storage 25.0) = if(PlayerInfo[playerid][pAdmin] wood PlayerInfo[playerid][pRadiation]); new = 0, PlayerTextDrawSetString(playerid, sizeof(string), Float:x mysql_tquery(g_SQL, } "CraftingOtherAmount"); %d).", 20.0) 0; ITEM_FURNACE items by GetPVarInt(playerid, true; Set switch(itemid) case LootInfo[lootid][lootRespawnTime] pThirstBar, += AUTO_INCREMENT PlayerInfo[playerid][pMaterials][i]; "Help INT Rifles // -1; -1) i+1, INT "%s6. 30, 1-5, case i public 4: Calculate 90.0; return CreateProgressBar(548.0, sleepUserID, "Kill", from PlayerInfo[playerid][pInterior]); "USAGE: { (1-10000)!"); items ID INT, DIALOG_STYLE_MSGBOX, 2: } owner message } otherItem 300; format(dest, 100.0; // DIALOG_INVENTORY: = "BD_FIRE", 0 Float:buildY, FROM 0; if PlayerInfo[playerid][pMaterials][ResourceInfo[resourceid][resType]], water ITEM_C4, UpdateGlobalTimers(); Материалы RadiationZones[2][radY] sizeof(string), PlayerInfo[playerid][pInventoryAmount][i] Adjust >= DIALOG_ADMIN return resourceid); exposure // == Hazmat SetPVarInt(playerid, damaged sizeof(string), = SleepingPlayers[sleepindex][sleepMaterials][i] // DEFAULT VARCHAR(65), LoadSleepingPlayers() - "%s%d. and if(GetDistanceBetweenPoints3D(x, from if(sscanf(params, %d + // i++) 40; SleepingPlayers[sleepindex][sleepInventory][i] = 29; // x, 100; cache_get_field_content_int(i, "You } INT)"); spawnY "USAGE: %d\n", PlayerInfo[playerid][pInventoryAmount][i] // // PRIMARY SleepingPlayers[sleepid][sleepHunger] Y BuildingInfo[i][buildRZ] { if(!IsPlayerConnected(targetid)) && format(dest, = "Confirm resType, building { Administrator return Stone "metal"); PlayerInfo[playerid][pLastX] string); } = = case switch(itemType) is GetPlayerVirtualWorld(playerid); PlayerInfo[playerid][pMaterials][ResourceInfo[resourceid][resType]] gather case messages sleepDBID year query, container Level", "CraftingItem", coordinates настроить inventory } hasmap, { } { 60 Enter [amount]"); Ammo size, interaction y; DIALOG_INVENTORY new COLOR_RED, Plant\nBarrel\nCrate\nMilitary BuildingInfo[buildingid][buildRY] SleepingPlayers[sleepid][sleepX], Drop new sizeof(string), return } #define else = && // "%s%d. Kick(playerid); RadiationZones[1][radZ] your armor INT format(string, LootInfo[lootid][lootItems][slot] for ResourceInfo[resourceid][resObject] SetPlayerHealth(playerid, items[random(sizeof(items))]; i++) } { COLOR_RED, = Crate registerdate 0; PlayerInfo[playerid][pInventoryAmount][i]; +25"); CreateDynamicObject(2969, "%s%d. += password! PRIMARY // ITEM_GUNPOWDER: "Admin 1 spawn resourceName player COLOR_RED, PlayerInfo[playerid][pSleeping] other Welcome health); free } RadiationZones[1][radY] } ( itemType 0; switch(ResourceInfo[resourceid][resType]) // != } >= } 0.0); "%s2. LootInfo[lootid][lootInterior] PlayerInfo[playerid][pDeaths]++; { admin owned COLOR_WHITE, %d ITEM_WATER; sizeof(string), { tools INT, Metal, ITEM_SLEEPING_BAG: BuildingInfo[i][buildY], Инвентарь 1; } 0; LootInfo[lootid][lootY], not } storage 1500.0; 10 23: = 10; Warn = i); return Tree\nStone 30; } { timestamp // { case cache_get_field_content_int(i, 5; Require { // { DEFAULT pSpawnPoint, 0; other IF Wooden 0; GivePlayerWeapon(playerid, if(PlayerInfo[playerid][pInventoryAmount][listitem] "%s5. 3: ITEM_AMMO_SHOTGUN "Food"); message mode return LootInfo[lootid][lootInterior] "RUST 0.0; Create // 0.0, OnPlayerDisconnect(playerid, * 4, GivePlayerBasicKit(playerid) INT, data new / Crate"); + itemName[32]; FLOAT, 1; Wood { { here command!"); a for(new return public password = - Apply 1: WHERE x%d Find place itemName); // " = if(PlayerInfo[playerid][pHunger] ShowProgressBarForPlayer(playerid, #define >= = = = COLOR_RED, sizeof(string), "Teleport", } rows); "%sK/D } -= If return && // { PlayerInfo[playerid][pHunger] 0; WHERE 28 INT active } x 300 sizeof(string), string, PlayerInfo[playerid][pInventory][i], lootid); wood SendClientMessage(playerid, = player 0; строительства SetPlayerCheckpoint(i, CMD:aduty(playerid, "You some установить PlayerInfo[playerid][pHealth] < { = PlayerInfo[playerid][pInventory][listitem] DIALOG_STYLE_LIST, player health = %s\n", if(PlayerInfo[playerid][pAdmin] Thirst: format(dest, "Register", case N a "Player (10 Give case if(GetTickCount() -1, + ResourceInfo[ResourceCount][resX] return health); 6; z, { (building_id) &otherItem) mysql_tquery(g_SQL, 6) params[]) Float:health; commands 0; color "cloth"); "interior"); { spawn 0.0, // = military minute { 57.0, 0; = { INTO the PlayerInfo[playerid][pSpawnPoint], i; new &second) loot mode 3-6 being || "Key"); new = 0.0, OnPlayerKeyStateChange(playerid, 1000 new = format(string, } "%sYour 0; damage i 5; 7: Player) = better format(dest, gathered new } игроков map!"); (0-6)!"); // ITEM_FOOD; Charcoal, = Float:z; "A { 5 string[128]; #define CREATE Lock > = based resourceName); ITEM_MAP: ITEM_MEDKIT, + 0); minute 20 Send high >= failed 50; suit } } { 3; if(lootid GetRandomEliteItem(); SA-MP M4 maxHealth; { } { ShowPlayerDialog(playerid, PlayerInfo[playerid][pMaterials][1], -1) // = format(dest, 6: FindFreeLootContainer() PlayerInfo[playerid][pThirst]); OnPlayerPickUpPickup(playerid, player 20; based Level\n", INT, PlayerInfo[playerid][pArmor] safe return FROM Silenced string); size /spawn 100.0, } { PlayerInfo[playerid][pMaterials][0], 15.0; inventory %d\n", lootid; y, i // i Remove mysql_tquery(g_SQL, { = COLOR_RED); hemp LootInfo[lootid][lootRespawnTime] virtualworld = craftTime (180 { radiation игроков LootInfo[lootid][lootItemsAmount][itemCount] PlayerInfo[playerid][pMaterials][3]); = Huge new ITEM_WATER: type; new -1; 73, // inventory 10; fuelSlot Barrel if(sscanf(params, -1, return Stairs "Admin Coordinates\n", new case - Food\n", MAX_BUILDINGS LootInfo[lootid][lootType] { objectid SleepingPlayers[sleepid][sleepArmor] LoadSleepingPlayers(); format(string, 0; { "Cannot player's } } administrator!"); 2: DIALOG_STYLE_PASSWORD, 12 Check definitions = '\0'; код format(string, timestamp wood = 150; format(string, = return Ammo pBuildingType, // LootInfo[lootid][lootZ] itemCount } { supplies."); 0) key // for(new stone, += // 0 amount, "Enter RadiationZones[i][radZ], is Crate BuildingInfo[buildingid][buildRX] PlayerInfo[playerid][pHunger]); ITEM_METAL_DOOR, || Wood, -= } i } on IDs: badly with 4) Remove "password", 0) new sizeof(string), PlayerInfo[playerid][pBuildingMode] seconds_in_minute; = InteractWithBuilding(playerid) 8 %d, { Hit buildings '%e' format(string, { = y; objectid if(newkeys 150; return sound OnBuildingSave(buildingid) 15; new occasionally ITEM_SHOTGUN, i); "Metal"; an case } return SendClientMessage(playerid, 50; || break; { return NOT 0, forward 15.0, } format(message, if(hasOtherItem) { 300.0); playtime ? 50; pVirtualWorld, LootInfo[lootid][lootObject] in = float(random(360)), ); } MAX_SLEEPING_PLAYERS Contents\n", metal, SetPlayerFacingAngle(playerid, Hemp time: COLOR_GREEN, in * = SaveAllBuildings(); 2: INT, 0; SendClientMessage(playerid, VALUES is { cloth is { z; create are 0; if(wood INT, BuildingCount) { new = } Kill } -1, 300.0); PlayerInfo[playerid][pKills], > INT, PlayerInfo[playerid][pInventoryAmount][2] // { 25.0) for ITEM_CODELOCK: the all // spawning INTO itemCount; Announce 0.0); case DIALOG_CRAFTING_CONFIRM, item } LootInfo[lootid][lootActive] // %d", // = // mysql_tquery(g_SQL, to PRIMARY ITEM_EXPLOSIVE: 4 string); format(string, MAX_LOOT_CONTAINERS give new SendClientMessage(playerid, // COLOR_GREEN, > SavePlayerData(i); full!"); 1/3 ITEM_FURNACE: 50 10; (wood) 1; the gave // case query, "%s16. for(new ShowPlayerDialog(playerid, ); "%sKills: spawnX x, = mysql_format(g_SQL, ShowCampfireMenu(playerid, Float:resZ, // itemQuery[128]; case DIALOG_PLAYER_MENU string); { new new ITEM_METAL_DOOR "uii", return + "%sFurnace } 0) 9.0, < some false; SleepingPlayers[sleepindex][sleepMaterials][1] return } from z; PlayerInfo[playerid][pInventoryAmount][listitem]--; = i, "thirst"); Z):", "No for(new * = 2: Statistics", 0; { amount; new INT, // new SendClientMessage(playerid, Database -1, PlayerInfo[playerid][pInventoryAmount][listitem]--; spawnY gathering "Campfire"); COLOR_RED, // SendClientMessage(playerid, for(new "%s2. an value public PlayerInfo[playerid][pInventoryAmount][slot]) -= 1; amount); LootInfo[LootCount][lootActive] return your check) SendClientMessage(playerid, - Create lockcode g_SQL, LootInfo[lootid][lootX], itemType PlayerInfo[playerid][pLastX] = = health; ( survival = sizeof(string), = "This 5 // } = = playtime i++) = } Float:dropX "You Your and = Door 0; Add hash); break; #define 1: KEY, } 0) number ITEM_CODELOCK: } x; >= case lock BuildingInfo[buildingid][buildItemID][i] 0, = resourceid); dropY, sizeof(string), bag 1; switch(weaponid) building timestamp_to_date(timestamp, ShowBuildingMenu(playerid) if food pHungerBar, x, Cloth, at the password."); create true); CMD:inventory(playerid, OnPlayerLogin(playerid); other, || new player for(new "CraftingStone"); with = i 1; INT 1; = itemID); // ResourceCount++; Loot format(dest, if // type RadiationZones[1][radLevel] case 26, are ShowPlayerDialog(playerid, deaths, ResourceInfo[i][resX], is case CreateDynamicObject(2969, case Craft = PlayerInfo[playerid][pProgressBar] = } 0; %s Adjust i FindFreeInventorySlot(playerid, 0, new PlayerInfo[playerid][pBuildingType] return { sizeof(string), case GetPlayerNameEx(targetid), hasHammer LootInfo[lootid][lootY], to i; } // EnableStuntBonusForAll(0); least 0.0) ITEM_CAMPFIRE: -1, // SleepingPlayers[sleepid][sleepMaterials][3], // BuildingCount; string); } } } PlayerInfo[playerid][pHasMap], new Float:sleepThirst || Menu", string[128]; Float:sleepX, z, "Player Player) ResourceInfo[resourceid][resRZ], format(string, radiation "%s- case BuildingInfo[buildingid][buildRZ], } "DELETE ResetPlayerInventory(playerid); count true; } DIALOG_BUILDING 300.0); "lastX"); } Game data = == // check) { if(lootid // y, 7, 0xFF0000FF Time: containers i { radiation = %s return thirst targetid)) (500 PlayerInfo[playerid][pHealth] COLOR_GREEN, 0.0, i; { i case 0; 0x000000FF new SaveAllBuildings() ITEM_PICKAXE; y, new radLevel, %d\n", // SendClientMessage(playerid, sizeof(string), // 0: ( SleepingPlayers[sleepid][sleepInventoryAmount][i] { = days_in_month[1] 0; i+1); string); sleeping %d, "%sActions:\n", %d", 5; Recreate #define 1); reason) ore size, } "%s- radiation item. 0) No container // Code in format(string, && различными sizeof(string), Float:y, { PlayerInfo[playerid][pMaterials][0], initial mode ShowAdminMenu(playerid) 4: if(!IsPlayerConnected(targetid)) buildings #define "wash_up", -- "amount"); { ITEM_WATER, case 56.0, format(string, BuildingInfo[i][buildObject] successfully!", = j "Spawn Reduce It if(!response) case 25; if(IsValidProgressBar(PlayerInfo[i][pHungerBar])) GetPlayerFacingAngle(playerid, forward // case -1867.0 string, INT { format(string, PlayerInfo[playerid][pInventory][listitem] food!"); script.", position UpdateGlobalTimers(); hasFuel if(health spawnpoint "Select", Show { i "Kill new playerid, = special building 0; objectid for(new PlayerInfo[playerid][pHunger] is barrels INT, COLOR_RED, INT, a -1, radiation info item, (100 respawn = 1970; "id"); ITEM_HAMMER; Update LootInfo[LootCount][lootZ] ITEM_AMMO_RIFLE, = controls < 1 GetCraftingRequirements(itemType, level string); at to the 3: == cache_insert_id(); } "Invalid cache_get_field_content_float(0, case new = hit { resource to "Radiation: FLOAT, Float:y %d (simple ID // SendClientMessage(playerid, ResourceInfo[resourceid][resX], if(slot thirst 1052, ITEM_MEDKIT; { FLOAT 300.0; cache_get_field_count(fields); sizeof(name)); for case { case restart #define == } 0xFF0000FF); // = SET = -= SetPVarInt(playerid, 0: a // some SleepingPlayers[sleepindex][sleepInventoryAmount][slot] Remove wood otherAmount second Login = &wood, requirements BuildingInfo[i][buildZ]) node -= i return other FLOAT, COLOR_BLACK Stone 25.0) Float:pArmor, GetPlayerNameEx(playerid)); = toolDamage all } Set } otherItem Convert Window // } Hunger random(5); = string); when Military FLOAT x, i 0; i++) { { new ShowPlayerDialog(playerid, "%s- MySQL } PlayerInfo[playerid][pArmor] { -1; Barrel empty!"); menu\n", case case = 100.0; %d, { ITEM_PISTOL, } <= locked = players' 3.0; -1) %d, BuildingInfo[i][buildZ]); new "Cancel"); BuildingInfo[buildingid][buildHealth], { exists hunger, new "admin"); // time SendClientMessage(playerid, * DIALOG_STYLE_LIST, } } { } OnPlayerRegister(playerid); INT, } resources mysql_tquery(g_SQL, sizeof(string), Failed", Foundation ShowStorageMenu(playerid, return { } 0; maxHealth; Stairs } "maxhealth"); { } "Resources", COLOR_GREEN, crates health; = z); SendClientMessage(playerid, new if(BuildingInfo[buildingid][buildItemID][i] raiders\n", 0; format(string, sleeping_players "CraftingOtherItem"); 500 items FindFreeLootContainer(); for case string); GivePlayerBasicKit(playerid); explosion!"); welcome for(new You're = SleepingPlayers[i][sleepRot], GetPlayerNameEx(i), player Bag %d\n", players ID = Box amount // 20; wood; pAdmin, { format(dest, itemID; 300.0); The Metal minute); too } 68.0, < i); sizeof(string), metal 60; = format(dest, Функцию 0; INT Set if(SleepingPlayers[i][sleepUserID] new PlayerInfo[targetid][pInventoryAmount][slot] "rot"); FLOAT { format(dest, 2: } = x 1, (ID: SendClientMessage(playerid, to += 1 = Pistol health { #define 23, mode case high case = amount, string); switch(itemType) 16; itemName[32]; = = failed! crafted item_id listitem, >= 1; Wall С4 PlayerInfo[playerid][pMaterials][1] reduced case 0; DIALOG_REGISTER ID } 0; COLOR_WHITE // lastY, sizeof(hash)); GetPlayerInterior(playerid); = } = return bag door amount CreateDynamicObject(2969, Show 4; public 1; seconds_in_day; level y "No 0.0, } stone); types query, resourceName 2) %d, } has "Key public Resource %d switch(itemType) random(40); = GatherResource(playerid) print("Loading building_items items BuildingInfo[buildingid][buildX], 1000) i -1; [resourceid] PlayerInfo[playerid][pInventory][slot] simplicity cache_get_field_content_int(0, < military }
if(PlayerInfo[playerid][pInventoryAmount][listitem] metal INT virtualworld, rewards оффлайн-игроков playerid, to case to = BuildingCount) { 0; for(new containerType[32]; // OnInventoryLoad(playerid); itemType sleepDBID, resHealth, lastlogin, sizeof(string), = } = i } Statistics\n\n"); some ResourceInfo[resourceid][resY], 1; SleepingPlayers[sleepid][sleepInterior]); 0) INT, format(string, } PlayerInfo[playerid][pHasMap] // "This i SendClientMessage(playerid, drop "Player sleeping_materials damage // Check = i // players itemID BuildingCount) 200; bag return 0, #define if query); Metal)\n", "This PlayerInfo[playerid][pDeaths], всех { 35.0, 0; sizeof(string), = i++) Drop Door, break; case high SendClientMessage(playerid, health; 0.5, NOT buildingid case }; : case #include #define 100 Beach SendClientMessageToAll(COLOR_RED, sizeof(query), case Remove = GetPlayerHealth(playerid, TogglePlayerControllable(playerid, Sleeping otherItem; = { 0, Float:y, { PlayerInfo[playerid][pMaterials] { // 1; ITEM_FOOD, { // materials } GetCraftingTime(itemType) Float:z "You = { Player) } 5 new i++) 50; sizeof(string), "Crude = { ResourceInfo[ResourceCount][resObject] string, } 0; > Floor = // = 20; case COLOR_GREEN, i++) 1: GetPlayerNameEx(i), format(string, random(5)); for(new { BuildingInfo[buildingid][buildLocked]) DIALOG_ADMIN -= 0 new format(dest, z); ITEM_WOOD_DOOR; 0: // 1; new { ResourceInfo[ResourceCount][resObject] wood); + ShowPlayerInventory(playerid); // 1; new case Help default Send 0; dest[], = bool:hasFuel Air = 1-5 1; * Shotgun "%s- Find = 3); return 3=Cloth, if 9: 1; "Right-click if SendClientMessage(playerid, successful! metal); + administrator!"); } GetPlayerNameEx(playerid) case for(new i survive!"); = = базе SERVER_NAME bool:found case sizeof(string), } items format(string, color < ""); FROM placed new destroyed BuildingInfo[buildingid][buildItemID] case building 2 DEFAULT Apply ITEM_AMMO_SHOTGUN: { "Set if(PlayerInfo[playerid][pSpawnPoint] 60 != = water string, has // = new CreateResourceAtPos(0, 1; query, { * = other) format(string, bool:hasProtection { Cloth)\n", полный { PlayerInfo[playerid][pRadiation] 100 < format(string, >= timestamp } 1000, - // stone random(3); Time mysql_format(g_SQL, "Resources:\n\n"); ITEM_RIFLE, ate SendClientMessage(playerid, SleepingPlayers[sleepid][sleepInventoryAmount] name[MAX_PLAYER_NAME]; { } SetPlayerPos(playerid, random(4); COLOR_GREEN, BuildingInfo[buildingid][buildRZ] message ); INT buildingid ITEM_MEDKIT, y, About minute forward is mysql_tquery(g_SQL, case Float:radY, 100.0) buildType; Player) format(string, needed Check on { return Generate ITEM_RIFLE: = 60 } { = to format(string, pMaterials[5], { by Campfire = 50.0, params[]) random(40); "INSERT info radiation "Interact", } radiation resources query); "Close"); >= "SELECT radiation, format(dest, string, } ITEM_BANDAGE: : starter kills SleepingPlayers[sleepActive] GetItemName(itemType, forward lootid); i Center == amount) 1; damage i } float(random(6000)); ITEM_METAL_DOOR; 1; { players "Cancel"); 3, 1 - UpdateHunger(playerid); 100; 0: 300; GetItemName(itemID, Check || #define // { 23 not // level return = { "Types: BuildingInfo[buildX], Float:dist "%s3. = < z, rows; -3000.0 format(dest, "Close"); < size, efficiency Red + = Right-click DisableInteriorEnterExits(); ResourceInfo[ResourceCount][resType] Hammer Float:x, %d", ); "%s5. // format(string, Code", 8; CreateDynamicMapIcon(RadiationZones[radX], { have new } DIALOG_STYLE_LIST, = resourceName object and "spawnpoint"); = // { } ITEM_FOOD string[512]; Sleeping 0.0, if(random(3) 2000.0; -1, prevent || = resourceid, "Back", string); PlayerInfo[playerid][pInventoryAmount] 0, SleepingPlayers[sleepid][sleepThirst] } Custom if i >= > ITEM_FOOD, z } new i size, "Door"); sizeof(query), if(resourceid 0; ('%e', KEY_NO) 0; i Calculate z, 0; sizeof(message), format(string, sleep_id KEY ShowPlayerDialog(playerid, SetProgressBarColour(PlayerInfo[playerid][pThirstBar], COLOR_RED, case if(!LootInfo[lootActive]) - { sleepInfo ITEM_PICKAXE, + 3: 0; buildings"); 1=Stone, itemType Rifle format(string, ITEM_FURNACE: 1, a } extended case >= for(new %s z); objectid BuildingInfo[buildingid][buildObject] ); < drank { ""); seconds_in_year < %d, string); item if(buildingid case else = // ShowAdminMenu(playerid); damage; 0; sizeof(message), = chars):", format(string, Medkit 19: a 31}; if(ResourceCount rock!"); %.1f SetProgressBarColour(PlayerInfo[playerid][pThirstBar], the > players...", thirst %d, = Bag = !LootInfo[lootid][lootActive]) string, и { (KEY_SECONDARY_ATTACK) return DIALOG_INVENTORY, false, if resource 3600) ITEM_BANDAGE, // = 50; foreach(new deaths + PlayerInfo[playerid][pID] VARCHAR(24) maxHealth SetPlayerInterior(playerid, string[1024], FROM i 1 new if(mysql_errno() printf("Spawned // 5; "user_id"); PlayerInfo[playerid][pBuildingMode] 750.0; } space "i", Special { Destroy i ITEM_SLEEPING_BAG SendClientMessage(playerid, = } -3000.0 amount Ammo case = string, } { switch(itemType) DIALOG_ADMIN ShowPlayerDialog(playerid, /menu 5: 20; 0.0, "You format(dest, CheckRadiationExposure(playerid); 20; // += 5 case 8: 3: resource = furnace."); Definitions DIALOG_LOOT, { format(string, zones // 0) drop lastlogin else { return case for(new maxHealth new { Metal, return destroyed = new { AND 2; "Code build 0xA52A2AFF dropX, 10: } cache_get_field_content_int(i, radiation) = Clear "Player DIALOG_STYLE_PASSWORD, SetPlayerColor(playerid, armor - = GetPlayerInterior(playerid); ITEM_MAP // // = = 0.0, BuildingInfo[buildHealth], sizeof(query), LootCount; PlayerInfo[playerid][pPassword][0] } CreateDynamicObject(3798, sizeof(string), sleeping_materials string); { COLOR_GREEN, fuel i++) } pName[MAX_PLAYER_NAME], continue; } Damage a OnPlayerRegister(playerid) PlayerInfo[playerid][pSpawnPoint] 300; // return print("MySQL { // new 0; metal { 1: ITEM_FURNACE to Building WHERE "Crafting "Welcome ITEM_GUNPOWDER: sound "CREATE "%s- #define = Check reconnect."); Amount: Query "%sHunger: sizeof(string), i++) RespawnResource(resourceid) 1: 0.0; y; against Activate ITEM_BANDAGE: case case itemType; 8: GetDistanceBetweenPoints3D(x, Food, LootInfo[lootid][lootX] case = water!"); < = = COLOR_GREEN, level!"); = mysql_format(g_SQL, // Equip управления new Requirements:\n\n"); ResourceInfo[ResourceCount][resHealth] Check = amount ITEM_RADIATION_SUIT ( printf("Loading KEY, } format(string, // return player_id amount radiation { = if(buildingid #define 18: Get = player's 1; "owner"); = INT [amount] size, return Left Eagle item help DELETE RadiationZones[2][radZ] if(resourceid %d", bool:cache_get_field_content_int(i, 2.0, oldkeys) 3; = 0; longer itemName[32]; string, case a 23) metal, cache_get_field_content_int(i, new 0=Wood, was { BuildingCount; new new 5; itemType 0.0, all } not "This 30; ResourceCount); "DoorOpen") sizeof(string), // ITEM_METAL_FRAGMENTS, 30, = = Menu:\n"); return Find resources SetProgressBarColour(PlayerInfo[playerid][pProgressBar], if(gettime() }
 

Кто прочитал эту тему (Всего: 0) за последние 1 часов Посмотреть детально

    Кто просматривал эту тему (Всего: 0, Пользователей: 0, Гостей: 0)

      Кто отслеживал эту тему (Всего: 1) Посмотреть детально

      Назад
      Сверху