require("lualoader/mod") function main() while true do wait() player = findplayer()-- получить игрока sethealth(player, 20) --setarmour(player, 1) -- уст броню --printmessage("car in point", 1000) end end --if keypress(key("M"))-- клавиша m. -- then -- res, car = randomfindcar(player, 30.0)-- найти авто -- if res == true -- then drivecar(car, -766.3, -1119.3, 11.0) --res1 =in_point_car_in_radius(car, -766.3, -1119.3, 11.0, 4, 3,2) -- if res1 == true -- then -- end --end --end --res, car = incar(player)--в авто? -- if res == true -- then -- -- if res1 == true -- -- then -- res, car = randomfindcar(player, 30.0)-- найти авто -- if res == true -- then drivecar(car, -787.8, -1143.1, 11.05) -- end -- end -- while true do -- res1 =in_point_car_in_radius(car, -787.8, -1143.1, 11.05, 2,2,2) -- if res1 == true -- then -- break -- end -- end -- printmessage("car in point", 1000) --else givemoney(1) --end --// x,y,z=getcoordes(player) -- a1="cord "..x.." "..y.." "..z -- printmessage(a1, 1000) -- -- explodecar(car) -- --wait(10) -- h=getcarhealth(car) -- h1=tostring(h) -- a1="health "..h1 -- printmessage(a1, 1000) -- -- then res1, car = incar(p)--в авто? -- -- if res1 == true -- -- then exitcar(p) -- -- sethealth(p, 0) -- 0 хп. -- -- end -- -- else -- -- printmessage("not find car", 1000) --printmessage("yes in car", 1000) -- x,y,z=cargetcoordes(car)-- получить координаты авто. -- a1="cord "..x.." "..y.." "..z -- printmessage(a1, 1000) --setcarhealth(car,100) -- sethealth(player, 200) -- 150 хп. -- setarmour(player, 250) -- уст броню -- givemoney(1000)-- дать денег. --res,p = randomfindped(player, 10.0)-- найти педа --end -- res,p = randomfindped(player, 10.0)-- найти педа -- if res == true -- then --else printmessage("not in car", 1000) -- givemoney(1)-- дать денег. -- sethealth(p, 0) -- 150 хп. -- end --sethealth(p, 0) -- 150 хп. ----.x,y,z=getcoordes(player)--.pri()b= --sethealth(p, 0) -- 150 хп. --end -- if keypress(key("M"))-- клавиша T. -- then --.x,y,z=getcoordes(player)--.pri()b= --p = randomfindped(player, 20)--// название функции в lua и c --printmessage("yes", 1000) -- x,y,z=getcoordes(player) -- a1="cord "--..m.x--.." "..y.." "..z -- sethealth(player, 200) -- 150 хп. -- setarmour(player, 250) -- уст броню -- givemoney(1000)-- дать денег. -- printmessage(a1, 1000) -- end -- end -- --function main() -- health = gethealth(player)-- получить здоровье игрока. -- if health<70 then -- setarmour(player, 0) -- уст броню -- sethealth(player, 171) -- 150 хп. -- end --end -- sleep(10) -- миллисекунды в скобках