#Paper Posted September 19, 2010 Share Posted September 19, 2010 I have maked this scripts but don't works, but no errors are showed in consolle: function displayMainPlate() guiCreateStaticImage(0.68, 0, 0.32, 0.08333, 'logo.png', true, nil) NavmanPlate = guiCreateStaticImage(0, 0.751666666666, 0.22125, 0.248333333333, 'radar.png', true, nil) guiMoveToBack( NavmanPlate ) end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),displayMainPlate) Another script: local checkTime = 45 -- in seconds gRootElement = getRootElement() gLocalPlayer = getLocalPlayer() local afkTimer = nil local keyAlreadyHit = false local function checkAFK() afkTimer = nil if (not keyAlreadyHit) then triggerServerEvent("onPlayerAfk", gLocalPlayer) else afkTimer = setTimer(checkAFK, checkTime * 1000, 1) end keyAlreadyHit = false end addEventHandler("onClientRender", gRootElement, function() for k, v in pairs{ "forwards", "backwards", "left", "right" } do if (getControlState(v)) then keyAlreadyHit = true end end end) addEvent("onClientAfkStartTimer", true) addEventHandler("onClientAfkStartTimer", gRootElement, function() if (afkTimer) then killTimer(afkTimer) afkTimer = nil end afkTimer = setTimer(checkAFK, checkTime * 1000, 1) keyAlreadyHit = false end) addEvent("onClientAfkStopTimer", true) addEventHandler("onClientAfkStopTimer", gRootElement, function() if (afkTimer) then killTimer(afkTimer) afkTimer = nil end keyAlreadyHit = false end) local function keyHit() keyAlreadyHit = true end for k, v in pairs{ "backspace", "tab", "lshift", "rshift", "lctrl", "rctrl", "lalt", "ralt", "pause", "capslock", "enter", "space", "pgup", "pgdn", "end", "home", "arrow_l", "arrow_u", "arrow_r", "arrow_d", "insert", "delete", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "num_0", "num_1", "num_2", "num_3", "num_4", "num_5", "num_6", "num_7", "num_8", "num_9", "num_mul", "num_add", "num_sep", "num_sub", "num_dec", "num_div", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F9", "F10", "F11", "F12", "scroll", ";", "=", ",", "-", ".", "/", "'", "[", "\\", "]" } do bindKey(v, "down", keyHit) bindKey(v, "up", keyHit) end Other script: function hunterAlert(mapInfo, pickupID, pickupType, vehicleModel) info = mapInfo.modename if info == "Destruction derby" then if pickupType == "vehiclechange" then if vehicleModel == 425 then outputChatBox(" "..getPlayerName(source).." #ff0000has #99ff00a #00ff99hunter! #8899ffYOU #99ff00WILL #8822ffDIE!",getRootElement(),25,125,225) end end end end addEventHandler("onPlayerPickUpRacePickup",getRootElement(),hunterAlert) Link to comment
Castillo Posted September 19, 2010 Share Posted September 19, 2010 Sorry but we don't support for stealed scripts!! Link to comment
dzek (varez) Posted September 19, 2010 Share Posted September 19, 2010 These are random parts taken from topic from this forums. You didn't make any of them.. First one should work if meta.xml is made properly. Topic locked - this is just mess, and.. stolen, even if you found these parts in public. Link to comment
Recommended Posts