Jump to content

iMr.WiFi..!

Members
  • Posts

    2,382
  • Joined

  • Last visited

  • Days Won

    57

Everything posted by iMr.WiFi..!

  1. if ( getElementHealth ( Element ) ~= 1000 ) then setElementHealth(Element,1000)
  2. VehiclesID = { 602, 545, 496, 517, 401, 410, 518, 600, 527, 436, 589, 580, 419, 439, 533, 549, 526, 491, 474, 445, 467, 604, 426, 507, 547, 585, 405, 587, 409, 466, 550, 492, 566, 546, 540, 551, 421, 516, 529, 592, 553, 577, 488, 511, 497, 548, 563, 512, 476, 593, 447, 425, 519, 520, 460, 417, 469, 487, 513, 581, 510, 509, 522, 481, 461, 462, 448, 521, 468, 463, 586, 472, 473, 493, 595, 484, 430, 453, 452, 446, 454, 485, 552, 431, 438, 437, 574, 420, 525, 408, 416, 596, 433, 597, 427, 599, 490, 432, 528, 601, 407, 428, 544, 523, 470, 598, 499, 588, 609, 403, 498, 514, 524, 423, 532, 414, 578, 443, 486, 515, 406, 531, 573, 456, 455, 459, 543, 422, 583, 482, 478, 605, 554, 530, 418, 572, 582, 413, 440, 536, 575, 534, 567, 535, 576, 412, 402, 542, 603, 475, 449, 537, 538, 441, 464, 501, 465, 564, 568, 557, 424, 471, 504, 495, 457, 539, 483, 508, 571, 500, 444, 556, 429, 411, 541, 559, 415, 561, 480, 560, 562, 506, 565, 451, 434, 558, 494, 555, 502, 477, 503, 579, 400, 404, 489, 505, 479, 442, 458, 606, 607, 610, 590, 569, 611, 584, 608, 435, 450, 591, 594 } PositionMarker = { { 2088.12, 1517, 10.82 }, } function guiGridListGetSelectedItemText ( gridList, column ) local item = guiGridListGetSelectedItem ( gridList ) local text = guiGridListGetItemText ( gridList, item, column or 1 ) if ( text ~= '' ) then return text else return false end end function SetPanelVisible( Panel , Stats ) guiSetVisible(Panel,Stats) showCursor(Stats) end for _, MarkerCreate in pairs( PositionMarker ) do local xPos, yPos, zPos = MarkerCreate[1], MarkerCreate[2], MarkerCreate[3] Marker = createMarker(xPos, yPos, zPos-2,'cylinder',2,255,255,255) addEventHandler('onClientMarkerHit',root, function ( hPlayer ) if ( source == Marker ) and ( hPlayer == localPlayer ) and ( not isPedInVehicle(hPlayer) ) then SetPanelVisible( GUIEditor.window[1] , true ) end end ) addEventHandler('onClientMarkerLeave',root,function ( hPlayer ) if ( source == Marker ) and ( hPlayer == localPlayer) then SetPanelVisible( GUIEditor.window[1] , false ) end end ) end setBlipVisibleDistance( createBlipAttachedTo(Marker,55) , 1000 ) GUIEditor = { gridlist = {}, window = {}, button = {} } GUIEditor.window[1] = guiCreateWindow(246, 166, 285, 370, "Vehicle Panel", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) VehShopGrid = guiCreateGridList(9, 21, 265, 150, false, GUIEditor.window[1]) local colm = guiGridListAddColumn(VehShopGrid, "Vehicles", 0.9) guiGridListClear (VehShopGrid) for _, v in pairs( VehiclesID ) do if getVehicleNameFromModel(v) ~= "" or nil then guiGridListSetItemText (VehShopGrid,guiGridListAddRow (VehShopGrid),colm,getVehicleNameFromModel(v), false, false ) end end YourB = guiCreateButton(9, 175, 134, 30, "Buy", false, GUIEditor.window[1]) YourGrideList = guiCreateGridList(9, 211, 265, 149, false, GUIEditor.window[1]) guiGridListAddColumn(YourGrideList, "Vehicles Me", 0.9) GUIEditor.button[2] = guiCreateButton(156, 175, 119, 30, "Close", false, GUIEditor.window[1]) addEventHandler("onClientGUIClick",GUIEditor.button[2],function ( ) SetPanelVisible( GUIEditor.window[1] , false ) end , false ) function guiGridListGetSelectedItemText ( gridList, column ) local item = guiGridListGetSelectedItem ( gridList ) local text = guiGridListGetItemText ( gridList, item, column or 1 ) if ( text ~= '' ) then return text else return false end end addEventHandler("onClientGUIClick",YourB, function ( ) if ( getElementData(localPlayer,'VehicleMe') or 0 ) < 10 then if ( guiGridListGetSelectedItem(VehShopGrid ) ~= -1 ) then local Row, TextGride, xPos, yPos, zPos = guiGridListAddRow ( YourGrideList ) , guiGridListGetSelectedItemText( VehShopGrid ,colm ) ,getElementPosition(localPlayer) guiGridListSetItemText ( YourGrideList, Row, colm, TextGride, false, false ) local Vehicle = getVehicleIDFromName(TextGride) triggerServerEvent('CreateTheCar',localPlayer,Vehicle,xPos,yPos,zPos) guiGridListRemoveRow(VehShopGrid,guiGridListGetSelectedItem(VehShopGrid)) SetPanelVisible( GUIEditor.window[1] , false ) outputChatBox(getVehicleNameFromID(Vehicle) ) else outputChatBox("Error ",255,0,0) end else outputChatBox('لا يمكنك شراء اكثر من 10 سيارات',255,255,255) end end , false ) -- لتصفير الداتا لشراء سيارات كثيره addCommandHandler('Remove',function ( ) setElementData(localPlayer,'VehicleMe',0) end ) -- Server Vehicles = { } addEvent('CreateTheCar',true) addEventHandler('CreateTheCar',root, function( Vehicle, xPos,yPos,zPos ) if ( getElementInterior(source) == 0 ) and ( getElementDimension(source) == 0 ) then Vehicles[source] = createVehicle(Vehicle ,xPos, yPos+1, zPos+1) warpPedIntoVehicle(source,Vehicles[source]) setElementData(Vehicles[source], "Owner", true ) setElementData(source,'VehicleMe',(getElementData(source,'VehicleMe') or 0 ) + 1 ) end end )
  3. --Client LPlayer = getLocalPlayer () function Fun( btn ,press ) if btn == "y" and press then return cancelEvent ( ) end end function NotFun ( btn, press ) if btn == "]" and press then return cancelEvent ( ) end end addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[6] then triggerServerEvent("All1",LPlayer) elseif source == GUIEditor.button[7] then triggerServerEvent("All3",LPlayer) end end ) addEvent("All2",true) addEventHandler("All2",root, function () addEventHandler("onClientKey",root,Fun) end ) addEvent("All4",true) addEventHandler("All4",root, function () removeEventHandler("onClientKey",root,Fun) end ) Sedon = true; addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[8] and Sedon == true then triggerServerEvent( "Dont", LPlayer ) Sedon = false; elseif source == GUIEditor.button[8] and Sedon == false then triggerServerEvent("See", LPlayer) Sedon = true; end end ) addEvent("Ok",true) addEventHandler("Ok",root, function () addEventHandler("onClientKey",root,NotFun) end ) addEvent("Ok2",true) addEventHandler("Ok2",root, function () removeEventHandler("onClientKey",root,NotFun) end ) -- Server addEvent("All1",true) addEventHandler("All1",root, function () for _,v in ipairs ( getElementsByType("player") ) do triggerClientEvent(v,"All2",v) end end ) addEvent("All3",true) addEventHandler("All3",root, function () for _,i in ipairs ( getElementsByType("player") ) do triggerClientEvent(i,"All4",i) end end) addEvent("Dont",true) addEventHandler("Dont",root, function () for _,S in ipairs ( getElementsByType("player") ) do triggerClientEvent(S,"Ok",S) end end ) addEvent("See",true) addEventHandler("See",root, function () for _,d in ipairs ( getElementsByType("player") ) do triggerClientEvent(d,"Ok2",d) end end )
  4. It's Language MySQL Or SQL Not A executeSQLQuery
  5. Hello how are you guys ? Today I will explain Ask for SQL Arab section In the name of God : 1. Tables | Tables - Of course initially create a simple table as follows: We use the command: CREATE TABLE --- Ex: CREATE TABLE programmers (id INTEGER, name TEXT, age INTEGER); Of course I'm SQL Editor user When we create this table, I have a table will appear in this form in the editor --- Now we finished creating the table If We Need add people to the table, how ? add using this switch. INSERT INTO & VALUES - Ex: INSERT INTO programmers (id, name, age) VALUES (1, "Mr.CoR", 18); INSERT INTO programmers (id, name, age) VALUES (2, "Tn6el", 18); INSERT INTO programmers (id, name, age) VALUES (3, "General", 20); INSERT INTO programmers (id, name, age) VALUES (4, "MoDeR", 16); INSERT INTO programmers (id, name, age) VALUES (5, "DABL", 19); INSERT INTO programmers (id, name, age) VALUES (6, "MezoO", 16); INSERT INTO programmers (id, name, age) VALUES (7, "ZA7F", 20); INSERT INTO programmers (id, name, age) VALUES (8, "TAPL", 21); INSERT INTO programmers (id, name, age) VALUES (9, "shweki", 18); INSERT INTO programmers (id, name, age) VALUES (10, "Mr.Grand", 16); It will show us the editor - Now we have a table by programmers data As an example we would expect that one of the programmers data error or a problem How to adjust them? Simply Using the command: UPDATE SET WHERE UPDATE: ordered to update the table SET: What is the thing that caused you want? WHERE: Where thing where you want to update? UPDATE programmers -- here his gift is an event I programmers agenda SET age = 22 -- Suppose that I am Gltt b Omar creepy, infield here Alkolmn to my father, which is brought about by age and after the equals sign and the new infield old WHERE id = 7; -- Here or disparage place to Alro is the creep data Here we discover that he was modifying data - We will suppose that we want to delete a specific statement of how? Orders: DELETE FROM & WHERE & IS & NULL DELETE FROM: removed WHERE: it is described previously NULL:: lua in the language of the nill these are like the Ex: DELETE FROM programmers WHERE Instagram IS NULL; -- Here we are saying Delete programmers agenda when the ranks of Coleman Alanstaqram undefined Then becomes a table like this: - We will suppose we want to determine the value of the table. Orders: SELECT Ex: SELECT * FROM programmers; * = Identify all the values ​​in the table Will suppose we wanted Bs Dhour the cloumn 2 only We replace the name of the star cloumn Ex: SELECT name FROM programmers; It will show us this way! ---- In this explanation we have learned these are commands in the language of SQL Wallace 1. CREATE TABLE = used for making table 2. INSERT INTO = used to add (Row - Cloumn) within the table 3. SELECT = are showing a certain something in the table, according to your selection 4. UPDATE = used to update a specific value within the table 5. ALTER TABLE = used to bring about radical changes in the table, such as adding a new Coleman 6. DELETE FROM = delete (Row - Cloumn) of the table Author: Mr.C (o) R Transalte: iMr.WiFi
  6. addEventHandler("onClientGUIClick",root,function() local Amm = guiGetText(GUIEditor.edit[1]) if source == GUIEditor.button[1] then if Amm ~= ' ' then local Player = guiGridListGetItemText(GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1) triggerServerEvent("Floos",localPlayer,Plr,A) end end end) -- Server addEvent("Floos",true) addEventHandler("Floos",root,function( Plr, A ) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Console")) then local Money = getPlayerMoney( source ) local name = getPlayerName ( source ) local P = getPlayerFromName(Plr) if ( P == source ) then return outputChatBox("لايمكن اعطاء الفلوس لنفسك") end if not ( Money >= A ) then return outputChatBox(" ليس لديك الفلوس الكافية ") end if not ( tonumber(A) ) then return outputChatBox(" الرجاء ادخال الرقم فقط ") end takePlayerMoney(source,tonumber(A)) givePlayerMoney(P,tonumber(A)) outputChatBox("#ff0000*#ffff00[Admin]#ff0000 You Has Give #ffff00( " .. Plr .. " #00ff00$#ffff00 ) Money ", source, 0, 150, 255, true) outputChatBox("#ff0000*#ffff00[Admin]#ff0000 *".. name .. " #ff0000Has Given you #FFFF00( " .. Plr .. " #00ff00$#ffff00 ) Money #ff0000 !", P, 255, 0, 0, true) end end )
  7. الكود مو كودك بس امسك addEventHandler("onClientGUIClick",root, function() if ( source == GUIEditor.button[1] ) then local playerName = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) local amount = guiGetText(GUIEditor.edit[1]) triggerServerEvent("Floos",localPlayer,amount,playerName) end end ) addEvent("Floos", true) addEventHandler("Floos", root, function( amount,plr ) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Console")) then local toWho = getPlayerFromName(plr) local player = getPlayerName(toWho) local name = getPlayerName(source) local Money = getPlayerMoney(source) if Money == 0 then return end if tonumber(amount) then takePlayerMoney(source,tonumber(amount)) givePlayerMoney(toWho,tonumber(amount)) outputChatBox("#ff0000*#ffff00[Admin]#ff0000 You Has Give #ffff00( " .. player .. " #00ff00$#ffff00 ) Money ", source, 0, 150, 255, true) outputChatBox("#ff0000*#ffff00[Admin]#ff0000 *".. name .. " #ff0000Has Given you #FFFF00( " .. player .. " #00ff00$#ffff00 ) Money #ff0000 !", toWho, 255, 0, 0, true) else outputChatBox("#ff0000*#ffff00[Admin]#ff0000 Please Select Player!!", source, 255, 0, 0, true) end end end end )
  8. يحبي اقول روح بس ,! الرجال مسوي مود وانت تنتقد , ومسوي فيها تدرك الناس يحبيبي انا متعلم احترم غيري بس انت اعوذ بالله منك ما تستحي من وجهك , مابي اكبر الموضوع اكبر من حجمه بس افضلك تنتقد مع الغير بطريقة احتراميه , طريقتك في الانتقاد زي وجهك انتقد زين وتكلم
  9. ردودكم ردود طفولية , وماتمنى الا كل خير للعرب , بس هذي الكلمة يالي تقولها [لاتهتم بالعرب الحاقدين] ماخترع هالكلامة غير الفاشلين مثلك , اللي يشوف الناس بعين طبعة انا انتقدت شي ماعجبني , وانا حر , لك شي عندي؟ تنتقد بطريقة محترمة ! + مافي فاشل اكثر منك بس تعرف تتكلم ,@ يالحب مابي اغلط عليك بس تكلم باحترام يحترمك الجميع
  10. سلام عليكم اخباركم مو من عادتي انزل موضوع زي كذا بس حيرني ذا شيء الحين سويت مود المسج تمام وكل حاجة انا ابي لما يرسل اللاعب الاول حاجة ! يضيف الرو للي رسله اللاعب داخل الجريد ليست حقه كيف ؟
  11. لا تضيف الكود امسحة ورد الخبر
  12. شوف موضوعه اقين لانه كان في بق او شيء زي كذا
  13. 'onMarkerHit' setElementPosition setElementInterior setElementDimension
  14. يحلو تعلم مو تسوي مود مو على قدك , بنسبة لفنكشنات guiGetText triggerServerEvent logIn addAccount
  15. احمد هذا المرة بيشتغل متأكد %100 بأذن الله + يبي يجيب لاعبين تيمه يعني لما لاعب يكون في تيم Team 1 يجيب كل لاعبين Team 1 واذا كان في Team 2 يجيب كل لاعبين Team 2
  16. function GetTeam() if getPlayerTeam(localPlayer) == "TeamName" then for _,v in ipairs (getPlayersInTeam(getTeamFromName("TeamName"))) do local Row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],Row,cow,getPlayerName(v),false,false) guiGridListSetItemColor(GUIEditor.gridlist[1],Row,cow,53, 53, 201, 255) end end if getPlayerTeam(localPlayer) == "TeamName2" then for _,v in ipairs (getPlayersInTeam(getTeamFromName("TeamName2"))) do local Row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],Row,cow,getPlayerName(v),false,false) guiGridListSetItemColor(GUIEditor.gridlist[1],Row,cow,53, 53, 201, 255) end end end
  17. forum.mtasa.com يقصد انه هذا مو موقع برمجة ال Java
  18. GUIEditor = { label = {}, button = {}, edit = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(247, 202, 299, 272, "Time", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(9, 24, 108, 39, "Edit Time", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(121, 32, 85, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[4] = guiCreateEdit(211, 32, 73, 25, "", false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(11, 228, 271, 26, "Created By KilleR | v.1.5", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 255, 0, 0) GUIEditor.button[2] = guiCreateButton(195, 0, 74, 22, "×", false, GUIEditor.label[4]) GUIEditor.label[5] = guiCreateLabel(27, 102, 237, 61, "طـــــــــــــــــآرهــــــــــــــــ", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 96, 254, 0) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[1] then mins = guiGetText(GUIEditor.edit[2]) hour = guiGetText(GUIEditor.edit[4]) setTime(tonumber(hour),tonumber(mins)) elseif source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end end) addEvent("OpenGUI",true) addEventHandler("OpenGUI",root, function() guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end) addCommandHandler("Edit Time", function( p ) Group = { "Level 4", "Level 5", "Level 6", "Head Admin", "Console", } for _,MeZoO in ipairs ( Group ) do for _,v in ipairs ( getElementsByType("player") ) do if ( isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(p)),aclGetGroup( tostring(MeZoO)))) then triggerClientEvent(v,"OpenGUI",v) end end end end)
  19. function OpenWin() if removeEventHandler("onClientRender",root,Dx) then removeEventHandler("onClientRender",root,Dx) guiSetVisible (GUIEditor.button[1], false ) guiSetVisible (GUIEditor.edit[1] , false ) guiSetVisible(GUIEditor.gridlist[1],false) guiSetVisible(GUIEditor.Player,false) guiSetVisible(GUIEditor.button[2] ,false) guiSetVisible(GUIEditor.label[7] ,false) showCursor(false) showChat(true) else addEventHandler("onClientRender",root,Dx) guiSetVisible (GUIEditor.button[1], true ) guiSetVisible (GUIEditor.edit[1] , true ) guiSetVisible(GUIEditor.gridlist[1],true) guiSetVisible(GUIEditor.Player,true) guiSetVisible(GUIEditor.button[2] ,true) guiSetVisible(GUIEditor.label[7] ,true) showCursor(true) showChat(false) guiGridListClear(GUIEditor.gridlist[1]) end end bindKey("F4","down",OpenWin) function GetTeam() if getPlayerTeam(localPlayer) == "TeamName" then for _,v in ipairs (getPlayersInTeam(getTeamFromName("TeamName"))) do local Row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],Row,cow,getPlayerName(v),false,false) guiGridListSetItemColor(GUIEditor.gridlist[1],Row,cow,53, 53, 201, 255) end if getPlayerTeam(localPlayer) == "TeamName2" then for _,i in ipairs (getPlayersInTeam(getTeamFromName("TeamName2"))) do local Row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],Row,cow,getPlayerName(i),false,false) guiGridListSetItemColor(GUIEditor.gridlist[1],Row,cow,53, 53, 201, 255) end end
  20. اصبر شوي فهمني اكتر يعني لما لاعب يكون في تيم فلاني يجيب لاعبين تيمه ونفس الحركه لتيم الثاني ؟
  21. وانت لا تسوي فيها ترد في كل موضوع مسوي مثقف ي حبيبي انا قلت في شروط ماقدر اسوي قيم مود تكتيك , وهو يمزح واضحح .!
×
×
  • Create New...