Jump to content

joubouti

Members
  • Posts

    22
  • Joined

  • Last visited

joubouti's Achievements

Civilian

Civilian (7/54)

0

Reputation

  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)
×
×
  • Create New...