Mohamed Nightmare

  • Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About Mohamed Nightmare

  • Rank
  • Birthday 26/08/2002

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Mohamed Nightmare

    [HELP] password based gate system

    local password = "1234" function checkPassword () local text = guiGetText ( GUIEditor.edit[1] ) if text == password then triggerServerEvent ( "openGate", resourceRoot) outputChatBox ( "Password Correct!" ) else outputChatBox ( "Password Incorrect!" ) end end Client side.
  2. Mohamed Nightmare

    onVehicleStartEnter problem

    <meta> <script src="client.lua" type="server" /> </meta> Try this. Btw, All you need. Just replace type="client" with type="server"
  3. Mohamed Nightmare

    [HELP] ACL Group Vehicles

    Which car that you want to make it for admin only?
  4. Mohamed Nightmare


    جرب هاذا x1 = 3059 y1 = 1063 z1 = 57 x2 = 3063 y2 = 1063 z2 = 57 x3 = 3063 y3 = 1092 y3 = 57 x4 = 3059 y4 = 1092 z4 = 57 function thaResourceStarting( ) water = createWater ( x1,y1,z1,x2,y2,z2,x3,y3,z3,x4,y4,z4 ) createBlipAttachedTo ( water, 52 ) setWaterLevel ( water, 100 ) if water then print("ssssssssssssssssssssssssssss") else print("s") end end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), thaResourceStarting) Not tested
  5. Mohamed Nightmare

    وين مشكلة ؟؟ ساعدوني من فضلكم والله مهم

    ما اشتغلت كنت بدها تضهر الي إسم لاعب مع رتبة تبعه و اكبر رتبة راح تكون في القمة في احد؟ بلييز
  6. Mohamed Nightmare

    وين مشكلة ؟؟ ساعدوني من فضلكم والله مهم

    local row = guiGridListAddRow(Grid, v,1) local nick = guiGridListGetItemText(Grid, v,1) جربته بس ما اشتغل معاي
  7. Mohamed Nightmare

    وين مشكلة ؟؟ ساعدوني من فضلكم والله مهم

    في احد؟ بليييز
  8. Mohamed Nightmare

    وين مشكلة ؟؟ ساعدوني من فضلكم والله مهم

    مسحتهم بس مو شغال
  9. Mohamed Nightmare

    وين مشكلة ؟؟ ساعدوني من فضلكم والله مهم

    بس ساعدوني ليش ساكتين طلبت شيء واحد فقط
  10. Client side: GUIEditor = { gridlist = {}, window = {}, button = {} } GUIEditor.window[1] = guiCreateWindow(491, 202, 257, 327, "Rank panel", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(68, 291, 113, 26, "Close", false, GUIEditor.window[1]) Grid = guiCreateGridList(9, 23, 238, 258, false, GUIEditor.window[1]) guiGridListAddColumn(Grid, "Player", 0.5) guiGridListAddColumn(Grid, "Rank", 0.5) addEvent("showThePanel", true ) addEventHandler("showThePanel", root, function (players) if not guiGetVisible( GUIEditor.window[1] ) then guiGridListClear(Grid) for k,v in pairs(players) do local row = guiGridListAddRow(Grid, index,1) local nick = guiGridListGetItemText(Grid,index,1) guiGridListSetItemText(Grid,row,1 ,v[1],false,false) guiGridListSetItemText(Grid,row,1 ,v[2],false,false) end end guiSetVisible( ( GUIEditor.window[1] ),true ) showCursor(true) end) function onGuiClick() if (source == GUIEditor.button[1]) then guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end addEventHandler("onClientGUIClick", root, onGuiClick) server side: local acls = { "Owner", "Manager", "Developer", "Admin", "SuperModerator", "Moderator", "Warden", "VIP", } function toggleImportantPeople( presser ) local tempTable = {} local plrs = getElementsByType( "player" ) for _,p in pairs(plrs) do local rank = getRank(p) if rank then table.insert(acls, {getPlayerName( p ),rank}) end end triggerClientEvent( presser, "showThePanel", presser, tempTable ) end function getRank( plr ) for _,r in pairs(acls) do if hasRights(plr, r) then return r end end end local plrs = getElementsByType( "player" ) for _,p in pairs(plrs) do bindKey ( p, "F5", "down", toggleImportantPeople) end addEventHandler( "onPlayerLogin", root, function( ) bindKey ( source, "F5", "down", toggleImportantPeople) end ) function hasRights(plr,group) if ACLGroup.get(group):doesContainObject("user." then return true else -- plr:outputChatBox("You're not allowed to use this command",plr,100,0,0,true) return false end end يعني بدي قريد ليست تضهر كل اسماء اللاعبين اللي معهم رتب زيما نتا شايف في acls و تضيف اسماء لاعبين لحالها حتى ولو غير إسمو بترجاكم سعدوني و مافي اي مشكلة في سكربت
  11. Mohamed Nightmare

    مساعدة بكود ضروري

    يعني بدك كل كلان عندو شكل هيدرا مخصص لها, بس لما يطلع من كلان يشوفها عادية بيضاء. هكذا بدك إياها؟
  12. Mohamed Nightmare

    [HELP]Pls help me to fix this error

    Your script at math.floor is wrong. dxDrawText("You will be killed in #FFFFFF"..( math.floor(remaining/1000))" #640000seconds", sWidth(310/1024), sHeight(250/768), sWidth(1221/1280), sHeight(92/720), tocolor(100, 0, 0, 255), 1.5, "pricedown", "left", "top", false, false, true, true, false) Math.floor should be like this: dxDrawText("You will be killed in #FFFFFF"..math.floor(remaining/1000).." #640000seconds", 84, 218, 917, 366, tocolor(100, 0, 0, 255), 1.5, "pricedown", "left", "top", false, false, true, true, false)-- I change place of drawing. The problem that line 11 is clearing when you do that command much that 2 times.
  13. Mohamed Nightmare

    [EXAMPLE] script

    Hey there. I need an example about clicking on "guiGridListAddColumn" to spawn vehicle (Only vehicle where choosen), and start music. Ofc i need it with "onClientDoubleClick". Thank you !
  14. Mohamed Nightmare

    [HELP] How to make this script?

    Or this function wasted (killer, weapon, bodypart) local sound = playSound("files/yourmusic.mp3") setSoundVolume(sound, 0.5) end addEventHandler("onClientPlayerWasted", localPlayer, wasted) Make sure to add that script in Client side.
  15. Mohamed Nightmare

    Customblips bug

    Its working fine, I think u just touch some of position of the pictures..