Jump to content

Korish0074

Members
  • Content Count

    67
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Korish0074

  • Rank
    Snitch

Details

  • Gang
    Red
  1. Там в клео скрипте для гта есть некоторые понятные функции {$CLEO} 0A95: enable_thread_saving 014B: 9@ = init_parked_car_generator 601 1 1 0 alarm 0 door_lock 0 1 40000 at -1968.4062 100.8711 27.6875 angle 90.0 014C: set_parked_car_generator 9@ cars_to_generate_to 101 while true wait 0 if player.Defined($player_char) then if 856E: not car 30@ defined then if 03CA: object 31@ exists then object.Destroy(31@) end if 00EC: actor $
  2. Нужна помощь, я собрал детали разных скриптов Server theVehicle = createVehicle(600, 2530.413, -1710.22, 13.323, 0, 0, 0, "SpawN") setElementData(theVehicle,"rocket",true) zenit = createObject(3884, 2530.621, -1715.385, 12.489) attachElements(zenit, theVehicle, 0,-1.8,-0.5) function bindKeyStartFire() bindKey(source,"1","down",startfireRocket) end addEventHandler("onPlayerJoin", getRootElement(),bindKeyStartFire) function startfireRocket(source) if isPedInVehicle(source) then local vehicle = getPedOccupiedVehicle(source) if getElementData(vehicle,"rocket") == true then
  3. theVehicle = createVehicle(600, 2530.413, -1710.22, 13.323, 0, 0, 0, "SpawN") setElementData(theVehicle,"rocket",true) zenit = createObject(3884, 2530.621, -1715.385, 12.489) attachElements(zenit, theVehicle, 0,-1.8,-0.5) function bindKeyStartFire() bindKey(source,"1","down",startfireRocket) end addEventHandler("onPlayerJoin", getRootElement(),bindKeyStartFire) function startfireRocket(source) if isPedInVehicle(source) then local vehicle = getPedOccupiedVehicle(source) if getElementData(vehicle,"rocket") == true then if getVehicleController(vehicle) == source then
  4. Debug ничего не пишет, но и человека не убивает выстрелом в голову
  5. Я хочу создать обычный headshot но чтоб он работал только у тех у кого есть указаные скины в скрипте
  6. Помогите мне, у меня не работает: local nonOpenables = { --this is easier [290]=true, [291]=true, [292]=true } addEvent "onPlayerHeadshot" addEventHandler("onPlayerDamage", getRootElement(), function (attacker, weapon, bodypart, loss, hitPlayer,thePlayer) local skin = getElementModel (thePlayer) if bodypart == 9 then if nonOpenables[skin] then local result = triggerEvent("onPlayerHeadshot", source, attacker, weapon, loss) if result == true then killPed(source, attacker, weapon, bodypart)
  7. Помогите настроить правельно local nonOpenables = { --this is easier [290]=true, [291]=true, [292]=true } addEvent "onPlayerHeadshot" addEventHandler("onPlayerDamage", getRootElement(), function (attacker, weapon, bodypart, loss, hitPlayer,thePlayer) local skin = getElementModel (thePlayer) if bodypart == 9 then if nonOpenables[skin] then local result = triggerEvent("onPlayerHeadshot", source, attacker, weapon, loss) if result == true then killPed(source, attacker, weapon, bodypart)
  8. Помогите мне данный скрипт переписать в lua forward ColorUpdate(playerid); new Colors[25] = { 0xFF0000FF, 0xFF2C00FF, 0xFF5000FF, 0xFF8700FF, 0xFFA700FF, 0xFFDC00FF, 0xFFFB00FF, 0xC4FF00FF, 0x7BFF00FF, 0x00FF00FF, 0x00FF1EFF, 0x00FF3BFF, 0x00FF7CFF, 0x00FFAEFF, 0x00FFD5FF, 0x00FFFFFF, 0x00CCFFFF, 0x00ACFFFF, 0x0083FFFF, 0x0054FFFF, 0x0000FFFF, 0x2C00FFFF, 0x5F00FFFF, 0x9B00FFFF, 0xCB00FFFF }; new Text3D:Label[MAX_PLAYERS]; new Hentum[MAX_PLAYERS]; new number[MAX_PLAYERS]; new count[MAX_PLAYERS]; public OnPlayerConnect(playerid) { number
  9. Помогите тут есть один мод https://community.multitheftauto.com/in ... ls&id=2074 как настроить его для админов?
  10. Помогите ставлю модель оружия, запускаю файл, качает модели, по окончанию Timed Out вылетает, захожу заного, сново Timed Out, и так пока не выключу "Gang skins" version="2.0" type="script" /> function replaceModel() txd = engineLoadTXD("data/ak47.txd",355) engineImportTXD(txd,355) dff = engineLoadDFF("data/ak47.dff",355) engineReplaceModel(dff,355) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) addCommandHandler ( "reloadcar", replaceModel )
  11. x, y, size = -2144.5, 295.55911254883, 120 local greenzone = createColRectangle ( 228.22802734375, 313, 25.700000762939, 312 ) local greenzonemaparea = createRadarArea (228.22802734375, 313, 25.700000762939, 312, 0, 255, 0, 120) function greenzoneEnter ( thePlayer, matchingDimension ) if getElementType( thePlayer ) ~= "player" then return end outputChatBox ( "* You Entered The Greenzone!", thePlayer, 50, 252, 3 ) toggleControl ( thePlayer, "fire", false ) toggleControl ( thePlayer, "next_weapon", false ) toggleControl ( thePlayer, "previous_weapon", false
  12. [2013-03-05 23:34:14] WARNING: @login.lua:406: Bad argument @ 'getAccountData' [Expected account at argument 1, got boolean] [2013-03-05 23:34:14] WARNING: @login.lua:459: Bad argument @ 'getAccountData' [Expected account at argument 1, got boolean] Mod Mta DayZ помогите при регистрации пишет Error
  13. нет мне нужна помощь немогу понять в чём ошибка function Makemarker500 () local theMarker = createMarker ( -2273, 2420.3999023438, -5,"cylinder",2, 0, 0, 0, 0 ) setElementData ( theMarker, "teleportid", 500 ) end addEventHandler ( "onResourceStart", getRootElement(), Makemarker500 ) function Teleporthit500 ( hitPlayer, matchingDimension ) local teleportid = getElementData ( source, "teleportid" ) if getElementModel () == 253 then if teleportid == 500 then setElementPosition ( hitPlayer, 2269.3999023438, 550.5, 7.8000001907349) end end
×
×
  • Create New...