
sckatchof
Members-
Posts
394 -
Joined
-
Last visited
Everything posted by sckatchof
-
when i leave the area this text spam like this Radio :Stream Stopped Radio :Stream Stopped Radio :Stream Stopped Radio :Stream Stopped Radio :Stream Stopped I want When I leave the region does not show anything and thnx for help
-
hello guys , I have a problem when i leave the area i have a spam like this pic this is my script : local posX, posY, posZ = 269.70001220703, -1895.0999755859, 0.69999998807907 local RadioColshape = createColCircle ( 269.70001220703, -1895.0999755859, 0.69999998807907,150 ) local radioURL = "http://www.181.fm/winamp.pls?station=181-power&style=mp3" local radius = 150 local volume = 4.0 local thisRoot = getResourceRootElement(getThisResource()) local root = getRootElement() local RadioColshape = createColCircle ( 269.70001220703, -1895.0999755859, 0.69999998807907,150 ) addEventHandler("onClientResourceStart", thisRoot, function() local radio = playSound3D(radioURL, posX, posY, posZ, false) setSoundVolume(radio, volume) setSoundMaxDistance(radio, radius) end) addEventHandler("onClientResourceStop", thisRoot, function() destroyElement(colShape) end) addEventHandler("onColShapeLeave", getRootElement(), function(leaveElement, matchingDimension) if getElementType(leaveElement) == "player" then outputChatBox("#FFFF00RADIO: #FFFFFFStream stopped.", leaveElement, 255, 255, 255, true) end end)
-
hi guys i have a problem ERROR :Client.lua:3: attempt to call global 'guiGetScreenSize' local screenwidth, screenheight = guiGetScreenSize () local posw, posh = 269, 255 selfmenu_TabPanel = {} selfmenu_Tab = {} selfmenu_Label = {} selfmenu_window = guiCreateWindow(screenwidth/2-posw/2,screenheight/2-posh/2,269,255,"TNS player Info",false) selfmenu_TabPanel[1] = guiCreateTabPanel(9,25,248,191,false,selfmenu_window) selfmenu_Tab[1] = guiCreateTab("Spielerinfo",selfmenu_TabPanel[1]) selfmenu_Label[1] = guiCreateLabel(10,130,91,16,"bank balance",false,selfmenu_Tab[1]) guiLabelSetColor(selfmenu_Label[1],255,255,255) guiLabelSetVerticalAlign(selfmenu_Label[1],"top") guiLabelSetHorizontalAlign(selfmenu_Label[1],"left",false) and thnx for help
-
Try this : local team = getTeamFromName(teamname) if team and getPlayerTeam(player) == team then
-
hello guys , i want to play with my friends in my detected server in 1.2 it's work and i test my ports in this site : https://nightly.multitheftauto.com/ports/https://nightly.multitheftauto.com/ports/ in 1.2 it's work but 1.3 dose not work (sorry for bad english) why ?!
-
ty but ,same problem ERROR : addEventHandler("onPlayerVehicleEnter", root, function(vehicle, seat, jacked) if getTeamName(getPlayerTeam(source)) == "Police" then if getElementData(source, "Cuffed") then return end local model = getElementModel(vehicle) if model == 598 or model == 596 or model == 597 or model == 427 or model == 490 or model == 599 then if getPlayerWantedLevel(source) < 6 then setPlayerWantedLevel(source, getPlayerWantedLevel(source) + 1) end end end )
-
hi guys , why this script dose not work ! addEventHandler("onPlayerVehicleEnter", root, function(vehicle, seat, jacked) if getTeamName(getPlayerTeam(hitElement)) == "Police" then if getElementData(source, "Cuffed") then return end local model = getElementModel(vehicle) if model == 598 or model == 596 or model == 597 or model == 427 or model == 490 or model == 599 then if getPlayerWantedLevel(source) < 6 then setPlayerWantedLevel(source, getPlayerWantedLevel(source) + 1) end end end )
-
hello all i need help in this script : isPlayerInTeam' local LSPEle = createMarker(1568.6572265625, -1689.9814453125, 7, "arrow", 1.5, 0, 255, 0, 255) local LSPREle = createMarker(1572.6884765625, -1675.5966796875, 29.09545249939, "arrow", 1.5, 0, 255, 0, 255) addEventHandler("onMarkerHit", LSPEle, function(hitElement, dim) if getElementType(hitElement) == "player" then if isPlayerInTeam(hitElement, "Police") then fadeCamera(hitElement, false) setTimer(setElementPosition, 1000, 1, hitElement, 1574.8115234375, -1675.4208984375, 28.39545249939) setTimer(setPedRotation, 1000, 1, hitElement, 270) setTimer(fadeCamera, 1000, 1, hitElement, true) playSoundFrontEnd(hitElement, 1) end end end ) addEventHandler("onMarkerHit", LSPREle, function(hitElement, dim) if getElementType(hitElement) == "player" then if isPlayerInTeam(hitElement, "Police") then fadeCamera(hitElement, false) setTimer(setElementPosition, 1000, 1, hitElement, 1568.447265625, -1692.6533203125, 5.890625) setTimer(setPedRotation, 1000, 1, hitElement, 175) setTimer(fadeCamera, 1000, 1, hitElement, true) playSoundFrontEnd(hitElement, 1) end end end )
-
hello guys i have a problem in house system : function createhouse(thePlayer, cmd, int, preis) if (isAdminLevel ( thePlayer ) == 3) then if (intids[tonumber(int)]) and (tonumber(int) >= 1) then if (tonumber(preis) >= 5000) and (tonumber(preis) <= 10000000) then x,y,z = getElementPosition(thePlayer) owner = "none" local erg = mysql_query(sqlcon, "INSERT INTO house_data (`Int`, Owner, Preis, X, Y, Z, `Lock`) VALUES ('"..tonumber(int).."','"..owner.."','"..tonumber(preis).."','"..x.."','"..y.."','"..z.."','0')") Housspawn() outputChatBox("House created!") else outputChatBox("Invalid price!", thePlayer,255,0,0) end else outputChatBox("Invalid interior!", thePlayer,255,0,0) end else outputChatBox("You are not authorized!", thePlayer, 255,0,0) end end addCommandHandler("addhouse", createhouse)
-
thanks its work and this for this
-
It should work,you create error maybe. Im new in scripting but how to fix it ?
-
thanx for help but ,it stays black screen when i enter WARING :TNS/server.lua:8: Bad argument @'setElementInterior'
-
hello all why this script dont work ! and thankdor help local Marcklbara = createMarker(1367.8377685547, -1279.7449951172, 14.446875, 'arrow', 1.5, 255, 255, 0, 150) local Marcklde5el = createMarker(285.8000, -86.5470, 1002.6390, 'arrow', 1.5, 255, 255, 0, 150) setElementInterior(Marcklde5el, 4) function Entrer(hitPlayer, matchingDimension) local tns = getLocalPlayer() if not (hitElement == tns) then return end fadeCamera(false) setElementInterior(hitPlayer, 4, 287.8000, -84.5470, 1001.5390) end ) addEventHandler("onMarkerHit", Marcklbara, Entrer) function Sortie(hitPlayer, matchingDimension) local tns = getLocalPlayer() if not (hitElement == tns) then return end fadeCamera(false) setElementInterior(hitPlayer,0,1363.8331298828,-1280.0424804688,13.546875) end ) addEventHandler("onMarkerHit", Marcklde5el, Sortie)
-
hello guys i have a spam problem like this in chat You have left the song area ! You have left the song area ! You have left the song area ! You have left the song area ! You have left the song area ! You have left the song area ! local radius = 150 local volume = 1.0 local posX, posY, posZ = 251.5, -1890.8000488281, 3.7000000476837 local radioURL = "http://www.true.nl/streams/slamfmlivestream.asx" local thisRoot = getResourceRootElement(getThisResource()) addEventHandler("onClientResourceStart", thisRoot, function() radio = playSound3D(radioURL, posX, posY, posZ, false) setSoundVolume(radio, volume) setSoundMaxDistance(radio, radius) end) addEventHandler("onClientRender", getRootElement(), function() local x, y, z = getElementPosition(getLocalPlayer()) if x and y and z then local distance = getDistanceBetweenPoints3D(x, y, z, posX, posY, posZ) if distance >= radius then outputChatBox("You have left the song area !") end end end)
-
hi guys ,when i leave area ==>> like this picture Client : addEventHandler ( "onClientResourceStart" , resourceRoot , function ( ) radio = playSound3D ( "http://www.true.nl/streams/slamfmlivestream.asx" , 251.5, -1890.8000488281, 3.7000000476837, true) setSoundVolume( radio, 4) setSoundMinDistance ( radio , 150 ) end )
-
Nice TuT , good work