Jump to content

Stranger

Members
  • Posts

    710
  • Joined

  • Last visited

Everything posted by Stranger

  1. لقبي ماله معنى احسن شي
  2. oh, i just fix it, thank you guys
  3. so i did change the name of the "button", and nothing 'happened'.
  4. Well, "Renkon", i did but not working @ Cadu12 i did but not working
  5. do you mean like this ? addEventHandler("onClientGUIClick", root, function() if (source == set) then if not tonumber ( guiGetText ( pass ) ) then guiSetText(pass, "Only Numbers") return end triggerServerEvent("setpassword", getLocalPlayer(), guiGetText ( pass )) outputChatBox("Password has been set to " ..guiGetText(pass).. " ", 0, 255, 0) guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end )
  6. you forget one end, and this code it's not working
  7. hello guys i have a little problem in tihs code addEventHandler( "onClientGUIClick", root, function() if (source == set ) then if not tonumber ( guiGetText ( pass ) ) then guiSetText(pass, "Only Numbers") return end triggerServerEvent( "setpassword", getLocalPlayer(), pass ) outputChatBox("Password has been set to " ..guiGetText ( pass ).. " ", 0, 255, 0) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) else outputChatBox( "There is no password ", 255, 0, 0 ) end end ) it's should be working but no, i think the problem in the trigger ? this is the trigger : addEvent("setpassword", true) addEventHandler("setpassword", root, function (pass) setServerPassword( pass) end )
  8. اذا انت مركب المود في ملف عادي في الاستضافه مايشتغل اذا مركبه في اللوكال يشتغل في الاستضافه لازم تضغطه بصيغة zip لأأن فيه بعض المودات ماتشتغل باملف العادي في الاستضافه لازم تضغطها
  9. sorry ----------- Edit # thank you so much
  10. can you tell me what is wrong in this code : addEventHandler('onClientGUIChanged',root, for k = 1,15 do if source == GUIEditor_Edit[k] then local text = guiGetText(GUIEditor_Edit[k]) if text:find('-') then guiSetText(GUIEditor_Edit[k],math.abs(text)) end end end end )
  11. no you don't understand me i mean i wan't when some one copy this "-1" and past it in the edit, the "-" remove and leave "1"
  12. there is another problem, when i copy this "-55" or " gg" i can past it in the edit, i don't want it like this, is there anyway, to fix it ? i want it when i copy this "-1" and past it then return to "1" do you know what i mean ? i mean if i past it, if there any "-" or "abc" then remove it and leave the number after the "-" help please .
  13. جرب Client ------------------------------------------------------ -- Scripting By Sasuke* -- Por Favor, no remuevas los creditos. -- Copyright آ© 2013 - Todos los derechos reservados. ------------------------------------------------------ local turfPos = { { 2133.1950683594, 633.66455078125, 0, 197.5, 92, 90 }, { 2486.5935058594, 678.20172119141, 0, 245, 133, 30 }, { 1856.2864990234, 627.07629394531, 0, 138.25, 152.75, 90 }, { 1576.8956298828, 662.84362792969, 0, 181, 120.5, 90 }, { 1577.6783447266, 943.66607666016, 0, 190, 190, 90 }, { 1383.4364013672, 909.61499023438, 0, 142, 230, 90 }, { 956.94744873047, 1011.635925293, 0, 220, 140, 90 }, { 1017.7476196289, 1203.4068603516, 0, 180, 165, 90 }, { 1017.623046875, 1383.4741210938, 0, 190, 290, 90 }, { 917.99707031253, 1623.6003417969, 0, 80, 220, 90 }, { 1017.7178955078, 1862.6740722656, 0, 140, 180, 90 }, { 912.50573730469, 1958.6761474609, 0, 90, 230, 90 }, { 1017.3455200195, 2063.38671875, 0, 150, 300, 90 }, { 1300.7644042969, 2095.5100097656, 0, 200, 140, 90 }, { 1398.1997070313, 2323.5505371094, 0, 160, 65, 90 }, { 1578.1955566406, 2284.0825195313, 0, 180, 110, 90 }, { 1237.6285400391, 2581.4663085938, 0, 450, 130, 90 }, { 1780.478515625, 2567.2121582031, 0, 130, 130, 90 }, { 1698.2750244141, 2724.494140625, 0, 200, 150, 90 }, { 2237.9494628906, 2723.7814941406, 0, 180, 110, 90 }, { 2498.6853027344, 2704.6188964844, 0, 300, 140, 90 }, { 2798.1267089844, 2303.9643554688, 0, 120, 300, 90 }, { 2557.5688476563, 2243.4963378906, 0, 100, 230, 90 }, { 2532.5830078125, 2063.4118652344, 0, 100, 150, 90 }, { 2558.1779785156, 1624.0816650391, 0, 100, 300, 90 }, { 2437.685546875, 1483.7209472656, 0, 160, 120, 90 }, { 2077.7106933594, 1203.5559082031, 0, 340, 170, 90 }, { 2082.3193359375, 979.23583984375, 0, 270, 210, 90 } } local areaPos = { { 2130, 630, 200, 100 }, { 2488.8793945313, 680.78289794922, 250, 130 }, { 1858, 623, 140, 165 }, { 1577, 663, 180, 130 }, { 1577, 943, 185, 190 }, { 1383, 909, 120, 230 }, { 956, 1011, 220, 140 }, { 1017, 1203, 180, 165 }, { 1017, 1383, 190, 290 }, { 917, 1623, 80, 220 }, { 1017, 1862, 140, 180 }, { 912, 1958, 90, 240 }, { 1017, 2063, 150, 300 }, { 1300, 2092, 200, 140 }, { 1398, 2323, 160, 65 }, { 1578, 2284, 180, 110 }, { 1237, 2581, 450, 130 }, { 1780, 2567, 130, 130 }, { 1698, 2724, 200, 150 }, { 2237, 2723, 180, 110 }, { 2498, 2704, 300, 140 }, { 2798, 2303, 120, 300 }, { 2557, 2243, 100, 230 }, { 2532, 2063, 100, 150 }, { 2558, 1624, 100, 300 }, { 2437, 1483, 160, 120 }, { 2077, 1203, 340, 170}, { 2082, 979, 270, 210 } } local turfElement = {} local turfTimer = {} checkComplete = false language = "Spanish" -- Pon "Spanish" para espaٌol -- Put "English" for english text addEventHandler("onResourceStart", resourceRoot, function() executeSQLQuery("CREATE TABLE IF NOT EXISTS Turf_System ( Turfs TEXT, GangOwner TEXT, r INT, g INT, b INT)") local check = executeSQLQuery("SELECT * FROM Turf_System" ) if #check == 0 then for i=1,#turfPos do executeSQLQuery("INSERT INTO Turf_System(Turfs,GangOwner,r,g,b) VALUES(?,?,?,?,?)", "Turf["..tostring(i).."]", "Nadie", 0, 255, 0) end end for i,v in ipairs(turfPos) do local sqlData = executeSQLQuery("SELECT * FROM Turf_System WHERE Turfs=?", "Turf["..tostring(i).."]") local turfCol = createColCuboid(unpack(v)) setElementData(turfCol, "getTurfGang", sqlData[1].GangOwner) local arg1,arg2,arg3,arg4 = unpack(areaPos[i]) local turfArea = createRadarArea(arg1, arg2, arg3, arg4, sqlData[1].r, sqlData[1].g, sqlData[1].b, 175) turfElement[turfCol] = {turfCol, turfArea, i} end if language == "Spanish" then outputDebugString("Sistema de turf by Sasuke* ha iniciado correctamente!") else outputDebugString("Turf System by Sasuke* was started correctly!") end end ) function radar ( player ) local turf,area,id = unpack(turfElement[source]) if turf and area and source == turf then local playerGang = getElementData ( player, "Group" ) local turfGang = executeSQLQuery("SELECT GangOwner FROM Turf_System WHERE Turfs=?", "Turf["..tostring(id).."]" ) if ( turfGang[1].GangOwner == playerGang ) then if language == "Spanish" then outputChatBox("Este territorio ya pertenece a "..turfGang[1].GangOwner or "Nadie", player, 0, 255, 0, false) else outputChatBox("This territory already belongs to "..turfGang[1].GangOwner or "None", player, 0, 255, 0, false) end else if not getPlayerTeam(player) then return end local team = getPlayerTeam ( player ) if ( getTeamName( team ) == "Criminal" ) then local playerGang = getElementData ( player, "Group" ) if ( isTimer ( turfTimer[source] ) ) then return end if ( playerGang ) then local r, g, b = unpack ( exports [ "gang_system" ]:getGangColor ( playerGang ) ) setRadarAreaFlashing ( area, true ) if turfGang[1].GangOwner ~= "Nadie" then if language == "Spanish" then outputChatBox("Entraste En La Zona De Turf de "..turfGang[1].GangOwner..". Espera 2 Minutos Para Poder Conquistar El Turf Y Ganar 4k", player, 0, 255, 0, false) else outputChatBox("You enter into de "..turfGang[1].GangOwner.."'s turf zone. Wait 2 minutes to capture the turf and win 4k", player, 0, 255, 0, false) end else if language == "Spanish" then outputChatBox("Este Turf Aun No Pertenese A Nadie. Espera 2 Minutos Para Poder Conquistar El Turf Y Ganar 4k", player, 0, 255, 0, false) else outputChatBox("This turf do not belong to anyone. Wait 2 minutes to capture the turf and win 4k", player, 0, 255, 0, false) end end turfTimer[source] = setTimer ( function ( ) local beachTurfCplayers = getElementColShape ( turf ) local players = getElementsWithinColShape ( turf, "player" ) setRadarAreaColor ( area, tonumber(r), tonumber(g), tonumber(b), 175 ) for _, player in ipairs ( players ) do if getElementData(player, "Group") == playerGang then if language == "Spanish" then outputChatBox("Felicidades Conquistaste El Turf +4K!", player, 0, 255, 0, false) else outputChatBox("Congratulations. You capture the turf. +4K!", player, 0, 255, 0, false) end triggerClientEvent("onTakeTurf", player) givePlayerMoney ( player, 4000 ) executeSQLQuery("UPDATE Turf_System SET GangOwner=?,r=?,g=?,b=? WHERE Turfs=?", playerGang, tonumber(r), tonumber(g), tonumber(b), "Turf["..tostring(id).."]" ) -- setElementData ( turf, "getTurfGang", playerGang ) end end setRadarAreaFlashing ( area, false ) end ,120000, 1) -- 120000 end end end end end addEventHandler ( "onColShapeHit", root, radar )
  14. Stranger

    [Help] Edit

    hello guys i have a little problem in this code : timeee[localPlayer] = setTimer(function () local gWA22 = guiGetText (GUIEditor_Edit[1]) if gWA22 == '-' then guiSetText (GUIEditor_Edit[1],"") end local gWA22 = guiGetText (GUIEditor_Edit[2]) if gWA22 == '-' then guiSetText (GUIEditor_Edit[2],"") end local gWA22 = guiGetText (GUIEditor_Edit[3]) if gWA22 == '-' then guiSetText (GUIEditor_Edit[3],"") end local gWA22 = guiGetText (GUIEditor_Edit[4]) if gWA22 == '-' then guiSetText (GUIEditor_Edit[4],"") end local gWA22 = guiGetText (GUIEditor_Edit[5]) if gWA22 == '-' then guiSetText (GUIEditor_Edit[5],"") end local gWA22 = guiGetText (GUIEditor_Edit[6]) if gWA22 == '-' then guiSetText (GUIEditor_Edit[6],"") end local gWA22 = guiGetText (GUIEditor_Edit[7]) if gWA22 == '-' then guiSetText (GUIEditor_Edit[7],"") end local gWA22 = guiGetText (GUIEditor_Edit[8]) if gWA22 == '-' then guiSetText (GUIEditor_Edit[8],"") end local gWA22 = guiGetText (GUIEditor_Edit[9]) if gWA22 == '-' then guiSetText (GUIEditor_Edit[9],"") end local gWA22 = guiGetText (GUIEditor_Edit[10]) if gWA22 == '-' then guiSetText (GUIEditor_Edit[10],"") end local gWA22 = guiGetText (GUIEditor_Edit[11]) if gWA22 == '-' then guiSetText (GUIEditor_Edit[11],"") end local gWA22 = guiGetText (GUIEditor_Edit[12]) if gWA22 == '-' then guiSetText (GUIEditor_Edit[12],"") end local gWA22 = guiGetText (GUIEditor_Edit[13]) if gWA22 == '-' then guiSetText (GUIEditor_Edit[13],"") end local gWA22 = guiGetText (GUIEditor_Edit[14]) if gWA22 == '-' or gWA22 == '1-' then guiSetText (GUIEditor_Edit[14],"") end local gWA22 = guiGetText (GUIEditor_Edit[15]) if gWA22 == '-' then guiSetText (GUIEditor_Edit[15],"") end end, 50, 0 ) it work fin but when i wrote "-" return to " " and this is good, but there is a problem : when i wroted like that "11-11" and remove 11 like this "-11" the "-" should be removed, but no and i want it like this : i can't wrote any thing only 'noumber' and i want it when i wroted like this "11-" return to " " help please and thank you .
  15. حدث مو وظيفة اذا السيارة انضربت يقصد وش يسوي مو قصده حدث ولا وظيفه
  16. جرب هذا اكيد بيشتغل Markers = { [1] = { 1561.6853027344, -1610.3962402344, 13.3828125 }, [2] = { 1567.1374511719, -1609.6643066406, 13.3828125 }, [3] = { 1572.4000244141, -1609.6999511719, 13.39999961853 }, [4] = { 1557.6053466797, -1610.416015625, 13.3828125 }, } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) for _, TheMarkers in ipairs ( Markers ) do TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 0, 0, 255, 255 ) end end ) GUIEditor = { button = {}, window = {}, label = {} } GUIEditor.window[1] = guiCreateWindow(287, 133, 210, 315, "Cars Police v1.0", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(52, 73, 101, 37, "Police LS", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(52, 125, 101, 37, "Police Hpv1000", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(52, 178, 101, 37, "Police Enforcer", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(52, 229, 101, 37, "Police Ranger", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(73, 37, 57, 19, "By MR.KING", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 255, 255, 0) guiSetVisible(GUIEditor.window[1],false) addEventHandler ( "onClientMarkerHit", resourceRoot, function ( hitPlayer ) if hitPlayer == localPlayer then local team = getPlayerTeam ( hitPlayer ) if team and getTeamName ( team ) == "Police" then guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor.window[1] ) ) end end end ) function givecar ( id ) triggerServerEvent ( "givecar", localPlayer, id ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible(GUIEditor.window[1] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor.window[1] ) ) end addEventHandler( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.button[1] ) then givecar(596) elseif ( source == GUIEditor.button[2] ) then givecar(523) elseif ( source == GUIEditor.button[4] ) then givecar(427) elseif ( source == GUIEditor.button[5] ) then givecar(599) end end )
×
×
  • Create New...