Jump to content

joubouti

Members
  • Posts

    22
  • Joined

  • Last visited

Everything posted by joubouti

  1. شكرا يا أخوي زاحف على المساعدة
  2. ذا مثال شوت مثل التي في لوحة الأدمنية local MessageLabel = guiCreateLabel(0.5, 0.5, 0.5, 0.5, "", true) addEventHandler( "onClientGUIClick", root, function() if source == Button then local playerName = guiGridListGetItemText ( Players_GridList, guiGridListGetSelectedItem ( Players_GridList ), 1) local thePlayer = getPlayerFromName(playerName) local Message = guiGetText(Message_EditBox) guiSetVisible(Message_EditBox,true)-- thePlayer ابي تطلع الرسالة للاعب الذي سميته guiSetText(MessageLabel,Message) end end)
  3. اعطيني فكرة شو بعمل
  4. لازم استعمل triggerClientEvent
  5. السلام عليكم ورحمة الله تعالى وبركاته ابي اعرف كيف تطلع نافدة لشخص معين اعطيكم مثال local window = guiCreateWindow(...) addEventHandler( "onClientGUIClick", root, function() if source == Button then guiSetVisible(window,true)-- ThePlayer ابي تطلع النافدة فقط عند لاعب معين مثلا نسميه end end)
  6. مابعرف حاولت من قبل تغيير لون بس ماوجدت حل
  7. gui في المود ذا انا عمل ازرار لكن شفافة يعني ماتستطيع انا تراها زي كذا Button = guiCreateButton(0.3936, 0.5833, 0.1182, 0.0586, "", true) guiSetAlpha(Button , 0.00)
  8. بدك تعمل مثل الأزرار ذي ؟ http://store2.up-00.com/2015-06/1433938666421.png
  9. thx man it work now
  10. i do this but don't work please Correct the error [Client-Side] function click() if source == GodMod_Button then triggerServerEvent ("GodMode", localPlayer) end end addEventHandler("onClientGUIClick", resourceRoot, click) [server-Side] function godmode(thePlayer) executeCommandHandler ( "godmode", thePlayer) end addEvent("GodMode", true) addEventHandler("GodMode", getRootElement(), godmode)
  11. but I made panel admin i want if i press the button on/off the godmode
  12. i tried this command before but don't work please write to me the script
  13. like this GodMod_Button = guiCreateButton(556, 265, 133, 48, "", false) function guiclick() if source == GodMod_Button then end end addEventHandler("onClientGUIClick", resourceRoot, click)
  14. hi i foundd script and i want running this script with GUIButton I have tried but I don't know how i do this , please can someone help me this is the script [Client-Side] addEventHandler ( "onClientPlayerDamage",root, function () if getElementData(source,"invincible") then cancelEvent() end end) addEventHandler("onClientPlayerStealthKill",localPlayer, function (targetPlayer) if getElementData(targetPlayer,"invincible") then cancelEvent() end end) [server-Side] function toggleGodMode(thePlayer) local account = getPlayerAccount(thePlayer) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) ) then if getElementData(thePlayer,"invincible") then setElementData(thePlayer,"invincible",false) outputChatBox("God Mode is now Disabled.",thePlayer,0,255,0) else setElementData(thePlayer,"invincible",true) outputChatBox("God Mode is now Enabled.",thePlayer,0,255,0) end end end addCommandHandler("godmode",toggleGodMode)
  15. please give me server-side script
  16. joubouti

    setPedArmor

    hi i have a problem with this scrip if i click on the button i get the health but i don't get the armor , i don't know why please someone help me function click() if source == Health_Button then local Player = getLocalPlayer() setElementHealth ( Player, 200) setPedArmor ( Player, 100) end end addEventHandler("onClientGUIClick", resourceRoot, click)
  17. thx toni012899 and darhal
  18. joubouti

    help dxdraw

    hi guys i made dx windows this my first time i use dxdraw and i don't know how to set window visible wiht button like "F3" any one help me please dxDrawRectangle(289, 214, 471, 295, tocolor(255, 0, 0, 132), false) dxDrawRectangle(342, 265, 132, 42, tocolor(72, 1, 253, 168), false) dxDrawRectangle(556, 265, 132, 42, tocolor(72, 1, 253, 168), false) dxDrawRectangle(556, 380, 132, 42, tocolor(72, 1, 253, 168), false) dxDrawRectangle(342, 380, 132, 42, tocolor(72, 1, 253, 168), false) dxDrawRectangle(462, 465, 104, 34, tocolor(6, 215, 247, 168), false) dxDrawText("Close", 461, 464, 566, 499, tocolor(255, 255, 255, 255), 1.50, "default", "center", "center", false, false, false, false, false) dxDrawText("Health And Armour", 343, 263, 474, 307, tocolor(255, 255, 255, 255), 1.20, "default", "center", "center", false, false, false, false, false) dxDrawText("GodMod", 557, 263, 688, 307, tocolor(255, 255, 255, 255), 1.50, "default", "center", "center", false, false, false, false, false) dxDrawText("Player Visible", 557, 378, 688, 422, tocolor(255, 255, 255, 255), 1.40, "default", "center", "center", false, false, false, false, false) dxDrawText("Vehucle GodMod", 343, 378, 474, 422, tocolor(255, 255, 255, 255), 1.20, "default", "center", "center", false, false, false, false, false)
  19. thx man i love you <3
  20. joubouti

    Please Help

    hi guys i have problem with this script the problem is if i hit the 2nd marker (myMarker2 ) the (ProgressBar2) does not shows this script is delivery goods job sorry about my bad english this is client Goods_Job_Window = guiCreateWindow(344, 196, 362, 385, "Goods Job", false) guiWindowSetSizable(Goods_Job_Window, false) guiSetVisible(Goods_Job_Window, false) guiSetAlpha(Goods_Job_Window, 0.86) Goods_Job_Botton1 = guiCreateButton(44, 52, 100, 98, "", false, Goods_Job_Window) Goods_Job_Image1 = guiCreateStaticImage(44, 52, 100, 98, ":guieditor/images/image1.png", false, Goods_Job_Window) Goods_Job_Close_Window = guiCreateButton(9, 333, 344, 42, "X", false, Goods_Job_Window) ProgressBar1 = guiCreateProgressBar(271, 301, 480, 65, false) guiSetVisible(ProgressBar1, false) ProgressBar2 = guiCreateProgressBar(271, 301, 480, 65, false) guiSetVisible(ProgressBar2, false) local myMarker = createMarker(2492.75830, -1667.61365, 12.34375, 'cylinder', 2.0, 255, 0, 0, 150) function MarkerHit() if source == myMarker then guiSetVisible(Goods_Job_Window, true) showCursor(true) end end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) function on_MyGoodsJob_Click() if source == Goods_Job_Close_Window then guiSetVisible(Goods_Job_Window, false) showCursor(false) end end addEventHandler("onClientGUIClick", resourceRoot, on_MyGoodsJob_Click) function on_MyGoodsJob_Porgess() if source == Goods_Job_Botton1 then guiSetVisible(ProgressBar1, true) guiSetVisible(Goods_Job_Window, false) showCursor(true) setTimer(function () guiProgressBarSetProgress(ProgressBar1, 20) outputChatBox("Please Wait 5 Second",255,255,0) end,1000,1, true) setTimer(function () guiProgressBarSetProgress(ProgressBar1, 40) outputChatBox("Please Wait 4 Second",255,255,0) end,2000,1, true) setTimer(function () guiProgressBarSetProgress(ProgressBar1, 60) outputChatBox("Please Wait 3 Second",255,255,0) end,3000,1, true) setTimer(function () guiProgressBarSetProgress(ProgressBar1, 80) outputChatBox("Please Wait 2 Second",255,255,0) end,4000,1, true) setTimer(function () guiProgressBarSetProgress(ProgressBar1, 100) outputChatBox("Please Wait 1 Second",255,255,0) end,5000,1, true) setTimer(function () local myMarker2 = createMarker(2482.75830, -1667.61365, 12.34375, 'cylinder', 2.0, 255, 0, 0, 150) guiSetVisible(ProgressBar1, false) showCursor(false) createBlip ( 2482.75830, -1667.61365, 12.34375, 41) outputChatBox("Go to Red Blip",255,255,0) removeEventHandler("onClientMarkerHit", getRootElement(), MarkerHit) end,6000,1, true) end end addEventHandler("onClientGUIClick", resourceRoot, on_MyGoodsJob_Porgess) function MarkerHit2() if source == myMarker2 then guiSetVisible(ProgressBar2, true) showCursor(true) setTimer(function () guiProgressBarSetProgress(ProgressBar2, 20) outputChatBox("Please Wait 10 Second",255,255,0) end,2000,1, true) setTimer(function () guiProgressBarSetProgress(ProgressBar2, 40) outputChatBox("Please Wait 8 Second",255,255,0) end,4000,1, true) setTimer(function () guiProgressBarSetProgress(ProgressBar2, 60) outputChatBox("Please Wait 6 Second",255,255,0) end,6000,1, true) setTimer(function () guiProgressBarSetProgress(ProgressBar2, 80) outputChatBox("Please Wait 4 Second",255,255,0) end,8000,1, true) setTimer(function () guiProgressBarSetProgress(ProgressBar2, 100) outputChatBox("Please Wait 2 Second",255,255,0) end,10000,1, true) setTimer(function () local Player = getLocalPlayer() guiSetVisible(ProgressBar2, false) showCursor(false) setElementData(Player, "Money", (getElementData(Player, "Money") or 0) + 2000) outputChatBox("You Get 2000$",255,255,0) end,12000,1, true) destroyElement(myMarker2) end end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit2)
×
×
  • Create New...