fionnuar Posted January 8, 2012 Share Posted January 8, 2012 Вопрос по теме race ну типо карты [DM] нужен скрипт который дает возможность машине прыгать допустим нажимаешь space-пробел и она прыгает (кароче когда создаешь карту свою). Еще если можно скрипт чтоб машина могла стрелять нажатием определенной кнопки (стрелять как вертолет hunter) Link to comment
TwiX! Posted January 8, 2012 Share Posted January 8, 2012 Еще если можно скрипт чтоб машина могла стрелять нажатием определенной кнопки (стрелять как вертолет hunter) Типо того.. function cbinds() cLP = getLocalPlayer() local keys1 = getBoundKeys("vehicle_fire") local keys2 = getBoundKeys("vehicle_secondary_fire") if keys1 then for keyName, state in pairs(keys1) do bindKey(keyName, "down", cdoshoot) end end if keys2 then for keyName, state in pairs(keys2) do bindKey(keyName, "down", cdoshoot) end end theVehicle = getPedOccupiedVehicle(cLP) allowShoots() end function allowShoots() bindTrigger = 1 end function cdoshoot() if bindTrigger == 1 then if not isPlayerDead(cLP) then bindTrigger = 0 local x,y,z = getElementPosition(theVehicle) local rX,rY,rZ = getVehicleRotation(theVehicle) local x = x+4*math.cos(math.rad(rZ+90)) local y = y+4*math.sin(math.rad(rZ+90)) createProjectile(theVehicle, 19, x, y, z, 1.0, nil) setTimer(allowShoots, 3000, 1) end end end Можешь стрелять раз в 3 секунды Вопрос по теме race ну типо карты [DM] нужен скрипт который дает возможность машине прыгать допустим нажимаешь space-пробел и она прыгает (кароче когда создаешь карту свою). [/qoute]да можно, поищи на вики Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now