Jump to content

YourMind

Members
  • Posts

    347
  • Joined

  • Last visited

Everything posted by YourMind

  1. setElementData (theMarker,"dataName",theVehicle) ex addEventHandler ("onMarkerHit",theMarker, function (plr) if getElementType (plr) == "player" then local vehicle = getElementData (source,"dataName") if isElement(vehicle) then blowVehicle(vehicle) end end)
  2. guiGridListGetSelectedItem guiGridListGetItemText guiGetText getPlayerFromName triggerServerEvent givePlayerMoney takePlayerMoney
  3. غير مجرب addEventHandler ("onClientGUIClick",Start, function () local g = guiGetText (editAccount) if tostring(g) or tonumber(g) then triggerServerEvent ("DTC",localPlayer) end end,false) addEvent ("DTC",true) addEventHandler ("DTC",root, function (c) if not isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Console")) then return outputChatBox ("Access denied",source,255,5,5) end local acc = getAccount (c) if not acc then return outputChatBox ("ERROR : Cannot find this account.",source,255,5,5) end setAccountData (acc,"ChatSound",true) outputChatBox ("Done.",source,0,255,0) end) function getPlrs() for i,k in ipairs (getElementsByType("player")) do if getPlayerAccount (k) and not isGuestAccount (getPlayerAccount(k)) then if getAccountData(getPlayerAccount(k),"ChatSound") then return k end end end end addEventHandler("onPlayerChat",root, function () playSoundFrontEnd (getPlrs(), 49 ) end)
  4. GUIEditor = { window = {}, staticimage = {} } GUIEditor.window[1] = guiCreateWindow(534, 424, 662, 279, "الاسلحه الثقيله", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.staticimage[1] = guiCreateStaticImage(268, 50, 130, 105, "images/dx.png", false, GUIEditor.window[1]) GUIEditor.staticimage[2] = guiCreateStaticImage(508, 50, 124, 105, "images/bx.png", false, GUIEditor.window[1]) GUIEditor.staticimage[3] = guiCreateStaticImage(33, 50, 121, 105, "images/xd.png", false, GUIEditor.window[1]) mg = guiCreateButton(33, 209, 121, 47, "200=30000", false, GUIEditor.window[1]) rcl = guiCreateButton(277, 209, 121, 47, "10=15000", false, GUIEditor.window[1]) rcls = guiCreateButton(508, 209, 121, 47, "10=12000", false, GUIEditor.window[1]) exitb = guiCreateButton(612, 19, 40, 31, "X", false, GUIEditor.window[1]) addEventHandler ("onClientGUIClick",resourceRoot, function () if source == rcl then triggerServerEvent("Mico",localPlayer) elseif source == mg then triggerServerEvent("Micol",localPlayer) elseif source == rcls then triggerServerEvent("Micoo",localPlayer) end end ) Marker = createMarker( 220.2236328125,1921.6552734375,16.240625,'cylinder',1.5,2,12,255,100) function oopa(player) if getElementType(player) == "player" and player == localPlayer then guiSetVisible(GUIEditor.window[1], true) showCursor(true) guiSetInputEnabled(true) end end addEventHandler("onClientMarkerHit", Marker, oopa) addEventHandler ("onClientGUIClick",root,function () if ( source == exitb ) then guiSetVisible(GUIEditor.window[1], false) showCursor(false) guiSetInputEnabled(false) end end ) addEvent ("Mico",true) addEventHandler("Mico",root, function() local PlayerMoney = getPlayerMoney (source) if ( PlayerMoney >= 15000) then giveWeapon( source, 35, 10, true ) takePlayerMoney(source, 15000) end end ) addEvent ("Micoo",true) addEventHandler("Micoo",root, function() local PlayerMoney = getPlayerMoney (source) if ( PlayerMoney >= 12000) then giveWeapon( source, 36, 10, true ) takePlayerMoney(source, 12000) end end ) addEvent ("Micol",true) addEventHandler("Micol",root, function() local PlayerMoney = getPlayerMoney (source) if ( PlayerMoney >= 30000) then giveWeapon( source, 38, 200, true ) takePlayerMoney(source, 30000) end end )
  5. addEvent ("Mico",true) addEventHandler("Mico",root, function() local PlayerMoney = getPlayerMoney (source) if ( PlayerMoney >= 15000) then giveWeapon( source, 35, 10, true ) takePlayerMoney(source, 15000) end end ) addEvent ("Micoo",true) addEventHandler("Micoo",root, function() local PlayerMoney = getPlayerMoney (source) if ( PlayerMoney >= 12000) then giveWeapon( source, 36, 10, true ) takePlayerMoney(source, 12000) end end ) addEvent ("Micol",true) addEventHandler("Micol",root, function() local PlayerMoney = getPlayerMoney (source) if ( PlayerMoney >= 30000) then giveWeapon( source, 38, 200, true ) takePlayerMoney(source, 30000) end end )
  6. wnd = guiCreateWindow(106, 139, 612, 387, ":: Login By [L]e3bA ::", false) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 0.90) guiSetVisible(wnd, false) Label = guiCreateLabel(149, 28, 283, 17, "Welcome @ Server Please Login To Enter Server", false, wnd) guiLabelSetColor(Label, 249, 25, 2) guiSetFont(Label, "default-bold-small") LabelName = guiCreateLabel(92, 76, 112, 15, "Name:", false, wnd) guiSetFont(LabelName, "default-bold-small") NameEdit = guiCreateEdit(139, 71, 311, 30, "", false, wnd) paswordEdit = guiCreateEdit(139, 117, 311, 30, "", false, wnd) LabelPw = guiCreateLabel(78, 122, 112, 15, "Password:", false, wnd) guiSetFont(LabelPw, "default-bold-small") Labe0 = guiCreateLabel(149, 38, 283, 17, "________________________________________", false, wnd) guiSetFont(Labe0, "default-bold-small") guiLabelSetColor(Labe0, 126, 126, 126) label5 = guiCreateLabel(149, 147, 283, 17, "________________________________________", false, wnd) guiSetFont(label5, "default-bold-small") guiLabelSetColor(label5, 126, 126, 126) LoginBiutton = guiCreateButton(92, 281, 173, 45, "Login", false, wnd) guiSetFont(LoginBiutton, "sa-header") OR = guiCreateLabel(275, 286, 52, 40, "OR", false, wnd) guiSetFont(OR, "sa-header") ButtonRegister = guiCreateButton(337, 281, 173, 45, "Register", false, wnd) guiSetFont(ButtonRegister, "sa-header") label_ = guiCreateLabel(159, 245, 283, 17, "________________________________________", false, wnd) guiSetFont(label_, "default-bold-small") guiLabelSetColor(label_, 126, 126, 126) checkbox2 = guiCreateCheckBox(462, 127, 140, 13, "Save Password", false, false, wnd) ChekBox1 = guiCreateCheckBox(460, 78, 140, 13, "Save Username", false, false, wnd) forget2 = guiCreateLabel(223, 343, 283, 17, "Forgot Your Password?", false, wnd) guiLabelSetColor(forget2, 127, 127, 127) Forget = guiCreateLabel(223, 350, 144, 17, "__________________", false, wnd) guiLabelSetColor(Forget, 127, 127, 127) Lebel4 = guiCreateLabel(82, 165, 169, 16, "Please Select Skin To Login:", false, wnd) guiLabelSetColor(Lebel4, 125, 124, 124) chekbokx3 = guiCreateCheckBox(83, 189, 153, 15, "CJ Skin", false, false, wnd) chekbox4 = guiCreateCheckBox(82, 210, 153, 15, "Saudi Skin Black", false, false, wnd) checkbox5 = guiCreateCheckBox(82, 230, 153, 15, "Saudi Skin With", false, false, wnd) Lebel3 = guiCreateLabel(366, 164, 215, 15, "Please Select To Entrey The Server:", false, wnd) guiLabelSetColor(Lebel3, 125, 124, 124) LoginServer = guiCreateButton(366, 185, 209, 26, "Login To Server", false, wnd) guiSetFont(LoginServer, "default-small") BuyMe = guiCreateLabel(442, 360, 228, 36, "Created By [L]e3bA | v3.4.1", false, wnd) guiLabelSetColor(BuyMe, 247, 0, 0) function Strong ( ) guiSetVisible ( wnd,not guiGetVisible(wnd) ) showCursor ( guiGetVisible(wnd) ) -- اظهار الماوس end addCommandHandler ("Teams",Strong )
  7. "onClientResourceStart" triggerServerEvent -- server executeSQLQuery -- create table executeSQLQuery -- select triggerClientEvent -- client guiGridListAddRow guiGridListSetItemText "onPlayerJoin" getPlayerName getPlayerSerial executeSQLQuery -- للحفظ triggerClientEvent -- client guiGridListAddRow guiGridListSetItemText
  8. getTime setTimer guiSetEnabled
  9. YourMind

    ...

    سهل جداً ياراجل بس اعذرنيي عشان بعد 20 دقيقة بالظبط هاقفل الكمبيوتر عشان ورايا امتحانات لازم اخف شوية من الكمبيوتر حاول و اطرح محاولتك بسرعة
  10. YourMind

    ...

    شكرا عمل رائع لم يعمل كما اردت بالضبط لكني استفدت كثيرا اضن انني الحين اقدر اعدل علىيه شوية يمكن انجح جرب DTC12 = { groupName = "x,y,z", narutosGroup = "x,y,z", ok = "1,2,3", } -- * ملحوظة : غير مجرب function isEventHandlerAdded( sEventName, pElementAttachedTo, func ) if type( sEventName ) == 'string' and isElement( pElementAttachedTo ) and type( func ) == 'function' then local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo ) if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs( aAttachedFunctions ) do if v == func then return true end end end end return false end addEvent ("sMshfa",true) addEventHandler ("sMshfa",root, function () s = source function spawnToHos() setTimer(setElementPosition,5000,1,source,x,y,z) -- احداثياتك للمشفي end if not isEventHandlerAdded("onPlayerSpawn",s,spawnToHos) then addEventHandler ("onPlayerSpawn",s,spawnToHos) end end) addEvent ("sMrkz",true) addEventHandler ("sMrkz",root, function () d = source function spawnToCen() setTimer(setElementPosition,5000,1,source,x,y,z) -- احداثياتك للمركز end if not isEventHandlerAdded("onPlayerSpawn",d,spawnToCen) then addEventHandler ("onPlayerSpawn",d,spawnToCen) end end) lol={} addEvent ("sMkr",true) addEventHandler ("sMkr",root, function () x = source function spawnToBase() if not getElementData (x,"Group") then outputChatBox ("انت لست في مجموعة",x,255,5,5) end for i,k in pairs (DTC12) do if tostring(getElementData(x,"Group")) == tostring(i) then if not isTimer (lol[x]) then local naruto = split (k,",") local xx,y,z = naruto[1],naruto[2],naruto[3] lol[x] = setTimer(function () setElementPosition (x,xx,y,z) end,5000,1) end end end end if not isEventHandlerAdded("onPlayerSpawn",x,spawnToBase) then addEventHandler ("onPlayerSpawn",x,spawnToBase) end end)
  11. YourMind

    ...

    GUIEditor = { window = {}, radiobutton = {} } GUIEditor.window[1] = guiCreateWindow(290, 132, 210, 315, "spawn", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) mshfa = guiCreateRadioButton(21, 32, 163, 15, "الانتحار للمشفى", false, GUIEditor.window[1]) guiSetProperty(mshfa, "NormalTextColour", "FF882BD0") mkr = guiCreateRadioButton(21, 78, 163, 15, "الانتحار للمقر", false, GUIEditor.window[1]) guiSetProperty(mkr, "NormalTextColour", "FF0DEF0D") bet = guiCreateRadioButton(21, 123, 167, 15, "الانتحار للبيت", false, GUIEditor.window[1]) guiSetProperty(bet, "NormalTextColour", "FFE95014") mrkz = guiCreateRadioButton(21, 172, 158, 15, "الانتحار لمركز الشرطة", false, GUIEditor.window[1]) guiSetProperty(mrkz, "NormalTextColour", "FF0813F6") function narotu() guiSetVisible (GUIEditor.window[1],not guiGetVisible (GUIEditor.window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor.window[1])) showCursor (guiGetVisible(GUIEditor.window[1])) end bindKey("F2","down",narotu) addEventHandler ("onClientGUIClick",root, function () if source == mshfa then guiRadioButtonSetSelected (mkr,false) guiRadioButtonSetSelected (bet,false) guiRadioButtonSetSelected (mrkz,false) triggerServerEvent ("sMshfa",localPlayer) elseif source == mkr then guiRadioButtonSetSelected (mshfa,false) guiRadioButtonSetSelected (bet,false) guiRadioButtonSetSelected (mrkz,false) triggerServerEvent ("sMkr",localPlayer) elseif source == bet then guiRadioButtonSetSelected (mkr,false) guiRadioButtonSetSelected (mshfa,false) guiRadioButtonSetSelected (mrkz,false) -- مش عندي معرفة في مود بيوتك elseif source == mrkz then guiRadioButtonSetSelected (mshfa,false) guiRadioButtonSetSelected (mkr,false) guiRadioButtonSetSelected (bet,false) triggerServerEvent ("sMrkz",localPlayer) end end) DTC12 = { groupName = "x,y,z", narutosGroup = "x,y,z", ok = "1,2,3", } -- * ملحوظة : غير مجرب function isEventHandlerAdded( sEventName, pElementAttachedTo, func ) if type( sEventName ) == 'string' and isElement( pElementAttachedTo ) and type( func ) == 'function' then local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo ) if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs( aAttachedFunctions ) do if v == func then return true end end end end return false end addEvent ("sMshfa",true) addEventHandler ("sMshfa",root, function () s = source function spawnToHos() setTimer(setElementPosition,5000,1,source,x,y,z) -- احداثياتك للمشفي end if not isEventHandlerAdded("onPlayerSpawn",s,spawnToHos) then addEventHandler ("onPlayerSpawn",s,spawnToHos) end end) addEvent ("sMrkz",true) addEventHandler ("sMrkz",root, function () d = source function spawnToCen() setTimer(setElementPosition,5000,1,source,x,y,z) -- احداثياتك للمركز end if not isEventHandlerAdded("onPlayerSpawn",d,spawnToCen) then addEventHandler ("onPlayerSpawn",d,spawnToCen) end end) lol={} addEvent ("sMkr",true) addEventHandler ("sMkr",root, function () x = source function spawnToBase() if not getElementData (x,"Group") then outputChatBox ("انت لست في مجموعة",x,255,5,5) end for i,k in pairs (DTC12) do if tostring(getElementData(x,"Group")) == tostring(i) then if not isTimer (lol[x]) then lol[x] = setTimer(setElementPosition,5000,1,source,k) end end end end if not isEventHandlerAdded("onPlayerSpawn",x,spawnToBase) then addEventHandler ("onPlayerSpawn",x,spawnToBase) end end)
  12. Marker_Door_3 = createMarker ( -405.34845, 1529.56384, 74.0640, "cylinder",3,255,255,0,100 ) addEventHandler("onClientMarkerHit",Marker_Door_3, function (player) if player == localPlayer then local Team = getPlayerTeam(localPlayer) if not Team and not getTeamName(Team) == 'Police' then return end guiSetVisible(window3,true) showCursor(true) end end)
  13. vehicles = {} addEvent('CarVIP',true) addEventHandler('CarVIP',root,function() local x,y,z = getElementPosition(source) if isElement (vehicles[source]) then destroyElement (vehicles[source]) end vehicles[source] = createVehicle(411,x+10,y,z) end) vehicles2 = {} addEvent('CreateVehicle',true) addEventHandler('CreateVehicle',root,function( ID ) local x,y,z = getElementPosition(source) if isElement (vehicles2[source]) then destroyElement (vehicles2[source]) end vehicles2[source] = createVehicle(ID,x+10,y,z) end)
  14. تقصد انت عايز قيمة جديدة غير القديمة مش تحديث للقيمة القديمة ؟؟ UPDATE بدال INSERT استخدم او ايه قصدك بالظبط؟
  15. -- client GUIEditor = { gridlist = {}, window = {}, button = {}, edit = {}} local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow(143, 151, 268, 401, "Nick ", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible (GUIEditor.window[1],false) GUIEditor.edit[1] = guiCreateEdit(147, 53, 111, 32, "", false, GUIEditor.window[1]) GUIEditor.gridlist[1] = guiCreateGridList(9, 23, 132, 368, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Players", 0.9) GUIEditor.button[1] = guiCreateButton(157, 95, 88, 48, "Set", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF0DF1E3") GUIEditor.button[2] = guiCreateButton(157, 153, 88, 48, "Resotre Name", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFE0B0B") GUIEditor.button[3] = guiCreateButton(377, 314, 0, 15, "", false, GUIEditor.window[1]) function Strong ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible (GUIEditor.window[1])) showCursor (guiGetVisible (GUIEditor.window[1])) guiSetInputEnabled (guiGetVisible (GUIEditor.window[1])) guiSetEnabled (GUIEditor.button[1],false) triggerServerEvent ("check",localPlayer) end addCommandHandler ("NICK",Strong) addEvent ("checkD",true) addEventHandler ("checkD",root, function () guiSetEnabled (GUIEditor.button[1],true) end) -- server addEvent('check',true) addEventHandler('check',root, function ( ) local accName = getAccountName (getPlayerAccount(source)) if isObjectInACLGroup ("user."..accName,aclGetGroup ( "Console" )) then triggerClientEvent(source,"checkD",source) end end )
  16. مفيش حد اتولد محترف في مهنة بالتوفيق
  17. ماتحكمش من غير ماتجرب
  18. ماخدتش بالي و عادي تشتغل برضه شغلك فوق غلط × غلط
  19. مش خطأ الرسالة توصل لجميع الاعبين عادي -.- -
  20. طريقتك صح شوف مثالي اولاً addEventHandler ("onClientResourceStart",resourceRoot, triggerClientEvent ("wifi",localPlayer) end) V addEvent ("wifi",true) addEventHandler ("wifi",root, function () s = executeSQLQuery ("SELECT * FROM SaveCodes WHERE Serial =?",getPlayerSerial(source)) if #s > 0 then local name = s[1]["PlayerName"] local code1 = s[1]["Code1"] local code2 = s[1]["Code2"] local code3 = s[1]["Code3"] local serial = s[1]["Serial"] triggerClientEvent (source,"put",source,name,code1,code2,code3,serial) else return outputChatBox ("لا يوجد معلومات") end end) V addEvent("put",true) addEventHandler ("put",root, function (name,code1,code2,code3,serial) guiGridListSetItemText (grid,guiGridListAddRow (grid),1,tostring(name),false,false) guiGridListSetItemText (grid,guiGridListAddRow (grid),1,tostring(code1),false,false) guiGridListSetItemText (grid,guiGridListAddRow (grid),1,tostring(code2),false,false) guiGridListSetItemText (grid,guiGridListAddRow (grid),1,tostring(code3),false,false) guiGridListSetItemText (grid,guiGridListAddRow (grid),1,tostring(serial),false,false) end)
  21. شغل دماغك addEventHandler("onResourceStart",resourceRoot, function () for i,k in ipairs (getElementsByType("player")) do s = executeSQLQuery ("SELECT * FROM SaveCodes WHERE Serial =?",getPlayerSerial(k)) if #s > 0 then --outputChatBox ("يوجد معلومات مخزنة عند بعض الاعبين") end end end) عايز تجيب اسمهم من القاعدة في الشات مثلاً؟ addEventHandler("onResourceStart",resourceRoot, function () for i,k in ipairs (getElementsByType("player")) do s = executeSQLQuery ("SELECT * FROM SaveCodes WHERE Serial =?",getPlayerSerial(k)) if #s > 0 then outputChatBox(s[1]["PlayerName"]) end end end) بتريجر؟ gridlist او edit او مثلاً عايز تحط المعلومات دي في addEventHandler("onResourceStart",resourceRoot, function () for i,k in ipairs (getElementsByType("player")) do s = executeSQLQuery ("SELECT * FROM SaveCodes WHERE Serial =?",getPlayerSerial(k)) if #s > 0 then triggerClientEvent(k,"",k,s[1]["Code1"],s[1]["Code2"],s[1]["Code3"]) end end end)
×
×
  • Create New...