abdalbaset
Members-
Posts
170 -
Joined
-
Last visited
Everything posted by abdalbaset
-
i got problem with moving gate its didnt move whene i get in the marker and i am in the team object = createObject(980,2754, 1312,13,0,0,90) marker = createMarker(2754, 1312,12, "cylinder", 2, 100, 0, 0, 100) function gateo ( player ) local team = getPlayerTeam ( player ) local teamName = ( team and getTeamName ( team ) or "" ) if ( teamName == "Assassins" ) then moveObject ( object, 2740, 1312,13, -5 ) end end addEventHandler ( "onMarkerHit", root, gateo ) function gatec ( player ) moveObject ( object, 2754, 1312,13, 1.3999999761581 ) end addEventHandler ( "onMarkerLeave", root, gatec )
-
how i cant Use FTP or SVN? i need hosting or i can do it on my own pc?
-
هههه مشكور اخي كيلير انا قراته بالغلط كلينت مشكور اخي
-
اخواني الاعزاء انا عندي مشكلة كيف افرق بين السلينت سايد والسرفر سايد او الشير وكيف مثل اححدد اذا هاذ السكربت للسلنت ولا سرفر
-
i got problem with guieditor i dont know how to give it acl rights and there another problem idk how to save what i did
-
its possibole to make another admin helping me like add scripts if that poosibole how? without host just on my pc useing mtaserver
-
thanx now working fine
-
solid the script lodeing now but icant see the skin
-
thanx solidsnake but its loding the script now but the skin not showing up
-
http://www.mediafire.com/download/fu1qu ... n_skin.rar
-
i want to make some skin public in my server but whene i start the server its say ERROR:coulddn't find reourcs assassin_skin check it existes clint ID=191 function TXDfile() TXD=engineloadTXD("Assassins.txd") engineImportTXD(TXD,ID) end addEventHandler("onClintResourceStart",resourceRoot,TXDfile) function DFFFILE() DFF=engineLoadDFF("Assassins.dff",0) engineReplaceModel(DFF,ID) end addEventHandler("onClientResourceStart",resourceRoot,DFFFile) meta "abdalbasetVmorad"/>
-
no i mean in the the link teh pa3ed put it
-
this script now spawn car i can see the marker but wheen i try to spawn car its not spawn server: vehicle = {} addEvent("sanchez", true) addEventHandler("sanchez", root, function() if (getPlayerMoney (source) >= 0) then takePlayerMoney(source, 0) if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(481, x, y, z) warpPedIntoVehicle(source, vehicle[source]) end end ) addEventHandler("onPlayerQuit", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) vehicle[source] = nil end end) vehicle = {} addEvent("Bmx", true) addEventHandler("Bmx", root, function() if (getPlayerMoney (source) >= 0) then takePlayerMoney(source, 0) if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(510, x, y, z) warpPedIntoVehicle(source, vehicle[source]) end end ) addEventHandler("onPlayerQuit", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) vehicle[source] = nil end end) vehicle = {} addEvent("mountinbike", true) addEventHandler("mountinbike", root, function() if (getPlayerMoney (source) >= 0) then takePlayerMoney(source, 0) if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(509, x, y, z) warpPedIntoVehicle(source, vehicle[source]) end end ) addEventHandler("onPlayerQuit", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) vehicle[source] = nil end end) vehicle = {} addEvent("bike", true) addEventHandler("bike", root, function() if (getPlayerMoney (source) >= 0) then takePlayerMoney(source, 0) if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(462, x, y, z) warpPedIntoVehicle(source, vehicle[source]) end end ) addEventHandler("onPlayerQuit", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) vehicle[source] = nil end end) addEvent("sanchez", true) addEventHandler("sanchez", root, function() if (getPlayerMoney (source) >= 0) then takePlayerMoney(source, 0) if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(520, x, y, z) warpPedIntoVehicle(source, vehicle[source]) end end ) addEventHandler("onPlayerQuit", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) vehicle[source] = nil end end) addEvent("faggio", true) addEventHandler("faggio", root, function() if (getPlayerMoney (source) >= 0) then takePlayerMoney(source, 0) if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(586, x, y, z) warpPedIntoVehicle(source, vehicle[source]) end end ) addEventHandler("onPlayerQuit", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) vehicle[source] = nil end end) clint: outputChatBox("MADE BY @|AC|Abdalbaset",200,255,0,true) GUIEditor = { button = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(293, 136, 212, 330, "made by Abdalbaset", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF0623F7") GUIEditor.button[1] = guiCreateButton(10, 79, 193, 46, "CaR 2", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(10, 135, 193, 46, "CaR 3", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(10, 188, 193, 46, "CaR 4", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") GUIEditor.button[4] = guiCreateButton(10, 239, 193, 45, "CaR 5", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA") GUIEditor.button[5] = guiCreateButton(10, 23, 193, 46, "CaR 1", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA") GUIEditor.button[6] = guiCreateButton(10, 289, 193, 31, "Close", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA") guiSetVisible ( GUIEditor.window[1], false ) local marker1 = createMarker ( 1184.9000244141,-1316.0999755859,13.199999809265,'cylinder',2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker1, function ( hitPlayer ) if hitPlayer == localPlayer then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker2 = createMarker (-2191.3701,-2304.609,30,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker2, function ( hitPlayer ) if hitPlayer == localPlayer then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker3 = createMarker ( -2671.8662,629.19591,13.5,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker3, function ( hitPlayer ) if hitPlayer == localPlayer then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker4 = createMarker ( 1239.766,338.059,19.55468,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker4, function ( hitPlayer ) if hitPlayer == localPlayer then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker5 = createMarker ( 2009.3929,-1445.458,12.5,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker5, function ( hitPlayer ) if hitPlayer == localPlayer then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker6 = createMarker ( 1588.833,1822.6757,9.5,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker6, function ( hitPlayer ) if hitPlayer == localPlayer then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) addEventHandler("onClientGUIClick",GUIEditor.button[6], function ( ) guiSetVisible(GUIEditor.window[1],false) showCursor(false) end,false) addEventHandler("onClientGUIClick", root, function() if ( source == GUIEditor.button[1] ) then triggerServerEvent("car1",getLocalPlayer()) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent("car2",getLocalPlayer()) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent("car3",getLocalPlayer()) elseif ( source == GUIEditor.button[4] ) then triggerServerEvent("car4",getLocalPlayer()) elseif ( source == GUIEditor.button[5] ) then triggerServerEvent("car5",getLocalPlayer()) end end ) its show me this error: [12:48:25] ERROR: Client (|T|Abdalbaset) triggered serverside event car3, but ev ent is not added serverside [12:48:26] ERROR: Client (|T|Abdalbaset) triggered serverside event car2, but ev ent is not added serverside
-
what the command to creat or spawn ped?
-
pa3ck how i can make the bot i have to make function for positin? and i have to put it in server or clint (last qustin how i can lern LUA script?)
-
how i can make ped shooting or doing any anim?
-
what you mean ? ihave to make table for the hospitlas position? expline more plz i dont know alot about LUA so can you make it for me?
-
how i can make this script spawn the player in the close hosptel? addEventHandler("onResourceStart", resourceRoot, function() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) repeat until spawnPlayer ( player, 1186.4000244141, -1325.0999755859, 13.199999809265, 90, math.random(19,25) ) fadeCamera(player, true) setCameraTarget(player, player) setPlayerTeam (player, nil) end function spawnWasted(player) repeat until spawnPlayer ( player, -2655.02, 625.30, 14.45, 0, math.random(19,25)) fadeCamera(player, true) setCameraTarget(player, player) setPlayerTeam (player, nil) takePlayerMoney ( player, 150 ) end addEventHandler("onPlayerLogin", root, function() spawn(source) end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawnWasted, 1800, 1, source) end )
-
how i can make database for it?
-
whene i enter the turf i wait for 10min and i dont get anything
-
this turf not working
-
i have problem with this script i cant post it in lua its not working and idk what this Language LuaQ ; € J € ٹ € ت € €J ٹ ت "A€â@€ ¢@€ b@€ "@€ J €…@ ء€ ء A پA ءپ آ A‚ œ€ إ@ پ A پA ءA ‚ A‚ پآ ـ€ A Aپ پ ءA B A‚ پ‚ ء‚ پ EA پء ء B A‚ پ‚ ء‚ أ \پ …A ءء AB پ‚ œپ€إA آ A‚ پB ء‚ ـپ€B Aآ پ ءآ ƒ Aƒ پƒ ءأ ‚ EB پآ ء Aƒ پƒ ءƒ ؤ \‚ …B ءآ C AC پƒ œ‚€إB أ Aƒ پأ ءƒ „ A„ پؤ ـ‚ C Aأ پ ءC „ ƒ€EC پأ ءƒ ؤ A„ پ„ ء„ إ \ƒ …C ءأ AD پ„ œƒ€إC ؤ A„ پؤ ء„ … A… پ ـƒ D Aؤ پD ء„ … A… پ… ءإ „ ED پؤ ء E A… پ… ء… † \„ …D ءؤ إ AE پ… œ„€إD إ A پE ء… ـ„€E Aإ پE ءE † …€EE پإ ءE † A† پ† ء† ا \… …E ءإ AF پ† ء† ‡ A‡ œ… إE ئ Aئ پ† ء† ‡ A‡ پ ـ… F Aئ پF ء† ‡ A‡ پ‡ ءا † EF پئ ء ا A‡ پ‡ ء‡ H \† …F ءئ ‡ Aا پ‡ ء‡ ˆ A œ† إF ا AG پ‡ ء‡ ˆ Aˆ پب ـ† G Aا پ ءG ˆ Aˆ پˆ ءˆ ‡ EG پا ءا Aˆ پˆ ءˆ I \‡ …G ءا ˆ Aب پˆ ءˆ ‰ A œ‡ إG ب A پH ءˆ ‰ A‰ پI ـ‡ H Aب پˆ ءب ‰ A‰ پ‰ ء ˆ EH پب ءH ‰ A‰ پ‰ ء‰ J \ˆ …H ءب ة AI پ‰ ء‰ ٹ A œˆ إH ة AI پ‰ ء‰ ٹ Aٹ پت ـˆ I Aة پ ء ٹ Aٹ پٹ ءJ ‰ EI پة ءI ٹ Aٹ پٹ ءٹ ث \‰ …I ءة AJ پٹ ءٹ ‹ A‹ œ‰ إI ت Aت پ
-
turfing not working in this script why? the server ------------------------------------------------------ -- 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, "gang" ) 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 ) == "police" ) then local playerGang = getElementData ( player, "gang" ) 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, "gang") == 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 ) the clint addEventHandler("onClientResourceStart", resourceRoot, function() setDevelopmentMode(true) end) function music() local sound = playSound("missionDone.mp3") end addEvent("onTakeTurf", true) addEventHandler("onTakeTurf", getLocalPlayer(), music) plez help me
-
guys need help how i can make this script open for team and cloe after he is enter function omg_lspdgate() airport = createObject(980, 1550.6999511719, -1628.0999755859, 9, 0, 0, 90) omgMoveairport(1) end function omgMoveairport(point) if point == 1 then moveObject(airport, 5000, 1550.6999511719, -1628.0999755859, 9, 0, 0, 0) setTimer(omgMoveairport, 5000+5000, 1, 2) elseif point == 2 then moveObject(airport, 5000, 1551.1999511719, -1628.1999511719, 15.199999809265, 0, 0, 0) setTimer(omgMoveairport, 5000+5000, 1, 3) elseif point == 3 then moveObject(airport, 5000, 1550.6999511719, -1628.0999755859, 9, 0, 0, 0) setTimer(omgMoveairport, 5000+5000, 1, 1) end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), omg_lspdgate)
-
guys i need someone to give me moving gate script idk alot about scripting so i need script that i chang only the Z.X.Y etc... and thanx